예제 #1
0
 public ASTGenerator(ESCompiler esCompiler, CodeGenerationContext context)
 {
     this.compiler = esCompiler;
     this.context  = context;
     bindToCompiler();
 }
예제 #2
0
 protected void popContext()
 {
     context = contextStack[0];
     contextStack.RemoveAt(0);
 }
예제 #3
0
 public NameBindingScope(CodeGenerationContext context, NameBindingScope outerScope) : this(context) {
     this.outerScope = outerScope;
 }
예제 #4
0
 protected void pushContext()
 {
     contextStack.Add(context);
     context = compiler.newCodeGenerationContext();
 }
예제 #5
0
 public NameBindingScope(CodeGenerationContext context)
 {
     this.context = context;
 }