示例#1
0
 public override void ExitInterfaceDefinition([NotNull] LuminaryParser.InterfaceDefinitionContext context)
 {
     _types.Pop();
     _types.Peek().DefinedInterfaces.Add(Swap(ref _interface, null));
     RestoreCurrentTypeContainer();
 }
示例#2
0
 public override void EnterInterfaceDefinition([NotNull] LuminaryParser.InterfaceDefinitionContext context)
 {
     _interface = new InterfaceNode(context.IDENTIFIER().GetText(), ExtractDocumentation(context),
                                    ExtractSupertypes(context.supertypeList()));
     _types.Push(_interface);
 }