go/ast.GenDecl.Tok (field)
17 uses
go/ast (current package)
ast.go#L991: Tok token.Token // IMPORT, CONST, TYPE, or VAR
import.go#L19: if !ok || d.Tok != token.IMPORT {
import.go#L58: if decl, ok := decl.(*GenDecl); ok && decl.Tok == token.IMPORT {
go/doc
example.go#L58: if g, ok := decl.(*ast.GenDecl); ok && g.Tok != token.IMPORT {
example.go#L295: Tok: token.IMPORT,
example.go#L475: if d.Tok == token.CONST && containsIota {
exports.go#L302: d.Specs = r.filterSpecList(d.Specs, d.Tok)
reader.go#L295: case decl.Tok == token.CONST && len(s.Values) == 0:
reader.go#L575: switch d.Tok {
reader.go#L633: Tok: token.TYPE,
reader.go#L845: if val.Decl.Tok == tok {
go/parser
parser.go#L2785: Tok: keyword,
resolver.go#L451: switch n.Tok {
resolver.go#L456: if n.Tok == token.VAR {
go/types
decl.go#L410: switch d.Tok {
decl.go#L428: check.errorf(s, InvalidSyntaxTree, "invalid token %s", d.Tok)
labels.go#L126: if d, _ := s.Decl.(*ast.GenDecl); d != nil && d.Tok == token.VAR {