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

Unified Diff: runtime/vm/dart_api_impl.cc

Issue 10967052: Support for show/hide combinators (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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: runtime/vm/dart_api_impl.cc
===================================================================
--- runtime/vm/dart_api_impl.cc (revision 12785)
+++ runtime/vm/dart_api_impl.cc (working copy)
@@ -4355,15 +4355,17 @@
}
const String& prefix_symbol =
String::Handle(isolate, Symbols::New(prefix_vm));
+ const Namespace& import_ns = Namespace::Handle(
+ Namespace::New(import_vm, Array::Handle(), Array::Handle()));
if (prefix_vm.Length() == 0) {
- library_vm.AddImport(import_vm);
+ library_vm.AddImport(import_ns);
} else {
LibraryPrefix& library_prefix = LibraryPrefix::Handle();
library_prefix = library_vm.LookupLocalLibraryPrefix(prefix_symbol);
if (!library_prefix.IsNull()) {
- library_prefix.AddLibrary(import_vm);
+ library_prefix.AddImport(import_ns);
} else {
- library_prefix = LibraryPrefix::New(prefix_symbol, import_vm);
+ library_prefix = LibraryPrefix::New(prefix_symbol, import_ns);
library_vm.AddObject(library_prefix, prefix_symbol);
}
}
« no previous file with comments | « runtime/vm/code_generator_test.cc ('k') | runtime/vm/debugger.cc » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698