Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/vektah/gqlparser
/ unexpectedToken
Method
unexpectedToken
parser/parser.go:164–166 ·
view source on GitHub ↗
(tok lexer.Token)
Source
from the content-addressed store, hash-verified
162
}
163
164
func
(p *parser) unexpectedToken(tok lexer.Token) {
165
p.error(tok,
"Unexpected %s"
, tok.String())
166
}
167
168
func
(p *parser) many(start, end lexer.Type, cb
func
()) {
169
hasDef := p.skip(start)
Callers
5
parseOperationType
Method · 0.95
parseSchemaDocument
Method · 0.95
parseDirectiveLocation
Method · 0.95
unexpectedError
Method · 0.95
TestParserUtils
Function · 0.80
Calls
2
error
Method · 0.95
String
Method · 0.45
Tested by
1
TestParserUtils
Function · 0.64