예제 #1
0
        public string GetMethodName()
        {
            ContextClass context   = this.ProcContext.ClassContext;
            ZClassType   baseZType = context.BaseZType;

            if (baseZType != null)
            {
                ZCallDesc callDesc = ToZCallDesc(ProcDesc);
                var       zmethod  = baseZType.SearchZMethod(callDesc);
                if (zmethod != null)
                {
                    return(zmethod.SharpMethod.Name);
                }
            }
            return(this.ProcDesc.ToMethodName());
        }
예제 #2
0
 public override Exp Analy( )
 {
     if (SubjectExp.RetType is ZEnumType)
     {
         ErrorE(this.Postion, "约定类型没有过程");
     }
     else
     {
         SubjectZType = (SubjectExp.RetType as ZClassType);
         CallZMethod  = SubjectZType.SearchZMethod(ExpProcDesc);
         if (CallZMethod == null)
         {
             ErrorE(this.Postion, "没有找到对应的过程");
         }
         else
         {
             this.RetType = CallZMethod.RetZType;
         }
     }
     return(this);
 }