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

Method IsSingleLineNode

LuaParser/src/Ast/LuaSyntaxNode.cpp:223–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223bool LuaSyntaxNode::IsSingleLineNode(const LuaSyntaxTree &t) const {
224 if (_index == 0) {
225 return false;
226 }
227 return GetStartLine(t) == GetEndLine(t);
228}
229
230LuaSyntaxNode LuaSyntaxNode::GetNextToken(const LuaSyntaxTree &t) const {
231 if (_index == 0) {

Callers 7

IsExprShouldIndentMethod · 0.80
AnalyzeMethod · 0.80
ComplexAnalyzeMethod · 0.80
AnalyzeTableExprMethod · 0.80
CanBreakAllMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected