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

Unified Diff: pkg/front_end/lib/src/fasta/dill/dill_target.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/dill/dill_target.dart
diff --git a/pkg/front_end/lib/src/fasta/dill/dill_target.dart b/pkg/front_end/lib/src/fasta/dill/dill_target.dart
index 1937800dfc345fc372c695fac3557ae928ccd5a6..84ab7fdda7e4e286ee27ebec5f680a72b22b8cb3 100644
--- a/pkg/front_end/lib/src/fasta/dill/dill_target.dart
+++ b/pkg/front_end/lib/src/fasta/dill/dill_target.dart
@@ -10,12 +10,18 @@ import 'package:kernel/ast.dart' show Class;
import 'package:kernel/target/targets.dart' show Target;
-import '../deprecated_problems.dart' show deprecated_internalProblem;
import '../kernel/kernel_builder.dart' show ClassBuilder;
+
+import '../problems.dart' show unsupported;
+
import '../target_implementation.dart' show TargetImplementation;
+
import '../ticker.dart' show Ticker;
+
import '../translate_uri.dart' show TranslateUri;
+
import 'dill_library_builder.dart' show DillLibraryBuilder;
+
import 'dill_loader.dart' show DillLoader;
class DillTarget extends TargetImplementation {
@@ -29,16 +35,16 @@ class DillTarget extends TargetImplementation {
void addSourceInformation(
Uri uri, List<int> lineStarts, List<int> sourceCode) {
- deprecated_internalProblem("Unsupported operation.");
+ unsupported("addSourceInformation", -1, null);
}
void read(Uri uri) {
- deprecated_internalProblem("Unsupported operation.");
+ unsupported("read", -1, null);
}
@override
Future<Null> buildProgram() {
- return deprecated_internalProblem("not implemented.");
+ return new Future<Null>.sync(() => unsupported("buildProgram", -1, null));
Johnni Winther 2017/07/11 18:34:05 Should this have been an 'unimplemented' ?
ahe 2017/07/12 14:04:02 By now it's an unsupported operation. I know this
}
@override

Powered by Google App Engine
This is Rietveld 408576698