Index: pkg/front_end/lib/src/fasta/parser/token_stream_rewriter.dart |
diff --git a/pkg/front_end/lib/src/fasta/parser/token_stream_rewriter.dart b/pkg/front_end/lib/src/fasta/parser/token_stream_rewriter.dart |
index d9dc176f4e03e4e619161dd8cb72b49cd25bcc2e..2fd1824289b7304cfa74c6b65e893483651c7ef2 100644 |
--- a/pkg/front_end/lib/src/fasta/parser/token_stream_rewriter.dart |
+++ b/pkg/front_end/lib/src/fasta/parser/token_stream_rewriter.dart |
@@ -2,7 +2,7 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
-import 'package:front_end/src/fasta/errors.dart'; |
+import 'package:front_end/src/fasta/deprecated_problems.dart'; |
import 'package:front_end/src/scanner/token.dart' show BeginToken, Token; |
/// Provides the capability of inserting tokens into a token stream by rewriting |
@@ -73,7 +73,7 @@ class TokenStreamRewriter { |
// Otherwise scan forward from the start of the token stream. |
Token previous = _scanForPreviousToken(target, _head); |
if (previous == null) { |
- internalError('Could not find previous token'); |
+ deprecated_internalProblem('Could not find previous token'); |
} |
return previous; |
} |