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

Method Query

CodeFormatCore/src/Format/Analyzer/SpaceAnalyzer.cpp:393–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

391}
392
393void SpaceAnalyzer::Query(FormatState &f, LuaSyntaxNode syntaxNode, const LuaSyntaxTree &t, FormatResolve &resolve) {
394 if (syntaxNode.IsToken(t)) {
395 auto nextToken = syntaxNode.GetNextToken(t);
396 auto space = ProcessSpace(syntaxNode, nextToken, t);
397 resolve.SetNextSpace(space);
398 }
399}
400
401void SpaceAnalyzer::SpaceAround(LuaSyntaxNode n, const LuaSyntaxTree &t, std::size_t space, SpacePriority priority) {
402 SpaceLeft(n, t, space, priority);

Callers 1

DfsForeachMethod · 0.45

Calls 3

SetNextSpaceMethod · 0.80
IsTokenMethod · 0.45
GetNextTokenMethod · 0.45

Tested by

no test coverage detected