示例#1
0
 public ProcConstructorDefault(ClassAST classAST)
 {
     RetZType           = ZLangBasicTypes.ZVOID;
     ASTClass           = classAST;
     Raw                = null;
     ConstructorContext = new ContextConstructor(ASTClass.ClassContext);
 }
示例#2
0
 public ProcMethod(ClassAST classAST, SectionProcRaw raw)
 {
     ASTClass      = classAST;
     Raw           = raw;
     MethodContext = new ContextMethod(ASTClass.ClassContext);
     NamePart      = new MethodName(this, Raw.NamePart);
     Body          = new StmtBlock(this, Raw.Body);
 }
示例#3
0
        public void Analy(ClassAST ast)
        {
            ClassTree = ast;
            base.AnalyRaw(ast);
            this.ClassTree.ClassContext.SetClassName(TypeName);
            ZCClassInfo cclass = this.ClassTree.ClassContext.GetZCompilingType();

            this.FileContext.ImportUseContext.ImportZCompiling(cclass);
        }
示例#4
0
 public SectionPropertiesClass(ClassAST classAST, SectionPropertiesRaw raw)
 {
     ASTClass          = classAST;
     Raw               = raw;
     PropertiesContext = new ContextMethod(ASTClass.ClassContext);
     for (int i = 0; i < Raw.Properties.Count; i++)
     {
         PropertyASTRaw   item = Raw.Properties[i];
         ClassPropertyAST p    = new ClassPropertyAST(this, item);
         Propertys.Add(p);
     }
 }
示例#5
0
 public ProcConstructor(ClassAST classAST, SectionProcRaw raw)
 {
     RetZType                 = ZLangBasicTypes.ZVOID;
     ASTClass                 = classAST;
     Raw                      = raw;
     NameBracketRaw           = Raw.NamePart.GetNameBracket();
     ConstructorContext       = new ContextConstructor(ASTClass.ClassContext);
     ConstructorParameterList = new List <ConstructorParameter>();
     foreach (var item in NameBracketRaw.Parameters)
     {
         ConstructorParameter cp = new ConstructorParameter(this, item);
         ConstructorParameterList.Add(cp);
     }
     Body = new StmtBlock(this, Raw.Body);
 }
示例#6
0
 public SectionExtendsClass(ClassAST classAST, SectionExtendsRaw raw)
 {
     ASTClass = classAST;
     Raw      = raw;
 }
示例#7
0
 public ProcConstructor(ClassAST classAST)
 {
     ASTClass = classAST;
 }