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

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: New version integrates feedback, adds less to standard String class. 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 905ed4ef166a5db4938552fb2e977c573cc4772d..0e3c727a9b731b538503383b30b792db9e45c103 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -1337,7 +1337,7 @@ RawFunction* Parser::GetSuperFunction(intptr_t token_pos,
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