OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 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 | 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 analyzer2dart.treeShaker; | 5 library analyzer2dart.treeShaker; |
6 | 6 |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 | 8 |
9 import 'package:analyzer/analyzer.dart'; | 9 import 'package:analyzer/analyzer.dart'; |
10 import 'package:analyzer/src/generated/element.dart'; | 10 import 'package:analyzer/src/generated/element.dart'; |
11 import 'package:analyzer/src/generated/source.dart'; | 11 import 'package:analyzer/src/generated/source.dart'; |
12 import 'package:compiler/src/universe/universe.dart'; | 12 import 'package:compiler/implementation/universe/universe.dart'; |
13 | 13 |
14 import 'closed_world.dart'; | 14 import 'closed_world.dart'; |
15 import 'util.dart'; | 15 import 'util.dart'; |
16 import 'semantic_visitor.dart'; | 16 import 'semantic_visitor.dart'; |
17 import 'identifier_semantics.dart'; | 17 import 'identifier_semantics.dart'; |
18 | 18 |
19 /** | 19 /** |
20 * The result of performing local reachability analysis on a method. | 20 * The result of performing local reachability analysis on a method. |
21 */ | 21 */ |
22 class MethodAnalysis { | 22 class MethodAnalysis { |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 // null, because that would have been detected by the analyzer and | 388 // null, because that would have been detected by the analyzer and |
389 // reported as a compile time error. | 389 // reported as a compile time error. |
390 analysis.calls.add(node.staticElement); | 390 analysis.calls.add(node.staticElement); |
391 } | 391 } |
392 | 392 |
393 @override | 393 @override |
394 void handleAssignmentExpression(AssignmentExpression node) { | 394 void handleAssignmentExpression(AssignmentExpression node) { |
395 // Don't special-case assignment expressions. | 395 // Don't special-case assignment expressions. |
396 } | 396 } |
397 } | 397 } |
OLD | NEW |