| 416 | } |
| 417 | |
| 418 | void SpaceAnalyzer::SpaceRight(LuaSyntaxNode n, const LuaSyntaxTree &t, std::size_t space, SpacePriority priority) { |
| 419 | auto token = n.GetLastToken(t); |
| 420 | auto it = _rightSpaces.find(token.GetIndex()); |
| 421 | if (it != _rightSpaces.end()) { |
| 422 | if (it->second.Priority > priority) { |
| 423 | return; |
| 424 | } |
| 425 | } |
| 426 | |
| 427 | _rightSpaces[token.GetIndex()] = SpaceData(space, priority); |
| 428 | } |
| 429 | |
| 430 | void SpaceAnalyzer::SpaceIgnore(LuaSyntaxNode n) { |
| 431 | _ignoreSpace.insert(n.GetIndex()); |
nothing calls this directly
no test coverage detected