Exemplo n.º 1
0
 public override void EnterTypeDeclaration(ExpressParser.TypeDeclarationContext context)
 {
     currentTypeInfo = TypeInfoFromValueTypeContext(context.Identifier().GetText(), context.valueType());
     Types.Add(new TypeDeclaration(currentTypeInfo));
 }
Exemplo n.º 2
0
 public override void ExitTypeDeclaration(ExpressParser.TypeDeclarationContext context)
 {
     currentTypeInfo = null;
 }
 /// <summary>
 /// Exit a parse tree produced by <see cref="ExpressParser.typeDeclaration"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitTypeDeclaration([NotNull] ExpressParser.TypeDeclarationContext context)
 {
 }