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