| Index: pkg/compiler/lib/src/closure.dart
|
| diff --git a/pkg/compiler/lib/src/closure.dart b/pkg/compiler/lib/src/closure.dart
|
| index 41112ce5ba7272217f954757f7f5d78a309b9b3b..5611c40773068cd12b9d6c64556f793164f7c80d 100644
|
| --- a/pkg/compiler/lib/src/closure.dart
|
| +++ b/pkg/compiler/lib/src/closure.dart
|
| @@ -420,7 +420,7 @@ class ClosureScope {
|
|
|
| bool hasBoxedLoopVariables() => !boxedLoopVariables.isEmpty;
|
|
|
| - bool isCapturedVariable(VariableElement variable) {
|
| + bool isCapturedVariable(Local variable) {
|
| return capturedVariables.containsKey(variable);
|
| }
|
|
|
| @@ -1224,6 +1224,20 @@ class TypeVariableLocal implements Local {
|
| if (other is! TypeVariableLocal) return false;
|
| return typeVariable == other.typeVariable;
|
| }
|
| +
|
| + String toString() {
|
| + StringBuffer sb = new StringBuffer();
|
| + sb.write('type_variable_local(');
|
| + if (memberContext.enclosingClass != null) {
|
| + sb.write(memberContext.enclosingClass.name);
|
| + sb.write('.');
|
| + }
|
| + sb.write(memberContext.name);
|
| + sb.write('#');
|
| + sb.write(name);
|
| + sb.write(')');
|
| + return sb.toString();
|
| + }
|
| }
|
|
|
| ///
|
|
|