diff --git a/runtime-testsuite/resources/org/antlr/v4/test/runtime/swift/Swift.test.stg b/runtime-testsuite/resources/org/antlr/v4/test/runtime/swift/Swift.test.stg index 4eef14c50..4a51ace90 100755 --- a/runtime-testsuite/resources/org/antlr/v4/test/runtime/swift/Swift.test.stg +++ b/runtime-testsuite/resources/org/antlr/v4/test/runtime/swift/Swift.test.stg @@ -346,8 +346,22 @@ let walker = ParseTreeWalker() try! walker.walk(LeafListener(), ) >> + TreeNodeWithAltNumField(X) ::= << -// TODO +@parser::members { +open class MyRuleNode: ParserRuleContext { + public var altNum: Int = 0 + override + public init(_ parent: ParserRuleContext?, _ invokingStateNumber: Int) { + super.init(parent, invokingStateNumber) + } + override + open func getAltNumber() -> Int { return altNum } + + override + open func setAltNumber(_ altNum: Int) { self.altNum = altNum } +} +} >> TokenGetterListener(X) ::= <<