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

Unified Diff: runtime/vm/parser.cc

Issue 189293002: Revert "Access to imports in the VM's runtime mirrors. Extend test coverage of the source mirrors." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 | « runtime/vm/parser.h ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.cc
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
index 822bf26c5272ffe09b6541e3c18d9eaad296f313..1cf58b5c06d6e8770b20f32a3c176756405d7741 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -4925,7 +4925,7 @@ void Parser::ParseIdentList(GrowableObjectArray* names) {
}
-void Parser::ParseLibraryImportExport(intptr_t metadata_pos) {
+void Parser::ParseLibraryImportExport() {
bool is_import = (CurrentToken() == Token::kIMPORT);
bool is_export = (CurrentToken() == Token::kEXPORT);
ASSERT(is_import || is_export);
@@ -4988,13 +4988,8 @@ void Parser::ParseLibraryImportExport(intptr_t metadata_pos) {
library.Register();
}
}
-
- Namespace& ns =
- Namespace::Handle(Namespace::New(library, show_names, hide_names));
- if (metadata_pos >= 0) {
- ns.AddMetadata(metadata_pos, current_class());
- }
-
+ const Namespace& ns =
+ Namespace::Handle(Namespace::New(library, show_names, hide_names));
if (is_import) {
// Ensure that private dart:_ libraries are only imported into dart:
// libraries.
@@ -5067,7 +5062,7 @@ void Parser::ParseLibraryDefinition() {
}
while ((CurrentToken() == Token::kIMPORT) ||
(CurrentToken() == Token::kEXPORT)) {
- ParseLibraryImportExport(metadata_pos);
+ ParseLibraryImportExport();
rewind_pos = TokenPos();
metadata_pos = SkipMetadata();
}
« no previous file with comments | « runtime/vm/parser.h ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698