private void RestoreCurrentTypeContainer() { if (_types.Peek() is ClassNode) { _class = _types.Peek() as ClassNode; } if (_types.Peek() is InterfaceNode) { _interface = _types.Peek() as InterfaceNode; } if (_types.Peek() is DecoratorNode) { _decorator = _types.Peek() as DecoratorNode; } }
public override void EnterInterfaceDefinition([NotNull] LuminaryParser.InterfaceDefinitionContext context) { _interface = new InterfaceNode(context.IDENTIFIER().GetText(), ExtractDocumentation(context), ExtractSupertypes(context.supertypeList())); _types.Push(_interface); }