const go/token.RBRACK
37 uses
go/token (current package)
token.go#L90: RBRACK // ]
token.go#L199: RBRACK: "]",
go/parser
parser.go#L396: token.RBRACK: true,
parser.go#L541: } else if p.tok != token.RBRACK {
parser.go#L553: p.expect(token.RBRACK)
parser.go#L574: if p.tok != token.RBRACK {
parser.go#L586: rbrack := p.expect(token.RBRACK)
parser.go#L813: tparams := closing == token.RBRACK
parser.go#L945: list := p.parseParameterList(nil, nil, token.RBRACK)
parser.go#L946: rbrack := p.expect(token.RBRACK)
parser.go#L1021: if name0, _ := x.(*ast.Ident); name0 != nil && p.tok != token.COMMA && p.tok != token.RBRACK {
parser.go#L1026: _ = p.parseParameterList(name0, nil, token.RBRACK)
parser.go#L1027: _ = p.expect(token.RBRACK)
parser.go#L1043: if p.atComma("type argument list", token.RBRACK) {
parser.go#L1046: for p.tok != token.RBRACK && p.tok != token.EOF {
parser.go#L1048: if !p.atComma("type argument list", token.RBRACK) {
parser.go#L1055: rbrack := p.expectClosing(token.RBRACK, "type argument list")
parser.go#L1190: p.expect(token.RBRACK)
parser.go#L1230: for p.tok != token.RBRACK && p.tok != token.EOF {
parser.go#L1232: if !p.atComma("type argument list", token.RBRACK) {
parser.go#L1239: closing := p.expectClosing(token.RBRACK, "type argument list")
parser.go#L1429: if p.tok == token.RBRACK {
parser.go#L1462: if p.tok != token.COLON && p.tok != token.RBRACK && p.tok != token.EOF {
parser.go#L1472: if p.tok != token.RBRACK && p.tok != token.EOF {
parser.go#L1479: rbrack := p.expect(token.RBRACK)
parser.go#L2584: list := p.parseParameterList(name0, typ0, token.RBRACK)
parser.go#L2585: closePos := p.expect(token.RBRACK)
parser.go#L2644: if p.tok != token.RBRACK {
go/printer
nodes.go#L333: openTok, closeTok = token.LBRACK, token.RBRACK
nodes.go#L888: p.print(x.Rbrack, token.RBRACK)
nodes.go#L896: p.print(x.Rbrack, token.RBRACK)
nodes.go#L937: p.print(x.Rbrack, token.RBRACK)
nodes.go#L1000: p.print(token.RBRACK)
nodes.go#L1018: p.print(token.RBRACK)
printer.go#L775: (tok != token.RBRACK || p.prevOpen == token.LBRACK) {
printer.go#L962: token.INC, token.DEC, token.RPAREN, token.RBRACK, token.RBRACE:
go/scanner
scanner.go#L906: tok = token.RBRACK