Exemplo n.º 1
0
        public override void ExitDotNetGenericArg(DotNetIlTypeNameParser.DotNetGenericArgContext context)
        {
            if (context.dotNetAsmTypeName() != null && MyDotNetNames.Get(context.dotNetAsmTypeName()) != null)
            {
                var myName = MyDotNetNames.RemoveFrom(context.dotNetAsmTypeName());
                if (myName != null)
                {
                    MyGenericArgs.Put(context, myName);
                }
            }
            if (context.dotNetGenericName() != null && MyDotNetNames.Get(context.dotNetGenericName()) != null)
            {
                var myName = MyDotNetNames.RemoveFrom(context.dotNetGenericName());
                if (myName != null)
                {
                    MyGenericArgs.Put(context, myName);
                }
            }

            if (context.dotNetName() != null)
            {
                var netName = new NfTypeNameParseItem {
                    FullName = ConcatDotNetName(context.dotNetName())
                };
                MyGenericArgs.Put(context, netName);
            }
        }
 /// <summary>
 /// Exit a parse tree produced by <see cref="DotNetIlTypeNameParser.dotNetGenericArg"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitDotNetGenericArg([NotNull] DotNetIlTypeNameParser.DotNetGenericArgContext context)
 {
 }