コード例 #1
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));
        }
コード例 #2
0
        protected internal override bool DoMatch(AstNode other, ICSharpCode.NRefactory.PatternMatching.Match match)
        {
            // TODO : finish
            var method = other as ExternalMethodDeclaration;

            return(method != null &&
                   MatchAttributesAndModifiers(method, match) &&
                   IsSub == method.IsSub &&
                   Name.DoMatch(method.Name, match) &&
                   Parameters.DoMatch(method.Parameters, match) &&
                   ReturnTypeAttributes.DoMatch(method.ReturnTypeAttributes, match) &&
                   ReturnType.DoMatch(method.ReturnType, match));
        }
コード例 #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));
        }