const go/token.RBRACK
39 uses
go/token (current package)
token.go#L89: RBRACK // ]
token.go#L198: RBRACK: "]",
go/parser
parser.go#L454: token.RBRACK: true,
parser.go#L598: } else if p.tok != token.RBRACK {
parser.go#L610: p.expect(token.RBRACK)
parser.go#L623: if p.tok != token.RBRACK {
parser.go#L629: if p.tok == token.RBRACK {
parser.go#L637: rbrack := p.expect(token.RBRACK)
parser.go#L895: tparams := closing == token.RBRACK
parser.go#L1086: if p.tok != token.RBRACK {
parser.go#L1087: list = p.parseParameterList(nil, nil, token.RBRACK, false)
parser.go#L1089: rbrack := p.expect(token.RBRACK)
parser.go#L1160: if name0, _ := x.(*ast.Ident); name0 != nil && p.tok != token.COMMA && p.tok != token.RBRACK {
parser.go#L1165: _ = p.parseParameterList(name0, nil, token.RBRACK, false)
parser.go#L1166: _ = p.expect(token.RBRACK)
parser.go#L1182: if p.atComma("type argument list", token.RBRACK) {
parser.go#L1185: for p.tok != token.RBRACK && p.tok != token.EOF {
parser.go#L1187: if !p.atComma("type argument list", token.RBRACK) {
parser.go#L1194: rbrack := p.expectClosing(token.RBRACK, "type argument list")
parser.go#L1324: p.expect(token.RBRACK)
parser.go#L1363: for p.tok != token.RBRACK && p.tok != token.EOF {
parser.go#L1365: if !p.atComma("type argument list", token.RBRACK) {
parser.go#L1372: closing := p.expectClosing(token.RBRACK, "type argument list")
parser.go#L1562: if p.tok == token.RBRACK {
parser.go#L1594: if p.tok != token.COLON && p.tok != token.RBRACK && p.tok != token.EOF {
parser.go#L1603: if p.tok != token.RBRACK && p.tok != token.EOF {
parser.go#L1610: rbrack := p.expect(token.RBRACK)
parser.go#L2605: list := p.parseParameterList(name0, typ0, token.RBRACK, false)
parser.go#L2606: closePos := p.expect(token.RBRACK)
parser.go#L2662: if pname, ptype := extractName(x, p.tok == token.COMMA); pname != nil && (ptype != nil || p.tok != token.RBRACK) {
go/printer
nodes.go#L331: openTok, closeTok = token.LBRACK, token.RBRACK
nodes.go#L916: p.print(token.RBRACK)
nodes.go#L926: p.print(token.RBRACK)
nodes.go#L969: p.print(token.RBRACK)
nodes.go#L1047: p.print(token.RBRACK)
nodes.go#L1065: p.print(token.RBRACK)
printer.go#L793: (tok != token.RBRACK || p.prevOpen == token.LBRACK) {
printer.go#L982: token.INC, token.DEC, token.RPAREN, token.RBRACK, token.RBRACE:
go/scanner
scanner.go#L885: tok = token.RBRACK