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