/// <summary>
 /// Visit a parse tree produced by <see cref="YarnSpinnerParser.shortcut_text"/>.
 /// <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 VisitShortcut_text([NotNull] YarnSpinnerParser.Shortcut_textContext context)
 {
     return(VisitChildren(context));
 }
示例#2
0
 // tiny helper to return the text of a short cut
 // making it a separate method call because I am positive shortcuts will change
 private string ShortcutText(YarnSpinnerParser.Shortcut_textContext context)
 {
     return(context.SHORTCUT_TEXT().GetText().Trim());
 }
示例#3
0
 /// <summary>
 /// Exit a parse tree produced by <see cref="YarnSpinnerParser.shortcut_text"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitShortcut_text([NotNull] YarnSpinnerParser.Shortcut_textContext context)
 {
 }