public override void EnterClassDeclStmt(SwiftParser.ClassDeclStmtContext context) { ClassDeclrsOutput += $"class {EscapeId(context.ID()[0].GetText())}"; if (context.ID().Count() == 2) { ClassDeclrsOutput += $" : {EscapeId(context.ID()[1].GetText())}\n"; } else { ClassDeclrsOutput += "\n"; } ClassDeclrsOutput += "{\n"; InClass = true; }
public override void ExitClassDeclStmt(SwiftParser.ClassDeclStmtContext context) { ClassDeclrsOutput += "}\n"; InClass = false; }