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

Unified Diff: runtime/vm/class_finalizer_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, 10 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/class_finalizer.cc ('k') | runtime/vm/code_generator_ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/class_finalizer_test.cc
===================================================================
--- runtime/vm/class_finalizer_test.cc (revision 3964)
+++ runtime/vm/class_finalizer_test.cc (working copy)
@@ -13,7 +13,8 @@
const Array& empty_array = Array::Handle(Array::Empty());
const String& class_name = String::Handle(String::NewSymbol(name));
const Script& script = Script::Handle();
- const Class& cls = Class::Handle(Class::New(class_name, script));
+ const Class& cls =
+ Class::Handle(Class::New(class_name, script, Scanner::kDummyTokenIndex));
cls.set_interfaces(empty_array);
cls.SetFunctions(empty_array);
cls.SetFields(empty_array);
@@ -73,10 +74,14 @@
lib.AddClass(sbb);
const String& superclass_name = String::Handle(sbb.Name());
const UnresolvedClass& unresolved = UnresolvedClass::Handle(
- UnresolvedClass::New(0, LibraryPrefix::Handle(), superclass_name));
+ UnresolvedClass::New(LibraryPrefix::Handle(),
+ superclass_name,
+ Scanner::kDummyTokenIndex));
const TypeArguments& type_arguments = TypeArguments::Handle();
- rhb.set_super_type(Type::Handle(Type::New(
- Object::Handle(unresolved.raw()), type_arguments)));
+ rhb.set_super_type(Type::Handle(
+ Type::New(Object::Handle(unresolved.raw()),
+ type_arguments,
+ Scanner::kDummyTokenIndex)));
ClassFinalizer::AddPendingClasses(classes);
EXPECT(ClassFinalizer::FinalizePendingClasses());
}
« no previous file with comments | « runtime/vm/class_finalizer.cc ('k') | runtime/vm/code_generator_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698