go/ast.GenDecl.Tok (field)

33 uses

	go/ast (current package)
		ast.go#L968: 		Tok    token.Token   // IMPORT, CONST, TYPE, VAR
		import.go#L18: 		if !ok || d.Tok != token.IMPORT {

	go/doc
		example.go#L57: 			if g, ok := decl.(*ast.GenDecl); ok && g.Tok != token.IMPORT {
		example.go#L341: 		Tok:    token.IMPORT,
		exports.go#L286: 		d.Specs = r.filterSpecList(d.Specs, d.Tok)
		reader.go#L265: 		case decl.Tok == token.CONST && len(s.Values) == 0:
		reader.go#L509: 			switch d.Tok {
		reader.go#L552: 							Tok:    token.TYPE,
		reader.go#L775: 		if val.Decl.Tok == tok {

	go/format
		format.go#L122: 		if !ok || d.Tok != token.IMPORT {

	go/parser
		parser.go#L2425: 		Tok:    keyword,

	go/printer
		nodes.go#L1606: 	p.print(d.Pos(), d.Tok, blank)
		nodes.go#L1613: 			if n > 1 && (d.Tok == token.CONST || d.Tok == token.VAR) {
		nodes.go#L1804: 		tok = d.Tok

	golang.org/x/pkgsite/internal/godoc
		encode_ast.gen.go#L1682: 	if x.Tok != 0 {
		encode_ast.gen.go#L1684: 		e.EncodeInt(int64(x.Tok))
		encode_ast.gen.go#L1723: 			x.Tok = token.Token(d.DecodeInt())

	golang.org/x/pkgsite/internal/godoc/dochtml/internal/render
		idents.go#L152: 		if decl.Tok == token.TYPE && len(decl.Specs) == 1 {
		linkify.go#L601: 			switch decl.Tok {
		linkify.go#L604: 				if decl.Tok == token.VAR {
		synopsis.go#L37: 		switch n.Tok {
		synopsis.go#L41: 				return ConstOrVarSynopsis(valueSpec, fset, n.Tok, trailer, i, depth)
		synopsis.go#L50: 				return fmt.Sprintf("%s %s%s", n.Tok, pkg, trailer)
		synopsis.go#L53: 		return fmt.Sprintf("%s ()", n.Tok)

	golang.org/x/pkgsite/internal/godoc/internal/doc
		example.go#L57: 			if g, ok := decl.(*ast.GenDecl); ok && g.Tok != token.IMPORT {
		example.go#L422: 				if d.Tok == token.CONST && hasIota(d.Specs[0]) {
		example.go#L461: 		Tok:    token.IMPORT,
		exports.go#L286: 		d.Specs = r.filterSpecList(d.Specs, d.Tok)
		reader.go#L267: 		case decl.Tok == token.CONST && len(s.Values) == 0:
		reader.go#L513: 			switch d.Tok {
		reader.go#L556: 							Tok:    token.TYPE,
		reader.go#L779: 		if val.Decl.Tok == tok {