const go/token.RBRACK
39 uses
go/token (current package)
token.go#L89: RBRACK // ]
token.go#L198: RBRACK: "]",
go/parser
parser.go#L459: token.RBRACK: true,
parser.go#L584: } else if p.tok != token.RBRACK {
parser.go#L596: p.expect(token.RBRACK)
parser.go#L609: if p.tok != token.RBRACK {
parser.go#L615: if p.tok == token.RBRACK {
parser.go#L623: rbrack := p.expect(token.RBRACK)
parser.go#L881: tparams := closing == token.RBRACK
parser.go#L1072: if p.tok != token.RBRACK {
parser.go#L1073: list = p.parseParameterList(nil, nil, token.RBRACK, false)
parser.go#L1075: rbrack := p.expect(token.RBRACK)
parser.go#L1146: if name0, _ := x.(*ast.Ident); name0 != nil && p.tok != token.COMMA && p.tok != token.RBRACK {
parser.go#L1151: _ = p.parseParameterList(name0, nil, token.RBRACK, false)
parser.go#L1152: _ = p.expect(token.RBRACK)
parser.go#L1168: if p.atComma("type argument list", token.RBRACK) {
parser.go#L1171: for p.tok != token.RBRACK && p.tok != token.EOF {
parser.go#L1173: if !p.atComma("type argument list", token.RBRACK) {
parser.go#L1180: rbrack := p.expectClosing(token.RBRACK, "type argument list")
parser.go#L1310: p.expect(token.RBRACK)
parser.go#L1349: for p.tok != token.RBRACK && p.tok != token.EOF {
parser.go#L1351: if !p.atComma("type argument list", token.RBRACK) {
parser.go#L1358: closing := p.expectClosing(token.RBRACK, "type argument list")
parser.go#L1552: if p.tok == token.RBRACK {
parser.go#L1584: if p.tok != token.COLON && p.tok != token.RBRACK && p.tok != token.EOF {
parser.go#L1593: if p.tok != token.RBRACK && p.tok != token.EOF {
parser.go#L1600: rbrack := p.expect(token.RBRACK)
parser.go#L2597: list := p.parseParameterList(name0, typ0, token.RBRACK, false)
parser.go#L2598: closePos := p.expect(token.RBRACK)
parser.go#L2654: 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#L898: tok = token.RBRACK