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

Side by Side Diff: pkg/compiler/lib/src/kernel/element_map_impl.dart

Issue 2964783002: Reapply "Added for-loop variable tracking and regular closures/initializers captured variable track… (Closed)
Patch Set: . Created 3 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library dart2js.kernel.element_map; 5 library dart2js.kernel.element_map;
6 6
7 import 'package:kernel/ast.dart' as ir; 7 import 'package:kernel/ast.dart' as ir;
8 8
9 import '../common.dart'; 9 import '../common.dart';
10 import '../common/names.dart' show Identifiers; 10 import '../common/names.dart' show Identifiers;
(...skipping 1764 matching lines...) Expand 10 before | Expand all | Expand 10 after
1775 1775
1776 @override 1776 @override
1777 LibraryEntity _getLibrary(ir.Library node, [LibraryEnv env]) { 1777 LibraryEntity _getLibrary(ir.Library node, [LibraryEnv env]) {
1778 LibraryEntity library = _libraryMap[node]; 1778 LibraryEntity library = _libraryMap[node];
1779 assert(library != null, "No library entity for $node"); 1779 assert(library != null, "No library entity for $node");
1780 return library; 1780 return library;
1781 } 1781 }
1782 1782
1783 @override 1783 @override
1784 Local _getLocalFunction(ir.TreeNode node) { 1784 Local _getLocalFunction(ir.TreeNode node) {
1785 throw new UnsupportedError("JsKernelToElementMap.getLocalFunction"); 1785 // TODO(efortuna, johnniwinther): This function should not be called once
1786 // the K + J element situation has been properly sorted out. Ultimately this
1787 // should throw.
1788 return _getLocalFunction(node);
1786 } 1789 }
1787 1790
1788 @override 1791 @override
1789 ClassEntity _getClass(ir.Class node, [ClassEnv env]) { 1792 ClassEntity _getClass(ir.Class node, [ClassEnv env]) {
1790 ClassEntity cls = _classMap[node]; 1793 ClassEntity cls = _classMap[node];
1791 assert(cls != null, "No class entity for $node"); 1794 assert(cls != null, "No class entity for $node");
1792 return cls; 1795 return cls;
1793 } 1796 }
1794 1797
1795 // TODO(johnniwinther): Reinsert these when [ElementCreatorMixin] is no longer 1798 // TODO(johnniwinther): Reinsert these when [ElementCreatorMixin] is no longer
(...skipping 22 matching lines...) Expand all
1818 @override 1821 @override
1819 ir.Member getMemberNode(MemberEntity member) { 1822 ir.Member getMemberNode(MemberEntity member) {
1820 return _getMemberNode(member); 1823 return _getMemberNode(member);
1821 } 1824 }
1822 1825
1823 @override 1826 @override
1824 ir.Class getClassNode(ClassEntity cls) { 1827 ir.Class getClassNode(ClassEntity cls) {
1825 return _getClassNode(cls); 1828 return _getClassNode(cls);
1826 } 1829 }
1827 } 1830 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_model/js_strategy.dart ('k') | pkg/compiler/lib/src/kernel/kernel_backend_strategy.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698