const go/token.SUB
21 uses
go/token (current package)
token.go#L40: SUB // -
token.go#L149: SUB: "-",
token.go#L278: case ADD, SUB, OR, XOR:
go/constant
value.go#L957: case token.SUB:
value.go#L973: re := UnaryOp(token.SUB, y.re, 0)
value.go#L974: im := UnaryOp(token.SUB, y.im, 0)
value.go#L1122: case token.SUB:
value.go#L1158: case token.SUB:
value.go#L1188: case token.SUB:
value.go#L1206: case token.SUB:
value.go#L1227: case token.SUB:
value.go#L1268: func sub(x, y Value) Value { return BinaryOp(x, token.SUB, y) }
go/parser
parser.go#L1732: case token.ADD, token.SUB, token.NOT, token.XOR, token.AND:
parser.go#L2440: token.ADD, token.SUB, token.MUL, token.AND, token.XOR, token.ARROW, token.NOT: // unary operators
go/printer
printer.go#L858: case token.SUB:
go/scanner
scanner.go#L918: tok = s.switch3(token.SUB, token.SUB_ASSIGN, '-', token.DEC)
go/types
expr.go#L68: token.SUB: allNumeric,
expr.go#L141: token.SUB: "subtraction",
expr.go#L1045: token.SUB: allNumeric,
stmt.go#L443: op = token.SUB
golang.org/x/tools/internal/gcimporter
bimport.go#L819: x = constant.UnaryOp(token.SUB, x, 0)