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

Unified Diff: runtime/vm/object.h

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
« no previous file with comments | « runtime/vm/mirrors_api_impl.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
===================================================================
--- runtime/vm/object.h (revision 27310)
+++ runtime/vm/object.h (working copy)
@@ -2366,24 +2366,18 @@
void AddClass(const Class& cls) const;
void AddObject(const Object& obj, const String& name) const;
void ReplaceObject(const Object& obj, const String& name) const;
- RawObject* LookupExport(const String& name) const;
- RawObject* LookupObject(const String& name,
- String* ambiguity_error_msg) const;
- RawObject* LookupObjectAllowPrivate(const String& name,
- String* ambiguity_error_msg) const;
+ RawObject* LookupReExport(const String& name) const;
+ RawObject* LookupObject(const String& name) const;
+ RawObject* LookupObjectAllowPrivate(const String& name) const;
RawObject* LookupLocalObjectAllowPrivate(const String& name) const;
RawObject* LookupLocalObject(const String& name) const;
- RawObject* LookupImportedObject(const String& name,
- String* ambiguity_error_msg) const;
- RawClass* LookupClass(const String& name, String* ambiguity_error_msg) const;
- RawClass* LookupClassAllowPrivate(const String& name,
- String* ambiguity_error_msg) const;
+ RawObject* LookupImportedObject(const String& name) const;
+ RawClass* LookupClass(const String& name) const;
+ RawClass* LookupClassAllowPrivate(const String& name) const;
RawClass* LookupLocalClass(const String& name) const;
- RawField* LookupFieldAllowPrivate(const String& name,
- String* ambiguity_error_msg) const;
+ RawField* LookupFieldAllowPrivate(const String& name) const;
RawField* LookupLocalField(const String& name) const;
- RawFunction* LookupFunctionAllowPrivate(const String& name,
- String* ambiguity_error_msg) const;
+ RawFunction* LookupFunctionAllowPrivate(const String& name) const;
RawFunction* LookupLocalFunction(const String& name) const;
RawLibraryPrefix* LookupLocalLibraryPrefix(const String& name) const;
RawScript* LookupScript(const String& url) const;
@@ -2521,8 +2515,8 @@
bool ContainsLibrary(const Library& library) const;
RawLibrary* GetLibrary(int index) const;
void AddImport(const Namespace& import) const;
- RawClass* LookupClass(const String& class_name,
- String* ambiguity_error_msg) const;
+ RawObject* LookupObject(const String& name) const;
+ RawClass* LookupClass(const String& class_name) const;
static intptr_t InstanceSize() {
return RoundedAllocationSize(sizeof(RawLibraryPrefix));
@@ -2544,6 +2538,8 @@
};
+// A Namespace contains the names in a library dictionary, filtered by
+// the show/hide combinators.
class Namespace : public Object {
public:
RawLibrary* library() const { return raw_ptr()->library_; }
« no previous file with comments | « runtime/vm/mirrors_api_impl.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698