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

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

Issue 2949293002: Add ScopeInfo class for variable information that doesn't actually involve closures. (Closed)
Patch Set: . 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 | « pkg/compiler/lib/src/closure.dart ('k') | pkg/compiler/lib/src/ssa/builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/kernel/closure.dart
diff --git a/pkg/compiler/lib/src/kernel/closure.dart b/pkg/compiler/lib/src/kernel/closure.dart
index 9354ae3c29280f351abcde25a64792e1cb9b5ab2..d62b26cbd75aa79087de472363ecceb0311385f5 100644
--- a/pkg/compiler/lib/src/kernel/closure.dart
+++ b/pkg/compiler/lib/src/kernel/closure.dart
@@ -97,6 +97,12 @@ class KernelClosureConversionTask extends ClosureConversionTask<ir.Node> {
return const ClosureAnalysisInfo();
}
+ @override
+ ScopeInfo getScopeInfo(Entity entity) {
+ // TODO(efortuna): Specialize this function from the one below.
+ return getClosureRepresentationInfo(entity);
+ }
+
/// TODO(johnniwinther,efortuna): Implement this.
@override
LoopClosureRepresentationInfo getClosureRepresentationInfoForLoop(
« no previous file with comments | « pkg/compiler/lib/src/closure.dart ('k') | pkg/compiler/lib/src/ssa/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698