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

Unified Diff: dart/runtime/vm/parser.cc

Issue 298153002: Version 1.4.1 (Closed) Base URL: http://dart.googlecode.com/svn/branches/1.4/
Patch Set: Created 6 years, 7 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 | « dart/runtime/vm/os_win.cc ('k') | dart/runtime/vm/profiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/runtime/vm/parser.cc
===================================================================
--- dart/runtime/vm/parser.cc (revision 36615)
+++ dart/runtime/vm/parser.cc (working copy)
@@ -9178,6 +9178,11 @@
// be found.
AstNode* receiver = NULL;
const bool kTestOnly = true;
+ if (parsing_metadata_) {
+ ErrorMsg(ident_pos,
+ "'%s' is not a compile-time constant",
+ ident.ToCString());
+ }
if (!current_function().is_static() &&
(LookupReceiver(current_block_->scope, kTestOnly) != NULL)) {
receiver = LoadReceiver(ident_pos);
« no previous file with comments | « dart/runtime/vm/os_win.cc ('k') | dart/runtime/vm/profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698