protected internal override bool DoMatch(AstNode other, Mi.NRefactory.PatternMatching.Match match)
 {
     return(other == null || other.IsNull);
 }
Exemple #2
0
        protected internal override bool DoMatch(AstNode other, Mi.NRefactory.PatternMatching.Match match)
        {
            CSharpTokenNode o = other as CSharpTokenNode;

            return(o != null && !o.IsNull && !(o is CSharpModifierToken));
        }
        protected internal override bool DoMatch(AstNode other, Mi.NRefactory.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, Mi.NRefactory.PatternMatching.Match match)
        {
            PrimitiveType o = other as PrimitiveType;

            return(o != null && MatchString(this.Keyword, o.Keyword));
        }