| 474 | } |
| 475 | |
| 476 | std::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 | |
| 491 | std::size_t |
| 492 | SpaceAnalyzer::ProcessSpace(LuaSyntaxNode left, LuaSyntaxNode right, const LuaSyntaxTree &t) { |