File tree Expand file tree Collapse file tree
key.core/src/main/java/de/uka/ilkd/key/nparser Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121
2222import org .antlr .v4 .runtime .*;
2323import org .antlr .v4 .runtime .atn .PredictionMode ;
24- import org .antlr .v4 .runtime .misc .ParseCancellationException ;
2524import org .antlr .v4 .runtime .tree .TerminalNode ;
2625import org .jspecify .annotations .NonNull ;
2726import org .jspecify .annotations .Nullable ;
@@ -133,15 +132,7 @@ public static KeyAst.File parseFile(CharStream stream) {
133132 // we don't want error messages or recovery during first try
134133 p .removeErrorListeners ();
135134 p .setErrorHandler (new BailErrorStrategy ());
136- KeYParser .FileContext ctx ;
137- try {
138- ctx = p .file ();
139- } catch (ParseCancellationException ex ) {
140- LOGGER .warn ("SLL was not enough" );
141- p = createParser (stream );
142- ctx = p .file ();
143- }
144-
135+ KeYParser .FileContext ctx = p .file ();
145136 p .getErrorReporter ().throwException ();
146137 return new KeyAst .File (ctx );
147138 }
You can’t perform that action at this time.
0 commit comments