Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Unified Diff: pkg/front_end/lib/src/fasta/type_inference/type_promotion.dart

Issue 2974933002: Remove deprecated_internalProblem. (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/front_end/lib/src/fasta/type_inference/type_promotion.dart
diff --git a/pkg/front_end/lib/src/fasta/type_inference/type_promotion.dart b/pkg/front_end/lib/src/fasta/type_inference/type_promotion.dart
index 0e08d04f00704ae7742edbceb93056da2c0bf4f9..126c51b0dcbf08fc241d9defcc9f15dc6e663779 100644
--- a/pkg/front_end/lib/src/fasta/type_inference/type_promotion.dart
+++ b/pkg/front_end/lib/src/fasta/type_inference/type_promotion.dart
@@ -2,7 +2,9 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE.md file.
-import 'package:front_end/src/fasta/deprecated_problems.dart';
+import 'package:front_end/src/fasta/problems.dart' show internalProblem;
+import 'package:front_end/src/fasta/fasta_codes.dart'
+ show templateInternalProblemStackNotEmpty;
import 'package:front_end/src/fasta/type_inference/type_inferrer.dart';
import 'package:kernel/ast.dart';
@@ -217,7 +219,11 @@ abstract class TypePromoterImpl extends TypePromoter {
void finished() {
debugEvent('finished');
if (_currentScope is! _TopLevelScope) {
- deprecated_internalProblem('Stack not empty');
+ internalProblem(
+ templateInternalProblemStackNotEmpty.withArguments(
+ "$runtimeType", "$_currentScope"),
+ -1,
+ null);
}
}

Powered by Google App Engine
This is Rietveld 408576698