protected internal override bool DoMatch(AstNode other, ICSharpCode.NRefactory.PatternMatching.Match match) { var method = other as MethodDeclaration; return(method != null && MatchAttributesAndModifiers(method, match) && IsSub == method.IsSub && Name.DoMatch(method.Name, match) && TypeParameters.DoMatch(method.TypeParameters, match) && Parameters.DoMatch(method.Parameters, match) && ReturnTypeAttributes.DoMatch(method.ReturnTypeAttributes, match) && ReturnType.DoMatch(method.ReturnType, match) && HandlesClause.DoMatch(method.HandlesClause, match) && ImplementsClause.DoMatch(method.ImplementsClause, match) && Body.DoMatch(method.Body, match)); }