Esempio n. 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));
        }
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            var o = other as AnonymousTypeCreateExpression;

            return(o != null && this.Initializers.DoMatch(o.Initializers, match));
        }
Esempio n. 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));
        }
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            var o = other as TextNode;

            return(o != null && o.Text == Text);
        }
Esempio n. 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));
        }
        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));
        }
Esempio n. 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);
 }
Esempio n. 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));
        }
Esempio n. 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));
        }
Esempio n. 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));
        }
Esempio n. 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));
        }
Esempio n. 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));
        }
Esempio n. 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));
        }
Esempio n. 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));
        }
Esempio n. 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)));
        }
Esempio n. 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));
        }
Esempio n. 17
0
        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));
        }
Esempio n. 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));
        }
Esempio n. 19
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            var o = other as ErrorExpression;

            return(o != null);
        }
Esempio n. 20
0
 protected bool MatchAttributesAndModifiers(EntityDeclaration o, PatternMatching.Match match)
 {
     return((this.Modifiers == Modifiers.Any || this.Modifiers == o.Modifiers) && this.Attributes.DoMatch(o.Attributes, match));
 }
Esempio n. 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));
        }
Esempio n. 22
0
        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));
        }
Esempio n. 23
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            CSharpModifierToken o = other as CSharpModifierToken;

            return(o != null && this.modifier == o.modifier);
        }
Esempio n. 24
0
        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));
        }
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            ArraySpecifier o = other as ArraySpecifier;

            return(o != null && this.Dimensions == o.Dimensions);
        }
Esempio n. 26
0
        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));
        }
Esempio n. 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));
        }
Esempio n. 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));
        }
Esempio n. 29
0
 protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
 {
     return(other == null || other.IsNull);
 }
Esempio n. 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));
        }