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

Method AddSameIndent

CodeFormatCore/src/Format/FormatState.cpp:235–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235void FormatState::AddSameIndent(LuaSyntaxNode syntaxNode) {
236 if (_indentStack.empty()) {
237 _indentStack.emplace(syntaxNode, 0, 0);
238 return;
239 }
240 auto top = _indentStack.top();
241 _indentStack.emplace(syntaxNode, top.SpaceSize, top.TabSize);
242}
243
244void FormatState::StopDfsForeach() {
245 _foreachContinue = false;

Callers

nothing calls this directly

Calls 3

topMethod · 0.80
emptyMethod · 0.45
emplaceMethod · 0.45

Tested by

no test coverage detected