Пример #1
0
 public ClassDef(Name name, Expr[] bases, Stmt body)
     : base(body)
 {
     this.name  = name;
     this.bases = bases;
 }
Пример #2
0
        public static GlobalSuite Bind(Stmt root, CompilerContext context)
        {
            Binder binder = new Binder(context);

            return(binder.DoBind(root));
        }
Пример #3
0
 public GlobalSuite(Stmt body)
     : base(body)
 {
 }
Пример #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;
 }
Пример #5
0
 protected ScopeStatement(Stmt body)
 {
     this.body = body;
 }