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)); }
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); }
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)); }
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); }
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)); }
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)); }
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) { QuerySelectClause o = other as QuerySelectClause; return(o != null && this.Expression.DoMatch(o.Expression, match)); }
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)); }
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)); }
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) { QueryOrderClause o = other as QueryOrderClause; return(o != null && this.Orderings.DoMatch(o.Orderings, match)); }
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) { QueryWhereClause o = other as QueryWhereClause; return(o != null && this.Condition.DoMatch(o.Condition, match)); }
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))); }
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) { CompilationUnit o = other as CompilationUnit; return(o != null && GetChildrenByRole(MemberRole).DoMatch(o.GetChildrenByRole(MemberRole), match)); }
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)); }
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) { var o = other as ErrorExpression; return(o != null); }
protected bool MatchAttributesAndModifiers(EntityDeclaration o, PatternMatching.Match match) { return((this.Modifiers == Modifiers.Any || this.Modifiers == o.Modifiers) && this.Attributes.DoMatch(o.Attributes, match)); }
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) { PrimitiveType o = other as PrimitiveType; return(o != null && MatchString(this.Keyword, o.Keyword)); }
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)); }
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) { CSharpModifierToken o = other as CSharpModifierToken; return(o != null && this.modifier == o.modifier); }
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); }
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)); }
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)); }
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) { UsingDeclaration o = other as UsingDeclaration; return(o != null && this.Import.DoMatch(o.Import, match)); }
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) { return(other == null || other.IsNull); }
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)); }