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

Unified Diff: runtime/vm/runtime_entry_test.cc

Issue 9325047: Add token index position to classes and types for more accurate error reporting. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 11 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/runtime_entry_test.cc
===================================================================
--- runtime/vm/runtime_entry_test.cc (revision 3925)
+++ runtime/vm/runtime_entry_test.cc (working copy)
@@ -18,7 +18,8 @@
Function::New(function_name, RawFunction::kFunction, true, false, 0));
Class& cls = Class::ZoneHandle();
const Script& script = Script::Handle();
- cls = Class::New(function_name, script);
+ const intptr_t kPos = 1; // Dummy token index in non-existing source.
+ cls = Class::New(function_name, script, kPos);
const Array& functions = Array::Handle(Array::New(1));
functions.SetAt(0, function);
cls.SetFunctions(functions);

Powered by Google App Engine
This is Rietveld 408576698