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