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

Method IsNode

LuaParser/src/Ast/LuaSyntaxTree.cpp:411–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409}
410
411bool LuaSyntaxTree::IsNode(std::size_t index) const {
412 if (index == 0 || (_nodeOrTokens.size() <= index)) {
413 return false;
414 }
415 return _nodeOrTokens[index].Type == NodeOrTokenType::Node;
416}
417
418bool LuaSyntaxTree::IsToken(std::size_t index) const {
419 if (index == 0 || (_nodeOrTokens.size() <= index)) {

Callers 15

AnalyzeMethod · 0.45
CheckInNodeMethod · 0.45
CheckInBodyMethod · 0.45
AnalyzeMethod · 0.45
ComplexAnalyzeMethod · 0.45
AnalyzeMethod · 0.45
AnalyzeMethod · 0.45
TableFieldAddSepMethod · 0.45
AnalyzeDocFormatMethod · 0.45
AnalyzeMethod · 0.45
IsExprShouldIndentMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected