public ProcConstructorDefault(ClassAST classAST) { RetZType = ZLangBasicTypes.ZVOID; ASTClass = classAST; Raw = null; ConstructorContext = new ContextConstructor(ASTClass.ClassContext); }
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); }
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); }
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); } }
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); }
public SectionExtendsClass(ClassAST classAST, SectionExtendsRaw raw) { ASTClass = classAST; Raw = raw; }
public ProcConstructor(ClassAST classAST) { ASTClass = classAST; }