예제 #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;
 }