Ejemplo n.º 1
0
 public ClassDef(Name name, Expr[] bases, Stmt body)
     : base(body)
 {
     this.name  = name;
     this.bases = bases;
 }
Ejemplo n.º 2
0
        public static GlobalSuite Bind(Stmt root, CompilerContext context)
        {
            Binder binder = new Binder(context);

            return(binder.DoBind(root));
        }
Ejemplo n.º 3
0
 public GlobalSuite(Stmt body)
     : base(body)
 {
 }
Ejemplo n.º 4
0
 public FuncDef(Name name, Expr[] parameters, Expr[] defaults, FuncDefType flags, Stmt body, string sourceFile)
     : base(body)
 {
     this.name       = name;
     this.parameters = parameters;
     this.defaults   = defaults;
     this.flags      = flags;
     this.decorators = null;
     this.filename   = sourceFile;
 }
Ejemplo n.º 5
0
 protected ScopeStatement(Stmt body)
 {
     this.body = body;
 }