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

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

Issue 3002313002: Use KernelTypeGraphBuilder in KernelInferrerEngine (Closed)
Patch Set: Updated cf. comments. Created 3 years, 4 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/js_model/locals.dart ('k') | pkg/compiler/lib/src/kernel/element_map_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/kernel/element_map.dart
diff --git a/pkg/compiler/lib/src/kernel/element_map.dart b/pkg/compiler/lib/src/kernel/element_map.dart
index 1ae5ab6fd93e9234cb69bbb1513f3f843339f4e7..35ecc3930eb8243bd8482d97fb4b18e86eb408b7 100644
--- a/pkg/compiler/lib/src/kernel/element_map.dart
+++ b/pkg/compiler/lib/src/kernel/element_map.dart
@@ -215,7 +215,7 @@ enum MemberKind {
// A constructor whose body is defined by an [ir.Constructor] node.
constructorBody,
// A closure class `call` method whose body is defined by an
- // [ir.FunctionExpression].
+ // [ir.FunctionExpression] or [ir.FunctionDeclaration].
closureCall,
// A field corresponding to a captured variable in the closure. It does not
// have a corresponding ir.Node.
@@ -391,6 +391,12 @@ abstract class KernelToLocalsMap {
// parameter.
Local getLocalVariable(ir.VariableDeclaration node);
+ /// Returns the [ir.FunctionNode] that declared [parameter].
+ ir.FunctionNode getFunctionNodeForParameter(Local parameter);
+
+ /// Returns the [ir.DartType] of [parameter].
+ ir.DartType getParameterType(Local parameter);
+
/// Returns the [JumpTarget] for the break statement [node].
JumpTarget getJumpTargetForBreak(ir.BreakStatement node);
« no previous file with comments | « pkg/compiler/lib/src/js_model/locals.dart ('k') | pkg/compiler/lib/src/kernel/element_map_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698