Exemple #1
0
 public sealed override object VisitNamespaceBlockStatement([NotNull] ClepsParser.NamespaceBlockStatementContext context)
 {
     CurrentNamespaceHierarchy.Add(context.NamespaceName.GetText());
     VisitChildren(context);
     CurrentNamespaceHierarchy.RemoveAt(CurrentNamespaceHierarchy.Count - 1);
     return(true);
 }
Exemple #2
0
        public override int VisitNamespaceBlockStatement([NotNull] ClepsParser.NamespaceBlockStatementContext context)
        {
            CurrentNamespaceAndClass.Add(context.NamespaceName.GetText());
            var ret = VisitChildren(context);

            CurrentNamespaceAndClass.RemoveAt(CurrentNamespaceAndClass.Count - 1);
            return(ret);
        }
Exemple #3
0
 /// <summary>
 /// Exit a parse tree produced by <see cref="ClepsParser.namespaceBlockStatement"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitNamespaceBlockStatement([NotNull] ClepsParser.NamespaceBlockStatementContext context)
 {
 }
Exemple #4
0
 /// <summary>
 /// Visit a parse tree produced by <see cref="ClepsParser.namespaceBlockStatement"/>.
 /// <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 VisitNamespaceBlockStatement([NotNull] ClepsParser.NamespaceBlockStatementContext context)
 {
     return(VisitChildren(context));
 }