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

Unified Diff: pkg/front_end/lib/src/fasta/builder/library_builder.dart

Issue 2977713002: Remove deprecated api from LibraryBuilder. (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/builder/library_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/builder/library_builder.dart b/pkg/front_end/lib/src/fasta/builder/library_builder.dart
index 4eedc7ab95c27f9670f779ad9679efebb17c7781..1701a5c9b993886903e634a6791b29cb27368a76 100644
--- a/pkg/front_end/lib/src/fasta/builder/library_builder.dart
+++ b/pkg/front_end/lib/src/fasta/builder/library_builder.dart
@@ -15,7 +15,6 @@ import '../loader.dart' show Loader;
import '../messages.dart'
show
Message,
- deprecated_warning,
nit,
templateInternalProblemConstructorNotFound,
templateInternalProblemNotFoundIn,
@@ -75,18 +74,10 @@ abstract class LibraryBuilder<T extends TypeBuilder, R> extends Builder {
exporters.add(new Export(exporter, this, combinators, charOffset));
}
- /// See `Loader.deprecated_addCompileTimeError` for an explanation of the
+ /// See `Loader.addCompileTimeError` for an explanation of the
/// arguments passed to this method.
///
/// If [fileUri] is null, it defaults to `this.fileUri`.
- void deprecated_addCompileTimeError(int charOffset, Object message,
- {Uri fileUri, bool silent: false, bool wasHandled: false}) {
- hasCompileTimeErrors = true;
- loader.deprecated_addCompileTimeError(
- fileUri ?? this.fileUri, charOffset, message,
- silent: silent, wasHandled: wasHandled);
- }
-
void addCompileTimeError(Message message, int charOffset, Uri uri,
{bool silent: false, bool wasHandled: false}) {
hasCompileTimeErrors = true;
@@ -107,14 +98,6 @@ abstract class LibraryBuilder<T extends TypeBuilder, R> extends Builder {
}
}
- void deprecated_addWarning(int charOffset, Object message,
- {Uri fileUri, bool silent: false}) {
- fileUri ??= this.fileUri;
- if (!silent) {
- deprecated_warning(fileUri, charOffset, message);
- }
- }
-
/// Returns true if the export scope was modified.
bool addToExportScope(String name, Builder member) {
if (name.startsWith("_")) return false;

Powered by Google App Engine
This is Rietveld 408576698