| Index: sdk/lib/_internal/compiler/implementation/elements/modelx.dart
|
| ===================================================================
|
| --- sdk/lib/_internal/compiler/implementation/elements/modelx.dart (revision 32236)
|
| +++ sdk/lib/_internal/compiler/implementation/elements/modelx.dart (working copy)
|
| @@ -606,10 +606,7 @@
|
| void setPartOf(PartOf tag, DiagnosticListener listener) {
|
| LibraryElementX library = enclosingElement;
|
| if (library.entryCompilationUnit == this) {
|
| - listener.reportMessage(
|
| - listener.spanFromSpannable(tag),
|
| - MessageKind.ILLEGAL_DIRECTIVE.error(),
|
| - api.Diagnostic.WARNING);
|
| + listener.reportError(tag, MessageKind.ILLEGAL_DIRECTIVE);
|
| return;
|
| }
|
| if (!localMembers.isEmpty) {
|
|
|