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

Unified Diff: sdk/lib/_internal/compiler/implementation/typechecker.dart

Issue 27510003: Scanner for UTF-8 byte arrays (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fixes compiler tests Created 7 years, 2 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: sdk/lib/_internal/compiler/implementation/typechecker.dart
diff --git a/sdk/lib/_internal/compiler/implementation/typechecker.dart b/sdk/lib/_internal/compiler/implementation/typechecker.dart
index bbce5fe1198fe99f3cb7b9c3c426169c39b7c22a..9aa6409e5d89c9dbe5428344afe2c79f9b314bc2 100644
--- a/sdk/lib/_internal/compiler/implementation/typechecker.dart
+++ b/sdk/lib/_internal/compiler/implementation/typechecker.dart
@@ -364,7 +364,7 @@ class TypeCheckerVisitor extends Visitor<DartType> {
void checkTypePromotion(Node node, TypePromotion typePromotion,
{bool checkAccesses: false}) {
VariableElement variable = typePromotion.variable;
- SourceString variableName = variable.name;
+ String variableName = variable.name;
List<Node> potentialMutationsIn =
elements.getPotentialMutationsIn(node, variable);
if (!potentialMutationsIn.isEmpty) {
@@ -932,7 +932,7 @@ class TypeCheckerVisitor extends Visitor<DartType> {
TypePromotion typePromotion =
new TypePromotion(node, variable, shownType);
if (!types.isMoreSpecific(shownType, knownType)) {
- SourceString variableName = variable.name;
+ String variableName = variable.name;
if (types.isMoreSpecific(shownType.asRaw(), knownType)) {
//trace('$node');
typePromotion.addHint(node,

Powered by Google App Engine
This is Rietveld 408576698