コード例 #1
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            QueryLetClause o = other as QueryLetClause;

            return(o != null && MatchString(this.Identifier, o.Identifier) && this.Expression.DoMatch(o.Expression, match));
        }
コード例 #2
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            var o = other as AnonymousTypeCreateExpression;

            return(o != null && this.Initializers.DoMatch(o.Initializers, match));
        }
コード例 #3
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            IdentifierExpression o = other as IdentifierExpression;

            return(o != null && MatchString(this.Identifier, o.Identifier) && this.TypeArguments.DoMatch(o.TypeArguments, match));
        }
コード例 #4
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            var o = other as TextNode;

            return(o != null && o.Text == Text);
        }
コード例 #5
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            TypeParameterDeclaration o = other as TypeParameterDeclaration;

            return(o != null && this.Variance == o.Variance && MatchString(this.Name, o.Name) && this.Attributes.DoMatch(o.Attributes, match));
        }
コード例 #6
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            ConstructorInitializer o = other as ConstructorInitializer;

            return(o != null && !o.IsNull && this.ConstructorInitializerType == o.ConstructorInitializerType && this.Arguments.DoMatch(o.Arguments, match));
        }
コード例 #7
0
 protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
 {
     NamespaceDeclaration o = other as NamespaceDeclaration;
     return o != null && MatchString(this.Name, o.Name) && this.Members.DoMatch(o.Members, match);
 }
コード例 #8
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            QueryExpression o = other as QueryExpression;

            return(o != null && !o.IsNull && this.Clauses.DoMatch(o.Clauses, match));
        }
コード例 #9
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            ComposedType o = other as ComposedType;

            return(o != null && this.HasNullableSpecifier == o.HasNullableSpecifier && this.PointerRank == o.PointerRank && this.ArraySpecifiers.DoMatch(o.ArraySpecifiers, match));
        }
コード例 #10
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            QuerySelectClause o = other as QuerySelectClause;

            return(o != null && this.Expression.DoMatch(o.Expression, match));
        }
コード例 #11
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            QueryGroupClause o = other as QueryGroupClause;

            return(o != null && this.Projection.DoMatch(o.Projection, match) && this.Key.DoMatch(o.Key, match));
        }
コード例 #12
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            QueryOrdering o = other as QueryOrdering;

            return(o != null && this.Direction == o.Direction && this.Expression.DoMatch(o.Expression, match));
        }
コード例 #13
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            QueryOrderClause o = other as QueryOrderClause;

            return(o != null && this.Orderings.DoMatch(o.Orderings, match));
        }
コード例 #14
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            QueryWhereClause o = other as QueryWhereClause;

            return(o != null && this.Condition.DoMatch(o.Condition, match));
        }
コード例 #15
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            PrimitiveExpression o = other as PrimitiveExpression;

            return(o != null && (this.Value == AnyValue || object.Equals(this.Value, o.Value)));
        }
コード例 #16
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            CatchClause o = other as CatchClause;

            return(o != null && this.Type.DoMatch(o.Type, match) && MatchString(this.VariableName, o.VariableName) && this.Body.DoMatch(o.Body, match));
        }
コード例 #17
0
ファイル: CompilationUnit.cs プロジェクト: shalang/ILSpy
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            CompilationUnit o = other as CompilationUnit;

            return(o != null && GetChildrenByRole(MemberRole).DoMatch(o.GetChildrenByRole(MemberRole), match));
        }
コード例 #18
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            TryCatchStatement o = other as TryCatchStatement;

            return(o != null && this.TryBlock.DoMatch(o.TryBlock, match) && this.CatchClauses.DoMatch(o.CatchClauses, match) && this.FinallyBlock.DoMatch(o.FinallyBlock, match));
        }
コード例 #19
0
ファイル: ErrorExpression.cs プロジェクト: sq/ILSpy-JSIL
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            var o = other as ErrorExpression;

            return(o != null);
        }
コード例 #20
0
ファイル: EntityDeclaration.cs プロジェクト: sq/ILSpy-JSIL
 protected bool MatchAttributesAndModifiers(EntityDeclaration o, PatternMatching.Match match)
 {
     return((this.Modifiers == Modifiers.Any || this.Modifiers == o.Modifiers) && this.Attributes.DoMatch(o.Attributes, match));
 }
コード例 #21
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            PrimitiveType o = other as PrimitiveType;

            return(o != null && MatchString(this.Keyword, o.Keyword));
        }
コード例 #22
0
ファイル: Identifier.cs プロジェクト: chinapathbreaker/ILEdit
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            Identifier o = other as Identifier;

            return(o != null && !o.IsNull && MatchString(this.Name, o.Name));
        }
コード例 #23
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            CSharpModifierToken o = other as CSharpModifierToken;

            return(o != null && this.modifier == o.modifier);
        }
コード例 #24
0
ファイル: SyntaxTree.cs プロジェクト: kaagati/NRefactory
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            SyntaxTree o = other as SyntaxTree;

            return(o != null && GetChildrenByRole(MemberRole).DoMatch(o.GetChildrenByRole(MemberRole), match));
        }
コード例 #25
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            ArraySpecifier o = other as ArraySpecifier;

            return(o != null && this.Dimensions == o.Dimensions);
        }
コード例 #26
0
ファイル: BlockStatement.cs プロジェクト: tanujmathur/ILSpy
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            BlockStatement o = other as BlockStatement;

            return(o != null && !o.IsNull && this.Statements.DoMatch(o.Statements, match));
        }
コード例 #27
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            ObjectCreateExpression o = other as ObjectCreateExpression;

            return(o != null && this.Type.DoMatch(o.Type, match) && this.Arguments.DoMatch(o.Arguments, match) && this.Initializer.DoMatch(o.Initializer, match));
        }
コード例 #28
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            UsingDeclaration o = other as UsingDeclaration;

            return(o != null && this.Import.DoMatch(o.Import, match));
        }
コード例 #29
0
ファイル: Statement.cs プロジェクト: n3gwave/NRefactory
 protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
 {
     return(other == null || other.IsNull);
 }
コード例 #30
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            QueryContinuationClause o = other as QueryContinuationClause;

            return(o != null && MatchString(this.Identifier, o.Identifier) && this.PrecedingQuery.DoMatch(o.PrecedingQuery, match));
        }