public ContextMethod(ContextClass classContext) : base(classContext) { ZCClassInfo cclass = this.ClassContext.GetZCompilingType(); ZMethodInfo = new ZCMethodInfo(cclass); cclass.AddMethod(ZMethodInfo); }
public ContextProc(ContextClass classContext) { this.ClassContext = classContext; //EachIndex = 0; EmitContext = new ProcEmitContext(); Symbols = new ProcSymbolTable("PROC", classContext.Symbols); ProcNameWordDictionary = new WordDictionary("代码过程表"); ProcVarWordDictionary = new WordDictionary("代码变量表"); //ArgDictionary = new NameDictionary<SymbolArg>(); //LocalVarTable = new NameDictionary<SymbolLocalVar>(); }
public ContextFile(ContextProject projectContext, ZFileModel fileModel) { ProjectContext = projectContext; FileModel = fileModel; //CompiledContext = new CompiledContext(); UseContext = new ContextUse(); //this.ImportCollectionContext = new ImportCollectionContext(); //this.ImportCollectionContext.SetFileContext(this); this.UseContext.SetFileContext(this); //PreDimCollectionContext = new PreDimCollectionContext(); ImportContext = new ContextImport(); ClassContext = new ContextClass(this); SymbolTable = UseContext.SymbolTable; }
//public ZCMethodDesc CMethodDesc { get;private set; } //public ZType RetZType { get; set; } //public string ProcName { get; set; } //private static int _methodIndex = 0; public ContextConstructor(ContextClass classContext) : base(classContext) { IsConstructor = true; ZConstructorInfo = new ZCConstructorInfo(classContext.GetZCompilingType()); }
public ContextProc(ContextClass classContext) : this() { this.ClassContext = classContext; ProcIndex++; //_KeyContext = ProcIndex.ToString(); }