go/ast.GenDecl.Tok (field)

22 uses

	go/ast (current package)
		ast.go#L987: 		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/format
		format.go#L120: 		if !ok || d.Tok != token.IMPORT {

	go/parser
		parser.go#L2757: 		Tok:    keyword,
		resolver.go#L451: 		switch n.Tok {
		resolver.go#L456: 				if n.Tok == token.VAR {

	go/printer
		nodes.go#L1738: 	p.print(d.Tok, blank)
		nodes.go#L1746: 			if n > 1 && (d.Tok == token.CONST || d.Tok == token.VAR) {
		nodes.go#L1958: 		tok = d.Tok

	go/types
		decl.go#L399: 				switch d.Tok {
		decl.go#L417: 					check.errorf(s, InvalidSyntaxTree, "invalid token %s", d.Tok)
		labels.go#L126: 			if d, _ := s.Decl.(*ast.GenDecl); d != nil && d.Tok == token.VAR {