private void AnlaySearchedConstructor(ZLConstructorInfo ZConstructor) { RetType = TypeExp.RetType; NewAnalyInfo.SearchedZConstructor = ZConstructor; NewAnalyInfo.ArgExps = new List <Exp>(BracketExp.GetSubExps()); NewAnalyInfo.AdjustArgExps(); }
private Exp AnalyNewExp() { ZLConstructorInfo ZConstructor = SearchZConstructor(); if (ZConstructor == null) { Errorf(BracketExp.Position, "没有正确的创建过程"); } else { AnlaySearchedConstructor(ZConstructor); } return(this); }
private Exp AnalyNewExpOneArg() { ZLConstructorInfo ZConstructor = SearchZConstructor(); if (ZConstructor == null) { //强制转换类型 return(AnalyCast()); } else { AnlaySearchedConstructor(ZConstructor); } return(this); }