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

Side by Side Diff: pkg/analyzer2dart/lib/src/tree_shaker.dart

Issue 662593003: Support dynamic get/invocation in analyzer2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased and updated Created 6 years, 2 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 | Annotate | Revision Log
OLDNEW
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/implementation/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 'package:analyzer2dart/src/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 {
23 /** 23 /**
24 * The AST for the method. 24 * The AST for the method.
25 */ 25 */
26 final Declaration declaration; 26 final Declaration declaration;
27 27
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 352
353 @override 353 @override
354 void 354 void
355 visitRedirectingConstructorInvocation(RedirectingConstructorInvocation nod e) { 355 visitRedirectingConstructorInvocation(RedirectingConstructorInvocation nod e) {
356 // Note: we don't have to worry about node.staticElement being 356 // Note: we don't have to worry about node.staticElement being
357 // null, because that would have been detected by the analyzer and 357 // null, because that would have been detected by the analyzer and
358 // reported as a compile time error. 358 // reported as a compile time error.
359 analysis.calls.add(node.staticElement); 359 analysis.calls.add(node.staticElement);
360 } 360 }
361 } 361 }
OLDNEW
« no previous file with comments | « pkg/analyzer2dart/lib/src/semantic_visitor.dart ('k') | pkg/analyzer2dart/test/end2end_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698