예제 #1
0
        /// <summary>
        /// Visit a parse tree produced by <see cref="Z80TestParser.breakpoint"/>.
        /// <para>
        /// The default implementation returns the result of calling <see cref="AbstractParseTreeVisitor{Result}.VisitChildren(IRuleNode)"/>
        /// on <paramref name="context"/>.
        /// </para>
        /// </summary>
        /// <param name="context">The parse tree.</param>
        /// <return>The visitor result.</return>
        public override object VisitBreakpoint(Z80TestParser.BreakpointContext context)
        {
            if (IsInvalidContext(context))
            {
                return(null);
            }
            var node = new BreakpointsNode(context);

            foreach (var expr in context.expr())
            {
                node.Expressions.Add((ExpressionNode)VisitExpr(expr));
            }
            return(node);
        }
예제 #2
0
 /// <summary>
 /// Creates a clause with the span defined by the passed context
 /// </summary>
 /// <param name="context">Parser rule context</param>
 public BreakpointsNode(Z80TestParser.BreakpointContext context) : base(context)
 {
     BreakpointKeywordSpan = new TextSpan(context.BREAKPOINT());
     Expressions           = new List <ExpressionNode>();
 }
 /// <summary>
 /// Exit a parse tree produced by <see cref="Z80TestParser.breakpoint"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitBreakpoint([NotNull] Z80TestParser.BreakpointContext context)
 {
 }
예제 #4
0
 /// <summary>
 /// Visit a parse tree produced by <see cref="Z80TestParser.breakpoint"/>.
 /// <para>
 /// The default implementation returns the result of calling <see cref="AbstractParseTreeVisitor{Result}.VisitChildren(IRuleNode)"/>
 /// on <paramref name="context"/>.
 /// </para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 /// <return>The visitor result.</return>
 public virtual Result VisitBreakpoint([NotNull] Z80TestParser.BreakpointContext context)
 {
     return(VisitChildren(context));
 }