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

Method RangeFormat

CodeFormatServer/src/Service/FormatService.cpp:22–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22std::string FormatService::RangeFormat(LuaSyntaxTree &luaSyntaxTree, LuaStyle &luaStyle, FormatRange &range) {
23 RangeFormatBuilder f(luaStyle, range);
24 auto text = f.GetFormatResult(luaSyntaxTree);
25 range = f.GetReplaceRange();
26 return text;
27}
28
29std::vector<LuaTypeFormat::Result>
30FormatService::TypeFormat(std::string_view trigger,

Callers 2

OnRangeFormattingMethod · 0.45
ReformatMethod · 0.45

Calls 2

GetReplaceRangeMethod · 0.80
GetFormatResultMethod · 0.45

Tested by

no test coverage detected