Ejemplo n.º 1
0
        public static bool IsValidForContracts(this ICSharpFunctionDeclaration functionDeclaration)
        {
            // TODO: is there any other criterias??

            return(functionDeclaration != null &&
                   functionDeclaration.DeclaredElement != null &&
                   // TODO: removed this, because for abstract method we're considering only return types
                   // but not the body!
                   //functionDeclaration.Body != null &&
                   functionDeclaration.IsValid() &&
                   functionDeclaration.GetReturnType() != null);
        }
Ejemplo n.º 2
0
 public bool IsValid()
 {
     return(myDeclaration.IsValid());
 }