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

            return(o != null && this.Condition.DoMatch(o.Condition, match) && this.EmbeddedStatement.DoMatch(o.EmbeddedStatement, match));
        }
Esempio n. 3
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            YieldBreakStatement o = other as YieldBreakStatement;

            return(o != null);
        }
Esempio n. 4
0
 bool PatternMatching.INode.DoMatchCollection(Role role, PatternMatching.INode pos, PatternMatching.Match match, PatternMatching.BacktrackingInfo backtrackingInfo)
 {
     return(child.DoMatchCollection(role, pos, match, backtrackingInfo));
 }
Esempio n. 5
0
 protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
 {
     return(other == null || other.IsNull);
 }
Esempio n. 6
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. 7
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            UncheckedExpression o = other as UncheckedExpression;

            return(o != null && this.Expression.DoMatch(o.Expression, 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)
        {
            var o = other as WhitespaceNode;

            return(o != null && o.WhiteSpaceText == WhiteSpaceText);
        }
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)
        {
            ArraySpecifier o = other as ArraySpecifier;

            return(o != null && this.Dimensions == o.Dimensions);
        }
Esempio n. 16
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            Comment o = other as Comment;

            return(o != null && this.IsDocumentationComment == o.IsDocumentationComment && MatchString(this.Content, o.Content));
        }
Esempio n. 17
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));
        }
 protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
 {
     throw new NotImplementedException();
 }
Esempio n. 19
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            IfElseStatement o = other as IfElseStatement;

            return(o != null && this.Condition.DoMatch(o.Condition, match) && this.TrueStatement.DoMatch(o.TrueStatement, match) && this.FalseStatement.DoMatch(o.FalseStatement, match));
        }
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            TypeReferenceExpression o = other as TypeReferenceExpression;

            return(o != null && this.Type.DoMatch(o.Type, match));
        }
Esempio n. 21
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            ReturnStatement o = other as ReturnStatement;

            return(o != null && this.Expression.DoMatch(o.Expression, match));
        }
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            ConditionalExpression o = other as ConditionalExpression;

            return(o != null && this.Condition.DoMatch(o.Condition, match) && this.TrueExpression.DoMatch(o.TrueExpression, match) && this.FalseExpression.DoMatch(o.FalseExpression, match));
        }
Esempio n. 23
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            VariableInitializer o = other as VariableInitializer;

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

            return(o != null && !o.IsNull && this.Base.DoMatch(o.Base, match) && this.Arguments.DoMatch(o.Arguments, match));
        }
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            NamedArgumentExpression o = other as NamedArgumentExpression;

            return(o != null && MatchString(this.Name, o.Name) && this.Expression.DoMatch(o.Expression, match));
        }
Esempio n. 28
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            UsingStatement o = other as UsingStatement;

            return(o != null && this.ResourceAcquisition.DoMatch(o.ResourceAcquisition, match) && this.EmbeddedStatement.DoMatch(o.EmbeddedStatement, match));
        }
Esempio n. 29
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            UsingAliasDeclaration o = other as UsingAliasDeclaration;

            return(o != null && MatchString(this.Alias, o.Alias) && this.Import.DoMatch(o.Import, match));
        }
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));
        }