MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / operator

Method operator

utils/vscode/src/parser/parser.go:309–319  ·  view source on GitHub ↗

operator processes the Operator token at the current position. The lexer *must* know the next token is a Operator before calling.

()

Source from the content-addressed store, hash-verified

307// operator processes the Operator token at the current position.
308// The lexer *must* know the next token is a Operator before calling.
309func (l *lexer) operator() {
310 tok := &Token{Type: Operator, Range: Range{Start: l.pos, End: l.pos}}
311 for l.e == nil {
312 switch l.next() {
313 case '=', '|':
314 tok.Range.End = l.pos
315 l.toks = append(l.toks, tok)
316 return
317 }
318 }
319}
320
321// lineComment processes the Comment token at the current position.
322// The lexer *must* know the next token is a Comment before calling.

Callers 1

lexFunction · 0.95

Calls 1

nextMethod · 0.95

Tested by

no test coverage detected