go/token.Token.IsKeyword (method)
3 uses
go/token (current package)
token.go#L312: func (tok Token) IsKeyword() bool { return keyword_beg < tok && tok < keyword_end }
go/parser
parser.go#L250: case p.tok.IsOperator(), p.tok.IsKeyword():
google.golang.org/protobuf/internal/strs
strings.go#L84: if token.Lookup(s).IsKeyword() || !unicode.IsLetter(r) {
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |