|
@ -131,8 +131,7 @@ public: |
|
|
{ |
|
|
{ |
|
|
public: |
|
|
public: |
|
|
LocationSetter(CompilerContext& _compilerContext, ASTNode const& _node): |
|
|
LocationSetter(CompilerContext& _compilerContext, ASTNode const& _node): |
|
|
ScopeGuard([&]{ _compilerContext.popVisitedNodes(); }) |
|
|
ScopeGuard([&]{ _compilerContext.popVisitedNodes(); }) { _compilerContext.pushVisitedNodes(&_node); } |
|
|
{ _compilerContext.pushVisitedNodes(&_node); } |
|
|
|
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
private: |
|
|
private: |
|
|