public void CompileDim() { ProjectCompileResult compileResult = this.ProjectContext.CompileResult; //FileInfo srcFileInfo = this.FileContext.FileModel.SourceFileInfo; if (this.DimSection != null) { DimSection.AnalyBody(); if (!HasError()) { DimSection.EmitBody(); } if (!HasError()) { var ztype = DimSection.GetCreatedZType(); this.ProjectContext.CompileResult.CompiledTypes.Add(ztype); } } }
public void Compile() { ImporteSection.Analy(); DimSection.AnalyBody(); DimSection.EmitBody(); ProjectCompileResult compileResult = this.ProjectContext.CompileResult; if (compileResult.Errors.ContainsKey(this.FileContext.FileModel.ZFileInfo)) { return; } else { //Type type = DimSection.Builder.CreateType(); var ztype = DimSection.GetCreatedZType();//var ztype = ZTypeCache.CreateZDescType(type); this.ProjectContext.CompileResult.CompiledTypes.Add(ztype); } }