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

Unified Diff: runtime/vm/parser_test.cc

Issue 1868803002: Use symbols when looking up fields in a class (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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/parser_test.cc
diff --git a/runtime/vm/parser_test.cc b/runtime/vm/parser_test.cc
index 58892279a18bdc217fecd241d558ea0cfd3e356e..fe9230871903c676ec1c529057394661e572575e 100644
--- a/runtime/vm/parser_test.cc
+++ b/runtime/vm/parser_test.cc
@@ -65,7 +65,7 @@ void CheckField(const Library& lib,
Function& function = Function::Handle();
Field& field = Field::Handle();
if (expect_static) {
- field ^= cls.LookupStaticField(fieldname);
+ field ^= cls.LookupStaticFieldAllowPrivate(fieldname);
functionname ^= Field::GetterName(fieldname);
function ^= cls.LookupStaticFunction(functionname);
EXPECT(function.IsNull());
@@ -73,7 +73,7 @@ void CheckField(const Library& lib,
function ^= cls.LookupStaticFunction(functionname);
EXPECT(function.IsNull());
} else {
- field ^= cls.LookupInstanceField(fieldname);
+ field ^= cls.LookupInstanceFieldAllowPrivate(fieldname);
functionname ^= Field::GetterName(fieldname);
function ^= cls.LookupDynamicFunction(functionname);
EXPECT(!function.IsNull());

Powered by Google App Engine
This is Rietveld 408576698