public XMethodReference(IMethodDeclaration methodDecl)
 {
     this.methodDeclaration = new WeakReference(methodDecl);
     this.name          = methodDecl.Name;
     this.declaringType = methodDecl.DeclaringType;
     this.returnType    = methodDecl.ReturnType;
     this.parameters    = methodDecl.Parameters;
 }
Esempio n. 2
0
 private bool CheckMethodReturnType(IMethodReturnType o, IMethodReturnType n)
 {
     if (
         !o.Attributes.Compare(n.Attributes, CheckCustomAttribute) ||
         (o.Type.ToString() != n.Type.ToString())
         )
     {
         Reason += "Method return type";
         return(false);
     }
     return(true);
 }
Esempio n. 3
0
 private bool CheckMethodReturnType(IMethodReturnType o, IMethodReturnType n)
 {
     if (
         !CheckCollection <ICustomAttributeCollection, ICustomAttribute>(
             CheckCustomAttribute, o.Attributes, n.Attributes) ||
         (o.Type.ToString() != n.Type.ToString())
         )
     {
         ReasonCode += "Method return type";
         return(false);
     }
     return(true);
 }
 public virtual void VisitMethodReturnType(IMethodReturnType value)
 {
     VisitCustomAttributeCollection(value.Attributes);
     VisitType(value.Type);
 }
Esempio n. 5
0
 private bool CheckMethodReturnType(IMethodReturnType o, IMethodReturnType n)
 {
     if (
         !o.Attributes.Compare(n.Attributes, CheckCustomAttribute) ||
         (o.Type.ToString() != n.Type.ToString())
         )
     {
         Reason += "Method return type";
         return false;
     }
     return true;
 }
Esempio n. 6
0
 public override void VisitMethodReturnType(IMethodReturnType value)
 {
 }
 public virtual void VisitMethodReturnType(IMethodReturnType value)
 {
     this.VisitCustomAttributeCollection(value.Attributes);
     this.VisitType(value.Type);
 }
 public virtual IMethodReturnType TransformMethodReturnType(IMethodReturnType value)
 {
     this.InsituTransformCustomAttributeCollection(value.Attributes);
     return value;
 }