Exemplo n.º 1
0
        public ContextMethod(ContextClass classContext) : base(classContext)
        {
            ZCClassInfo cclass = this.ClassContext.GetZCompilingType();

            ZMethodInfo = new ZCMethodInfo(cclass);
            cclass.AddMethod(ZMethodInfo);
        }
Exemplo n.º 2
0
        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>();
        }
Exemplo n.º 3
0
        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;
        }
Exemplo n.º 4
0
        //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());
        }
Exemplo n.º 5
0
 public ContextProc(ContextClass classContext) : this()
 {
     this.ClassContext = classContext;
     ProcIndex++;
     //_KeyContext = ProcIndex.ToString();
 }