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

Unified Diff: pkg/compiler/lib/src/closure.dart

Issue 2926863002: Handle parameters in compile_from_dill_test (Closed)
Patch Set: Fixes Created 3 years, 6 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 | « no previous file | pkg/compiler/lib/src/kernel/element_map.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
+ }
}
///
« no previous file with comments | « no previous file | pkg/compiler/lib/src/kernel/element_map.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698