Esempio 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);
        }
Esempio n. 2
0
 public bool IsValid()
 {
     return(myDeclaration.IsValid());
 }