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

Method GetRightSpace

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

Source from the content-addressed store, hash-verified

474}
475
476std::size_t SpaceAnalyzer::GetRightSpace(LuaSyntaxNode n, bool &hasValue) const {
477 if (_ignoreSpace.count(n.GetIndex())) {
478 hasValue = false;
479 return 0;
480 }
481
482 auto it = _rightSpaces.find(n.GetIndex());
483 if (it == _rightSpaces.end()) {
484 hasValue = false;
485 return 0;
486 }
487 hasValue = true;
488 return it->second.Value;
489}
490
491std::size_t
492SpaceAnalyzer::ProcessSpace(LuaSyntaxNode left, LuaSyntaxNode right, const LuaSyntaxTree &t) {

Callers

nothing calls this directly

Calls 4

GetIndexMethod · 0.80
countMethod · 0.45
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected