Ejemplo n.º 1
0
 private Exp SearchUse()
 {
     ZLMethodInfo[] zmethods = this.ExpContext.ClassContext.FileContext.ImportUseContext.SearchUseMethod(CallDesc);
     if (zmethods.Length == 0)
     {
         return(null);
     }
     else if (zmethods.Length > 1)
     {
         Errorf(this.Position, "找到多个过程,不能确定是属于哪一个简略使用的类型的过程");
         return(null);
     }
     else
     {
         ExpCallUse expCallForeign = new ExpCallUse(this.ExpContext, CallDesc, zmethods[0], this.SrcExp, ArgExps);
         return(expCallForeign);
     }
 }
Ejemplo n.º 2
0
 private Exp SearchUse()
 {
     ZMethodInfo[] zmethods = this.ExpContext.ClassContext.FileContext.SearchUseProc(ExpProcDesc);
     if (zmethods.Length == 0)
     {
         return(null);
     }
     else if (zmethods.Length > 1)
     {
         ErrorE(this.Postion, "找到多个过程,不能确定是属于哪一个简略使用的类型的过程");
         return(null);
     }
     else
     {
         ExpCallUse expCallForeign = new ExpCallUse(this.ExpContext, ExpProcDesc, zmethods[0], this);
         return(expCallForeign);
     }
 }