| Index: runtime/vm/parser.cc
|
| diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
|
| index 5f95f352541511b4efafc4fe523882e4e72b7547..e682207680984eeae35eb3ab5de4868482ba30e3 100644
|
| --- a/runtime/vm/parser.cc
|
| +++ b/runtime/vm/parser.cc
|
| @@ -6062,6 +6062,9 @@ void Parser::ParseLibraryImportExport(const Object& tl_owner,
|
| void Parser::ParseLibraryPart() {
|
| const TokenPosition source_pos = TokenPos();
|
| ConsumeToken(); // Consume "part".
|
| + if (IsSymbol(Symbols::Of())) {
|
| + ReportError("part of declarations are not allowed in script files");
|
| + }
|
| CheckToken(Token::kSTRING, "url expected");
|
| AstNode* url_literal = ParseStringLiteral(false);
|
| ASSERT(url_literal->IsLiteralNode());
|
|
|