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

Unified Diff: runtime/vm/code_generator_test.cc

Issue 23484020: Update handling of ambiguous name references (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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/code_generator_test.cc
===================================================================
--- runtime/vm/code_generator_test.cc (revision 27297)
+++ runtime/vm/code_generator_test.cc (working copy)
@@ -275,8 +275,7 @@
static RawClass* LookupClass(const Library& lib, const char* name) {
const String& cls_name = String::ZoneHandle(Symbols::New(name));
- String& ambiguity_error_msg = String::Handle();
- return lib.LookupClass(cls_name, &ambiguity_error_msg);
+ return lib.LookupClass(cls_name);
}
@@ -561,10 +560,8 @@
Library& app_lib = Library::Handle();
app_lib ^= libs.At(num_libs - 1);
ASSERT(!app_lib.IsNull());
- String& ambiguity_error_msg = String::Handle();
const Class& cls = Class::Handle(
- app_lib.LookupClass(String::Handle(Symbols::New("A")),
- &ambiguity_error_msg));
+ app_lib.LookupClass(String::Handle(Symbols::New("A"))));
EXPECT_EQ(cls.raw(), result.clazz()); // No ambiguity error expected.
regis 2013/09/09 21:29:07 ditto
hausner 2013/09/09 21:52:08 Done.
}

Powered by Google App Engine
This is Rietveld 408576698