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

Unified Diff: runtime/vm/parser.h

Issue 11232071: Ambiguous references do not necessarily cause compilation errors (issue 5736). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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.h
===================================================================
--- runtime/vm/parser.h (revision 13985)
+++ runtime/vm/parser.h (working copy)
@@ -135,6 +135,11 @@
const char* message_header,
const char* format,
va_list args);
+ static RawError* FormatErrorMsg(const Script& script,
+ intptr_t token_pos,
+ const char* message_header,
+ const char* format, ...)
+ PRINTF_ATTRIBUTE(4, 5);
// Same as FormatError, but appends the new error to the 'prev_error'.
static RawError* FormatErrorWithAppend(const Error& prev_error,
@@ -504,28 +509,32 @@
static const bool kResolveLocally = true;
static const bool kResolveIncludingImports = false;
- // Resolve a primary identifier in the libary or prefix scope and
+ // Resolve a primary identifier in the library or prefix scope and
// generate the corresponding AstNode.
+ AstNode* ResolveIdentInCurrentLibraryScope(intptr_t ident_pos,
+ const String& ident);
AstNode* ResolveIdentInPrefixScope(intptr_t ident_pos,
const LibraryPrefix& prefix,
const String& ident);
- AstNode* ResolveIdentInCurrentLibraryScope(intptr_t ident_pos,
- const String& ident);
// Find class with the given name in the library or prefix scope.
RawClass* ResolveClassInCurrentLibraryScope(intptr_t ident_pos,
- const String& name);
+ const String& name,
+ Error* error);
RawClass* ResolveClassInPrefixScope(intptr_t ident_pos,
const LibraryPrefix& prefix,
- const String& name);
+ const String& name,
+ Error* error);
// Find name in the library or prefix scope and return the corresponding
// object (field, class, function etc).
RawObject* ResolveNameInCurrentLibraryScope(intptr_t ident_pos,
- const String& ident);
+ const String& ident,
+ Error* error);
RawObject* ResolveNameInPrefixScope(intptr_t ident_pos,
const LibraryPrefix& prefix,
- const String& name);
+ const String& name,
+ Error* error);
AstNode* ResolveIdent(intptr_t ident_pos,
const String& ident,
« no previous file with comments | « runtime/vm/class_finalizer.cc ('k') | runtime/vm/parser.cc » ('j') | runtime/vm/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698