public ZLEnumInfo CreateZType() { var EmitedType = EnumTypeBuilder.CreateType(); ZLEnumInfo ztype = ZTypeManager.GetByMarkType(EmitedType) as ZLEnumInfo; return(ztype); }
public ZDimType GetCreatedZType() { if (EmitedZType == null) { Type type = this.Builder.CreateType(); EmitedZType = ZTypeManager.GetByMarkType(type) as ZDimType; } return(EmitedZType); }
public ZType Compile(ModuleBuilder moduleBuilder, string packageName) { AnalyName(); EmitName(moduleBuilder, packageName); AnalyBody(); EmitBody(); var EmitedType = Builder.CreateType(); ZType ztype = ZTypeManager.GetByMarkType(EmitedType) as ZType; return(ztype); }
public void CreateZType() { ProjectCompileResult compileResult = this.ProjectContext.CompileResult; if (!HasError()) { Type type = this.ClassSection.Builder.CreateType(); IZDescType ztype = ZTypeManager.GetByMarkType(type); this.FileContext.EmitedZClass = ztype as ZType; this.ProjectContext.CompileResult.CompiledTypes.Add(ztype); } }
//public void EmitBody() //{ // if (Properties != null) // { // Properties.EmitBodys(); // } // foreach (ProcConstructorBase item in Constructors) // { // item.EmitBody(); // } // foreach (ProcMethod item in Methods) // { // item.EmitBody(); // } //} public ZLClassInfo CreateZType() { if (!HasError()) { Type type = this.ClassContext.GetTypeBuilder().CreateType(); var ztype = ZTypeManager.GetByMarkType(type); ZLClassInfo zclasstype = (ZLClassInfo)ztype; this.FileContext.EmitedIZDescType = zclasstype; return(zclasstype); } return(null); }