diff options
author | Russ Cox <rsc@golang.org> | 2009-08-12 13:19:17 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-08-12 13:19:17 -0700 |
commit | 2ee4549f599ed214693abf75163176f178b4188c (patch) | |
tree | c9dbc55a8447806706f8ae757a04c3c41b815835 /src/pkg/template/template.go | |
parent | 5ff5b6823c8a023da5c9d6ccc2effe7fad8447f6 (diff) | |
download | golang-2ee4549f599ed214693abf75163176f178b4188c.tar.gz |
convert non-low-level non-google pkg code
to whole-package compilation.
R=r
OCL=33070
CL=33101
Diffstat (limited to 'src/pkg/template/template.go')
-rw-r--r-- | src/pkg/template/template.go | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/pkg/template/template.go b/src/pkg/template/template.go index 956e45257..a75265535 100644 --- a/src/pkg/template/template.go +++ b/src/pkg/template/template.go @@ -63,7 +63,6 @@ import ( "reflect"; "runtime"; "strings"; - "template"; ) // Errors returned during parsing and execution. Users may extract the information and reformat @@ -442,8 +441,7 @@ func (t *Template) parseSimple(item []byte) (done bool, tok int, w []string) { return false, tok, w } -// parseSection and parseRepeated are mutually recursive -func (t *Template) parseSection(words []string) *sectionElement +// parseRepeated and parseSection are mutually recursive func (t *Template) parseRepeated(words []string) *repeatedElement { r := new(repeatedElement); @@ -641,10 +639,6 @@ func (t *Template) writeVariable(v *variableElement, st *state) { t.execError(st, v.linenum, "missing formatter %s for variable %s", v.formatter, v.name) } -// execute{|Element|Section|Repeated} are mutually recursive -func (t *Template) executeSection(s *sectionElement, st *state) -func (t *Template) executeRepeated(r *repeatedElement, st *state) - // Execute element i. Return next index to execute. func (t *Template) executeElement(i int, st *state) int { switch elem := t.elems.At(i).(type) { |