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

Unified Diff: runtime/vm/parser.cc

Issue 11368138: Add some support for the code-point code-unit distinction. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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.cc
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
index 2ecd491588147630f1cddccc12e99cd718410310..4dd9f56745ed4bb179212fcb4af77f8c84163395 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -1378,7 +1378,7 @@ static RawClass* LookupImplClass(const String& class_name) {
static RawClass* LookupCoreClass(const String& class_name) {
const Library& core_lib = Library::Handle(Library::CoreLibrary());
String& name = String::Handle(class_name.raw());
- if (class_name.CharAt(0) == Scanner::kPrivateIdentifierStart) {
+ if (class_name.CodeUnitAt(0) == Scanner::kPrivateIdentifierStart) {
// Private identifiers are mangled on a per script basis.
name = String::Concat(name, String::Handle(core_lib.private_key()));
name = Symbols::New(name);

Powered by Google App Engine
This is Rietveld 408576698