text/template/parse.item.typ (field)
32 uses
text/template/parse (current package)
lex.go#L16: typ itemType // The type of this item.
lex.go#L24: case i.typ == itemEOF:
lex.go#L26: case i.typ == itemError:
lex.go#L28: case i.typ > itemKeyword:
parse.go#L113: if token.typ != itemSpace {
parse.go#L174: if token.typ != expected {
parse.go#L183: if token.typ != expected1 && token.typ != expected2 {
parse.go#L191: if token.typ == itemError {
parse.go#L296: for t.peek().typ != itemEOF {
parse.go#L297: if t.peek().typ == itemLeftDelim {
parse.go#L299: if t.nextNonSpace().typ == itemDefine {
parse.go#L345: for t.peekNonSpace().typ != itemEOF {
parse.go#L360: switch token := t.nextNonSpace(); token.typ {
parse.go#L385: switch token := t.nextNonSpace(); token.typ {
parse.go#L414: if v := t.peekNonSpace(); v.typ == itemVariable {
parse.go#L423: case next.typ == itemAssign, next.typ == itemDeclare:
parse.go#L424: pipe.IsAssign = next.typ == itemAssign
parse.go#L428: case next.typ == itemChar && next.val == ",":
parse.go#L433: switch t.peekNonSpace().typ {
parse.go#L442: case tokenAfterVariable.typ == itemSpace:
parse.go#L449: switch token := t.nextNonSpace(); token.typ {
parse.go#L496: if t.peek().typ == itemIf {
parse.go#L549: if peek.typ == itemIf {
parse.go#L594: if t.nextNonSpace().typ != itemRightDelim {
parse.go#L603: switch token.typ {
parse.go#L628: switch token := t.next(); token.typ {
parse.go#L656: if t.peek().typ == itemField {
parse.go#L658: for t.peek().typ == itemField {
parse.go#L690: switch token := t.nextNonSpace(); token.typ {
parse.go#L707: number, err := t.newNumber(token.pos, token.val, token.typ)
![]() |
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. |