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) { 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) { CastExpression o = other as CastExpression; return(o != null && this.Type.DoMatch(o.Type, match) && this.Expression.DoMatch(o.Expression, match)); }
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) { return(other == null || other.IsNull); }
bool PatternMatching.INode.DoMatchCollection(Role role, PatternMatching.INode pos, PatternMatching.Match match, PatternMatching.BacktrackingInfo backtrackingInfo) { AstNode o = pos as AstNode; return((pos == null || o != null) && DoMatch(o, match)); }
bool PatternMatching.INode.DoMatchCollection(Role role, PatternMatching.INode pos, PatternMatching.Match match, PatternMatching.BacktrackingInfo backtrackingInfo) { return(child.DoMatchCollection(role, pos, match, backtrackingInfo)); }
protected internal abstract bool DoMatch(AstNode other, PatternMatching.Match match);
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) { 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) { ArraySpecifier o = other as ArraySpecifier; return(o != null && this.Dimensions == o.Dimensions); }
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) { return(other is NewLineNode); }
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) { MemberReferenceExpression o = other as MemberReferenceExpression; return(o != null && this.Target.DoMatch(o.Target, match) && MatchString(this.MemberName, o.MemberName) && this.TypeArguments.DoMatch(o.TypeArguments, match)); }