| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 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. |
| 4 |
| 5 library analyzer2dart.closedWorld; |
| 6 |
| 7 import 'package:analyzer/analyzer.dart'; |
| 8 import 'package:analyzer/src/generated/element.dart'; |
| 9 |
| 10 /** |
| 11 * Container for the elements and AST nodes which have been determined by |
| 12 * tree shaking to be reachable by the program being compiled. |
| 13 */ |
| 14 class ClosedWorld { |
| 15 // TODO(paulberry): is it a problem to hold on to all the AST's for the |
| 16 // duration of tree shaking & CPS generation? |
| 17 Map<Element, AstNode> elements = <Element, AstNode>{}; |
| 18 ClosedWorld(); |
| 19 } |
| OLD | NEW |