Skip to content

Commit

Permalink
Merge pull request #2408 from ewanmellor/swift-fix-perf-tests
Browse files Browse the repository at this point in the history
[Swift] Make ParserATNSimulator.precedenceTransition return a nullable value.
  • Loading branch information
parrt authored Nov 15, 2018
2 parents 237ba0f + d275a8c commit 9611faa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/Swift/Sources/Antlr4/atn/ParserATNSimulator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1722,7 +1722,7 @@ open class ParserATNSimulator: ATNSimulator {
_ pt: PrecedencePredicateTransition,
_ collectPredicates: Bool,
_ inContext: Bool,
_ fullCtx: Bool) throws -> ATNConfig {
_ fullCtx: Bool) throws -> ATNConfig? {
if debug {
print("PRED (collectPredicates=\(collectPredicates)) \(pt.precedence)>=_p, ctx dependent=true")
//if ( parser != nil ) {
Expand Down Expand Up @@ -1757,7 +1757,7 @@ open class ParserATNSimulator: ATNSimulator {
if debug {
print("config from pred transition=\(c?.description ?? "nil")")
}
return c!
return c
}


Expand Down

0 comments on commit 9611faa

Please sign in to comment.