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

Method GetCurrentIndent

CodeFormatCore/src/Format/FormatState.cpp:132–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132IndentState FormatState::GetCurrentIndent() const {
133 if (_indentStack.empty()) {
134 return IndentState(LuaSyntaxNode(0), 0, 0);
135 }
136 return _indentStack.top();
137}
138
139void FormatState::AddIgnore(IndexRange range) {
140 _ignoreRange = range;

Callers 4

WriteIndentMethod · 0.80
DoResolveMethod · 0.80
WriteIndentMethod · 0.80

Calls 4

IndentStateClass · 0.85
LuaSyntaxNodeClass · 0.85
topMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected