MCPcopy Create free account
hub / github.com/alecazam/kram / AcceptIdentifier

Method AcceptIdentifier

hlslparser/src/HLSLParser.cpp:1888–1896  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1886}
1887
1888bool HLSLParser::AcceptIdentifier(const char*& identifier)
1889{
1890 if (m_tokenizer.GetToken() == HLSLToken_Identifier) {
1891 identifier = m_tree->AddString(m_tokenizer.GetIdentifier());
1892 m_tokenizer.Next();
1893 return true;
1894 }
1895 return false;
1896}
1897
1898bool HLSLParser::ExpectIdentifier(const char*& identifier)
1899{

Callers

nothing calls this directly

Calls 4

GetTokenMethod · 0.80
GetIdentifierMethod · 0.80
NextMethod · 0.80
AddStringMethod · 0.45

Tested by

no test coverage detected