private DeclarationStubVisitor( Scope globalScope, ParseTreeProperty <IPDecl> nodesToDeclarations) { this.nodesToDeclarations = nodesToDeclarations; scope = new StackProperty <Scope>(globalScope); }
private DeclarationVisitor( ITranslationErrorHandler handler, Scope topLevelScope, ParseTreeProperty <IPDecl> nodesToDeclarations) { Handler = handler; currentScope = new StackProperty <Scope>(topLevelScope); this.nodesToDeclarations = nodesToDeclarations; }
public ContextManager(StackProperty <T> stackProperty, T newValue) { this.stackProperty = stackProperty; oldValue = stackProperty.Value; stackProperty.Value = newValue; }