Example #1
0
 private void AnlaySearchedConstructor(ZLConstructorInfo ZConstructor)
 {
     RetType = TypeExp.RetType;
     NewAnalyInfo.SearchedZConstructor = ZConstructor;
     NewAnalyInfo.ArgExps = new List <Exp>(BracketExp.GetSubExps());
     NewAnalyInfo.AdjustArgExps();
 }
Example #2
0
        private Exp AnalyNewExp()
        {
            ZLConstructorInfo ZConstructor = SearchZConstructor();

            if (ZConstructor == null)
            {
                Errorf(BracketExp.Position, "没有正确的创建过程");
            }
            else
            {
                AnlaySearchedConstructor(ZConstructor);
            }
            return(this);
        }
Example #3
0
        private Exp AnalyNewExpOneArg()
        {
            ZLConstructorInfo ZConstructor = SearchZConstructor();

            if (ZConstructor == null)
            {
                //强制转换类型
                return(AnalyCast());
            }
            else
            {
                AnlaySearchedConstructor(ZConstructor);
            }
            return(this);
        }