MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / GetTokenKind

Method GetTokenKind

LuaParser/src/Ast/LuaSyntaxTree.cpp:404–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402}
403
404LuaTokenKind LuaSyntaxTree::GetTokenKind(std::size_t index) const {
405 if (!IsToken(index)) {
406 return LuaTokenKind(0);
407 }
408 return _tokens[_nodeOrTokens[index].Data.TokenIndex].Kind;
409}
410
411bool LuaSyntaxTree::IsNode(std::size_t index) const {
412 if (index == 0 || (_nodeOrTokens.size() <= index)) {

Callers 15

AnalyzeMethod · 0.45
BasicResolveMethod · 0.45
GetAdditionalNoteMethod · 0.45
CompleteMissTokenMethod · 0.45
FormatLineMethod · 0.45
WriteSyntaxNodeMethod · 0.45
WriteSyntaxNodeMethod · 0.45
DoResolveMethod · 0.45
AnalyzeMethod · 0.45
ComplexAnalyzeMethod · 0.45
AnalyzeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected