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

Method ident

utils/vscode/src/parser/parser.go:657–662  ·  view source on GitHub ↗

ident returns the i'th token if it is an Ident, otherwise nil.

(i int)

Source from the content-addressed store, hash-verified

655
656// ident returns the i'th token if it is an Ident, otherwise nil.
657func (p *parser) ident(i int) *Token {
658 if tok := p.tok(i); tok != nil && tok.Type == Ident {
659 return tok
660 }
661 return nil
662}
663
664// pident returns the i'th token if it is an PIdent, otherwise nil.
665func (p *parser) pident(i int) *Token {

Callers 1

opcodeMethod · 0.95

Calls 1

tokMethod · 0.95

Tested by

no test coverage detected