Ejemplo n.º 1
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            IndexerExpression o = other as IndexerExpression;

            return(o != null && this.Target.DoMatch(o.Target, match) && this.Arguments.DoMatch(o.Arguments, match));
        }
Ejemplo n.º 2
0
 bool PatternMatching.INode.DoMatchCollection(Role?role, PatternMatching.INode?pos, PatternMatching.Match match, PatternMatching.BacktrackingInfo backtrackingInfo)
 {
     return(child.DoMatchCollection(role, pos, match, backtrackingInfo));
 }
Ejemplo n.º 3
0
 protected internal override bool DoMatch(AstNode?other, PatternMatching.Match match)
 {
     return(other == null || other.IsNull);
 }
Ejemplo n.º 4
0
        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));
        }
Ejemplo n.º 5
0
 protected internal override bool DoMatch(AstNode?other, PatternMatching.Match match)
 {
     return(child.DoMatch(other, match));
 }
Ejemplo n.º 6
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            ArrayInitializerExpression o = other as ArrayInitializerExpression;

            return(o != null && this.Elements.DoMatch(o.Elements, match));
        }
Ejemplo n.º 7
0
 protected internal abstract bool DoMatch(AstNode other, PatternMatching.Match match);
Ejemplo n.º 8
0
        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));
        }
Ejemplo n.º 9
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            var o = other as ErrorExpression;

            return(o != null);
        }
Ejemplo n.º 10
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));
        }
Ejemplo n.º 11
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            CSharpModifierToken o = other as CSharpModifierToken;

            return(o != null && this.modifier == o.modifier);
        }
Ejemplo n.º 12
0
 protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
 {
     return(other is FunctionPointerType o && MatchString(this.CallingConvention, o.CallingConvention) &&
            this.TypeArguments.DoMatch(o.TypeArguments, match));
 }
Ejemplo n.º 13
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            SimpleType o = other as SimpleType;

            return(o != null && MatchString(this.Identifier, o.Identifier) && this.TypeArguments.DoMatch(o.TypeArguments, match));
        }
Ejemplo n.º 14
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));
        }
Ejemplo n.º 15
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));
        }
Ejemplo n.º 16
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            IsExpression o = other as IsExpression;

            return(o != null && this.Expression.DoMatch(o.Expression, match) && this.Type.DoMatch(o.Type, match));
        }
Ejemplo n.º 17
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            SyntaxTree o = other as SyntaxTree;

            return(o != null && this.Members.DoMatch(o.Members, match));
        }
Ejemplo n.º 18
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            PrimitiveType o = other as PrimitiveType;

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