Esempio n. 1
0
        protected internal override bool DoMatch(AstNode other, ICSharpCode.NRefactory.PatternMatching.Match match)
        {
            TypeDeclaration t = other as TypeDeclaration;

            return(t != null &&
                   MatchAttributesAndModifiers(t, match) &&
                   Members.DoMatch(t.Members, match) &&
                   ClassType == t.ClassType &&
                   Name.DoMatch(t.Name, match) &&
                   TypeParameters.DoMatch(t.TypeParameters, match) &&
                   InheritsType.DoMatch(t.InheritsType, match) &&
                   ImplementsTypes.DoMatch(t.ImplementsTypes, match));
        }
Esempio n. 2
0
        protected internal override bool DoMatch(AstNode other, ICSharpCode.NRefactory.PatternMatching.Match match)
        {
            var o = other as DelegateDeclaration;

            return(o != null &&
                   MatchAttributesAndModifiers(o, match) &&
                   IsSub == o.IsSub &&
                   TypeParameters.DoMatch(o.TypeParameters, match) &&
                   Name.DoMatch(o.Name, match) &&
                   Parameters.DoMatch(o.Parameters, match) &&
                   ReturnTypeAttributes.DoMatch(o.ReturnTypeAttributes, match) &&
                   ReturnType.DoMatch(o.ReturnType, match));
        }
Esempio n. 3
0
        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));
        }