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

Unified Diff: runtime/vm/object.cc

Issue 144343002: Rename kDummyTokenIndex to kNoSourcePos (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/object_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
===================================================================
--- runtime/vm/object.cc (revision 31966)
+++ runtime/vm/object.cc (working copy)
@@ -967,7 +967,7 @@
// We cannot use NewNonParameterizedType(cls), because Array is parameterized.
type ^= Type::New(Object::Handle(cls.raw()),
TypeArguments::Handle(),
- Scanner::kDummyTokenIndex);
+ Scanner::kNoSourcePos);
type.SetIsFinalized();
type ^= type.Canonicalize();
object_store->set_array_type(type);
@@ -1662,7 +1662,7 @@
const Type& type = Type::Handle(Type::New(
*this,
Object::null_abstract_type_arguments(),
- Scanner::kDummyTokenIndex));
+ Scanner::kNoSourcePos));
return ClassFinalizer::FinalizeType(*this,
type,
ClassFinalizer::kCanonicalize);
@@ -1674,7 +1674,7 @@
const Type& type = Type::Handle(Type::New(
*this,
args,
- Scanner::kDummyTokenIndex));
+ Scanner::kNoSourcePos));
return ClassFinalizer::FinalizeType(*this,
type,
ClassFinalizer::kCanonicalize);
@@ -1706,7 +1706,7 @@
result.set_num_type_arguments(0);
result.set_num_own_type_arguments(0);
result.set_num_native_fields(0);
- result.set_token_pos(Scanner::kDummyTokenIndex);
+ result.set_token_pos(Scanner::kNoSourcePos);
result.InitEmptyFields();
Isolate::Current()->RegisterClass(result);
return result.raw();
@@ -2502,7 +2502,7 @@
const String& src_class_name = String::Handle(Symbols::New(":internal"));
const Class& src_class = Class::Handle(
- Class::New(src_class_name, script, Scanner::kDummyTokenIndex));
+ Class::New(src_class_name, script, Scanner::kNoSourcePos));
src_class.set_is_finalized();
src_class.set_library(lib);
return PatchClass::New(cls, src_class);
@@ -2627,7 +2627,7 @@
result.set_num_type_arguments(kUnknownNumTypeArguments);
result.set_num_own_type_arguments(kUnknownNumTypeArguments);
result.set_num_native_fields(0);
- result.set_token_pos(Scanner::kDummyTokenIndex);
+ result.set_token_pos(Scanner::kNoSourcePos);
result.InitEmptyFields();
Isolate::Current()->RegisterClass(result);
return result.raw();
@@ -2717,7 +2717,7 @@
int field_count) {
Class& cls = Class::Handle(library.LookupClass(name));
if (cls.IsNull()) {
- cls = New(name, Script::Handle(), Scanner::kDummyTokenIndex);
+ cls = New(name, Script::Handle(), Scanner::kNoSourcePos);
cls.SetFields(Object::empty_array());
cls.SetFunctions(Object::empty_array());
// Set super class to Object.
@@ -11545,7 +11545,7 @@
if (cls.NumTypeArguments() > 0) {
type_arguments = GetTypeArguments();
}
- type = Type::New(cls, type_arguments, Scanner::kDummyTokenIndex);
+ type = Type::New(cls, type_arguments, Scanner::kNoSourcePos);
type.SetIsFinalized();
type ^= type.Canonicalize();
}
@@ -11737,7 +11737,7 @@
type_arguments = GetTypeArguments();
}
const Type& type =
- Type::Handle(Type::New(cls, type_arguments, Scanner::kDummyTokenIndex));
+ Type::Handle(Type::New(cls, type_arguments, Scanner::kNoSourcePos));
const String& type_name = String::Handle(type.UserVisibleName());
// Calculate the size of the string.
intptr_t len = OS::SNPrint(NULL, 0, kFormat, type_name.ToCString()) + 1;
@@ -12287,7 +12287,7 @@
const TypeArguments& no_type_arguments = TypeArguments::Handle();
type ^= Type::New(Object::Handle(type_class.raw()),
no_type_arguments,
- Scanner::kDummyTokenIndex);
+ Scanner::kNoSourcePos);
type.SetIsFinalized();
type ^= type.Canonicalize();
}
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/object_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698