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

Method WriteIndent

CodeFormatCore/src/RangeFormat/RangeFormatBuilder.cpp:77–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void RangeFormatBuilder::WriteIndent() {
78 if (_validRange == Valid::Process) {
79 return FormatBuilder::WriteIndent();
80 } else {
81 auto topLevelIndent = _state.GetCurrentIndent();
82 _state.CurrentWidth() += topLevelIndent.SpaceSize + topLevelIndent.TabSize * _state.GetStyle().tab_width;
83 }
84}
85
86void RangeFormatBuilder::WriteChar(char ch) {
87 if (_validRange == Valid::Process) {

Callers

nothing calls this directly

Calls 2

GetCurrentIndentMethod · 0.80
GetStyleMethod · 0.80

Tested by

no test coverage detected