type text/template/parse.Tree
122 uses
text/template/parse (current package)
node.go#L30: tree() *Tree
node.go#L82: tr *Tree
node.go#L86: func (t *Tree) newList(pos Pos) *ListNode {
node.go#L94: func (l *ListNode) tree() *Tree {
node.go#L129: tr *Tree
node.go#L133: func (t *Tree) newText(pos Pos, text string) *TextNode {
node.go#L145: func (t *TextNode) tree() *Tree {
node.go#L157: tr *Tree
node.go#L161: func (t *Tree) newComment(pos Pos, text string) *CommentNode {
node.go#L177: func (c *CommentNode) tree() *Tree {
node.go#L189: tr *Tree
node.go#L196: func (t *Tree) newPipeline(pos Pos, line int, vars []*VariableNode) *PipeNode {
node.go#L228: func (p *PipeNode) tree() *Tree {
node.go#L258: tr *Tree
node.go#L263: func (t *Tree) newAction(pos Pos, line int, pipe *PipeNode) *ActionNode {
node.go#L279: func (a *ActionNode) tree() *Tree {
node.go#L292: tr *Tree
node.go#L296: func (t *Tree) newCommand(pos Pos) *CommandNode {
node.go#L325: func (c *CommandNode) tree() *Tree {
node.go#L344: tr *Tree
node.go#L364: func (i *IdentifierNode) SetTree(t *Tree) *IdentifierNode {
node.go#L377: func (i *IdentifierNode) tree() *Tree {
node.go#L390: tr *Tree
node.go#L394: func (t *Tree) newVariable(pos Pos, ident string) *VariableNode {
node.go#L413: func (v *VariableNode) tree() *Tree {
node.go#L425: tr *Tree
node.go#L428: func (t *Tree) newDot(pos Pos) *DotNode {
node.go#L447: func (d *DotNode) tree() *Tree {
node.go#L459: tr *Tree
node.go#L462: func (t *Tree) newNil(pos Pos) *NilNode {
node.go#L481: func (n *NilNode) tree() *Tree {
node.go#L495: tr *Tree
node.go#L499: func (t *Tree) newField(pos Pos, ident string) *FieldNode {
node.go#L516: func (f *FieldNode) tree() *Tree {
node.go#L530: tr *Tree
node.go#L535: func (t *Tree) newChain(pos Pos, node Node) *ChainNode {
node.go#L571: func (c *ChainNode) tree() *Tree {
node.go#L583: tr *Tree
node.go#L587: func (t *Tree) newBool(pos Pos, true bool) *BoolNode {
node.go#L602: func (b *BoolNode) tree() *Tree {
node.go#L616: tr *Tree
node.go#L628: func (t *Tree) newNumber(pos Pos, text string, typ itemType) (*NumberNode, error) {
node.go#L739: func (n *NumberNode) tree() *Tree {
node.go#L753: tr *Tree
node.go#L758: func (t *Tree) newString(pos Pos, orig, text string) *StringNode {
node.go#L770: func (s *StringNode) tree() *Tree {
node.go#L783: tr *Tree
node.go#L786: func (t *Tree) newEnd(pos Pos) *endNode {
node.go#L798: func (e *endNode) tree() *Tree {
node.go#L810: tr *Tree
node.go#L814: func (t *Tree) newElse(pos Pos, line int) *elseNode {
node.go#L830: func (e *elseNode) tree() *Tree {
node.go#L842: tr *Tree
node.go#L880: func (b *BranchNode) tree() *Tree {
node.go#L902: func (t *Tree) newIf(pos Pos, line int, pipe *PipeNode, list, elseList *ListNode) *IfNode {
node.go#L915: func (t *Tree) newRange(pos Pos, line int, pipe *PipeNode, list, elseList *ListNode) *RangeNode {
node.go#L928: func (t *Tree) newWith(pos Pos, line int, pipe *PipeNode, list, elseList *ListNode) *WithNode {
node.go#L940: tr *Tree
node.go#L946: func (t *Tree) newTemplate(pos Pos, line int, name string, pipe *PipeNode) *TemplateNode {
node.go#L966: func (t *TemplateNode) tree() *Tree {
parse.go#L20: type Tree struct {
parse.go#L32: treeSet map[string]*Tree
parse.go#L45: func (t *Tree) Copy() *Tree {
parse.go#L49: return &Tree{
parse.go#L61: func Parse(name, text, leftDelim, rightDelim string, funcs ...map[string]interface{}) (map[string]*Tree, error) {
parse.go#L62: treeSet := make(map[string]*Tree)
parse.go#L70: func (t *Tree) next() item {
parse.go#L80: func (t *Tree) backup() {
parse.go#L86: func (t *Tree) backup2(t1 item) {
parse.go#L93: func (t *Tree) backup3(t2, t1 item) { // Reverse order: we're pushing back.
parse.go#L100: func (t *Tree) peek() item {
parse.go#L110: func (t *Tree) nextNonSpace() (token item) {
parse.go#L121: func (t *Tree) peekNonSpace() item {
parse.go#L130: func New(name string, funcs ...map[string]interface{}) *Tree {
parse.go#L131: return &Tree{
parse.go#L140: func (t *Tree) ErrorContext(n Node) (location, context string) {
parse.go#L160: func (t *Tree) errorf(format string, args ...interface{}) {
parse.go#L167: func (t *Tree) error(err error) {
parse.go#L172: func (t *Tree) expect(expected itemType, context string) item {
parse.go#L181: func (t *Tree) expectOneOf(expected1, expected2 itemType, context string) item {
parse.go#L190: func (t *Tree) unexpected(token item, context string) {
parse.go#L205: func (t *Tree) recover(errp *error) {
parse.go#L220: func (t *Tree) startParse(funcs []map[string]interface{}, lex *lexer, treeSet map[string]*Tree) {
parse.go#L229: func (t *Tree) stopParse() {
parse.go#L240: func (t *Tree) Parse(text, leftDelim, rightDelim string, treeSet map[string]*Tree, funcs ...map[string]interface{}) (tree *Tree, err error) {
parse.go#L253: func (t *Tree) add() {
parse.go#L294: func (t *Tree) parse() {
parse.go#L322: func (t *Tree) parseDefinition() {
parse.go#L343: func (t *Tree) itemList() (list *ListNode, next Node) {
parse.go#L359: func (t *Tree) textOrAction() Node {
parse.go#L375: func (t *Tree) clearActionLine() {
parse.go#L384: func (t *Tree) action() (n Node) {
parse.go#L409: func (t *Tree) pipeline(context string, end itemType) (pipe *PipeNode) {
parse.go#L464: func (t *Tree) checkPipeline(pipe *PipeNode, context string) {
parse.go#L479: func (t *Tree) parseControl(allowElseIf bool, context string) (pos Pos, line int, pipe *PipeNode, list, elseList *ListNode) {
parse.go#L516: func (t *Tree) ifControl() Node {
parse.go#L524: func (t *Tree) rangeControl() Node {
parse.go#L532: func (t *Tree) withControl() Node {
parse.go#L539: func (t *Tree) endControl() Node {
parse.go#L546: func (t *Tree) elseControl() Node {
parse.go#L562: func (t *Tree) blockControl() Node {
parse.go#L589: func (t *Tree) templateControl() Node {
parse.go#L602: func (t *Tree) parseTemplateName(token item, context string) (name string) {
parse.go#L620: func (t *Tree) command() *CommandNode {
parse.go#L651: func (t *Tree) operand() Node {
parse.go#L689: func (t *Tree) term() Node {
parse.go#L726: func (t *Tree) hasFunction(name string) bool {
parse.go#L739: func (t *Tree) popVars(n int) {
parse.go#L745: func (t *Tree) useVar(pos Pos, name string) Node {
text/template
template.go#L30: *parse.Tree
template.go#L126: func (t *Template) AddParseTree(name string, tree *parse.Tree) (*Template, error) {
template.go#L218: func (t *Template) associate(new *Template, tree *parse.Tree) bool {
github.com/google/safehtml/template
error.go#L266: loc, _ := (*parse.Tree)(nil).ErrorContext(e.Node)
template.go#L32: Tree *parse.Tree
html/template
error.go#L219: loc, _ := (*parse.Tree)(nil).ErrorContext(e.Node)
escape.go#L577: dt.Tree = &parse.Tree{Name: dname, Root: t.Root.CopyList()}
template.go#L29: Tree *parse.Tree
template.go#L217: func (t *Template) AddParseTree(name string, tree *parse.Tree) (*Template, error) {
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |