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

Method pident

utils/vscode/src/parser/parser.go:665–670  ·  view source on GitHub ↗

pident returns the i'th token if it is an PIdent, otherwise nil.

(i int)

Source from the content-addressed store, hash-verified

663
664// pident returns the i'th token if it is an PIdent, otherwise nil.
665func (p *parser) pident(i int) *Token {
666 if tok := p.tok(i); tok != nil && tok.Type == PIdent {
667 return tok
668 }
669 return nil
670}
671
672// comment returns true if the i'th token is a Comment, otherwise false.
673func (p *parser) comment(i int) bool {

Callers 2

instructionMethod · 0.95
operandMethod · 0.95

Calls 1

tokMethod · 0.95

Tested by

no test coverage detected