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

Method IsToken

LuaParser/src/Ast/LuaSyntaxTree.cpp:418–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

416}
417
418bool LuaSyntaxTree::IsToken(std::size_t index) const {
419 if (index == 0 || (_nodeOrTokens.size() <= index)) {
420 return false;
421 }
422 return _nodeOrTokens[index].Type == NodeOrTokenType::Token;
423}
424
425const std::vector<LuaSyntaxNode> &LuaSyntaxTree::GetSyntaxNodes() const {
426 return _syntaxNodes;

Callers 15

BasicResolveMethod · 0.45
CheckRangeMethod · 0.45
DoResolveMethod · 0.45
AnalyzeMethod · 0.45
ComplexAnalyzeMethod · 0.45
QueryMethod · 0.45
CollectBinaryOperatorMethod · 0.45
ResolveAlignGroupMethod · 0.45
AnalyzeIfStatementMethod · 0.45
QueryMethod · 0.45
TableFieldAddSepMethod · 0.45
AnalyzeTableFieldMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected