/// <summary>
 /// Visit a parse tree produced by <see cref="Z80TestParser.assignment"/>.
 /// <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 VisitAssignment(Z80TestParser.AssignmentContext context)
 {
     if (IsInvalidContext(context))
     {
         return(null);
     }
     if (context.regAssignment() != null)
     {
         return((RegisterAssignmentNode)VisitRegAssignment(context.regAssignment()));
     }
     if (context.flagStatus() != null)
     {
         return((FlagAssignmentNode)VisitFlagStatus(context.flagStatus()));
     }
     return((MemoryAssignmentNode)VisitMemAssignment(context.memAssignment()));
 }
 /// <summary>
 /// Exit a parse tree produced by <see cref="Z80TestParser.assignment"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitAssignment([NotNull] Z80TestParser.AssignmentContext context)
 {
 }
Beispiel #3
0
 /// <summary>
 /// Visit a parse tree produced by <see cref="Z80TestParser.assignment"/>.
 /// <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 VisitAssignment([NotNull] Z80TestParser.AssignmentContext context)
 {
     return(VisitChildren(context));
 }