public override TestFramework VisitGraph([NotNull] DOTParser.GraphContext context)
            {
                this.Context   = new DOTContext();
                this.Framework = null;

                // Visit children
                this.Framework = base.VisitGraph(context);

                this.Framework = new TestFramework(this.Parent.Source, this.Context.MasterTestSuite);
                this.Context   = null;

                return(this.Framework);
            }
Exemple #2
0
 public override void ExitGraph(DOTParser.GraphContext context)
 {
     OnRuleLeave(Rule.Graph, context.GetText());
     base.ExitGraph(context);
 }
 /// <summary>
 /// Exit a parse tree produced by <see cref="DOTParser.graph"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitGraph([NotNull] DOTParser.GraphContext context)
 {
 }
Exemple #4
0
 public override void EnterGraph(DOTParser.GraphContext context)
 {
     OnRuleEnter(Rule.Graph, context.GetText());
     base.EnterGraph(context);
 }
 /// <summary>
 /// Visit a parse tree produced by <see cref="DOTParser.graph"/>.
 /// <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 VisitGraph([NotNull] DOTParser.GraphContext context)
 {
     return(VisitChildren(context));
 }