Chromium Code Reviews| Index: pkg/kernel/lib/transformations/closure/info.dart |
| diff --git a/pkg/kernel/lib/transformations/closure/info.dart b/pkg/kernel/lib/transformations/closure/info.dart |
| index 8d6645b8edb64e5b91e3a169d3871022972c447d..670dbb0dbc21aac99fb8658a2be3193c97ad0f40 100644 |
| --- a/pkg/kernel/lib/transformations/closure/info.dart |
| +++ b/pkg/kernel/lib/transformations/closure/info.dart |
| @@ -62,24 +62,6 @@ class ClosureInfo extends RecursiveVisitor { |
| return currentFunction == null || currentMemberFunction == currentFunction; |
| } |
| - /// Maps the names of all instance methods that may be torn off (aka |
| - /// implicitly closurized) to `${name.name}#get`. |
| - Map<Name, Name> get tearOffGetterNames { |
| - // TODO(dmitryas): Add support for tear-offs. When added, uncomment this. |
| - // |
| - // Map<Name, Name> result = <Name, Name>{}; |
| - // for (Name name in declaredInstanceMethodNames) { |
| - // if (invokedGetters.contains(name)) { |
| - // result[name] = new Name("${name.name}#get", name.library); |
| - // } |
| - // } |
| - // return result; |
| - // |
| - // Currently an empty map is returned, so no tear-offs supporting functions |
| - // and getters are generated, and no property-get targets are renamed. |
| - return <Name, Name>{}; |
| - } |
| - |
|
Dmitry Stefantsov
2017/07/20 13:37:06
You probably may want to remove [invokedGetters] a
sjindel
2017/07/20 13:45:46
Done.
|
| void beginMember(Member member, [FunctionNode function]) { |
| currentMemberLocalNames.clear(); |
| if (function != null) { |