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

Unified Diff: sdk/lib/_internal/compiler/implementation/library_loader.dart

Issue 21074002: Remove support for missing part-of tag. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased and updated cf. comment. Created 7 years, 4 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
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/warnings.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/library_loader.dart
diff --git a/sdk/lib/_internal/compiler/implementation/library_loader.dart b/sdk/lib/_internal/compiler/implementation/library_loader.dart
index 0bcd1a51ca3f377c5f4de13601372de47740c680..8f4f224a52dd305fdc4e27fcc83a5e3da7295ebb 100644
--- a/sdk/lib/_internal/compiler/implementation/library_loader.dart
+++ b/sdk/lib/_internal/compiler/implementation/library_loader.dart
@@ -368,17 +368,7 @@ class LibraryLoaderTask extends LibraryLoader {
compiler.withCurrentElement(unit, () {
compiler.scanner.scan(unit);
if (unit.partTag == null) {
- bool wasDiagnosticEmitted = false;
- compiler.withCurrentElement(library, () {
- wasDiagnosticEmitted =
- compiler.onDeprecatedFeature(part, 'missing part-of tag');
- });
- if (wasDiagnosticEmitted) {
- compiler.reportMessage(
- compiler.spanFromElement(unit),
- MessageKind.MISSING_PART_OF_TAG.error(),
- api.Diagnostic.INFO);
- }
+ compiler.reportError(unit, MessageKind.MISSING_PART_OF_TAG);
}
});
}
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/warnings.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698