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

Side by Side Diff: pkg/analyzer/tool/task_dependency_graph/generate.dart

Issue 1524893002: Fix imports within the analyzer package (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « pkg/analyzer/test/utils.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 /** 5 /**
6 * This file contains code to output a description of tasks and their 6 * This file contains code to output a description of tasks and their
7 * dependencies in ".dot" format. Prior to running, the user should run "pub 7 * dependencies in ".dot" format. Prior to running, the user should run "pub
8 * get" in the analyzer directory to ensure that a "packages" folder exists. 8 * get" in the analyzer directory to ensure that a "packages" folder exists.
9 * 9 *
10 * TODO(paulberry): 10 * TODO(paulberry):
11 * - Add general.dart and html.dart for completeness. 11 * - Add general.dart and html.dart for completeness.
12 * - Use Graphviz's "record" feature to produce more compact output 12 * - Use Graphviz's "record" feature to produce more compact output
13 * (http://www.graphviz.org/content/node-shapes#record) 13 * (http://www.graphviz.org/content/node-shapes#record)
14 * - Produce a warning if a result descriptor is found which isn't the output 14 * - Produce a warning if a result descriptor is found which isn't the output
15 * of exactly one task. 15 * of exactly one task.
16 * - Convert this tool to use package_config to find the package map. 16 * - Convert this tool to use package_config to find the package map.
17 */ 17 */
18 library analyzer.tool.task_dependency_graph.generate; 18 library analyzer.tool.task_dependency_graph.generate;
19 19
20 import 'dart:io' hide File; 20 import 'dart:io' hide File;
21 import 'dart:io' as io; 21 import 'dart:io' as io;
22 22
23 import 'package:analyzer/analyzer.dart'; 23 import 'package:analyzer/analyzer.dart';
24 import 'package:analyzer/dart/element/element.dart';
25 import 'package:analyzer/dart/element/type.dart';
24 import 'package:analyzer/file_system/file_system.dart'; 26 import 'package:analyzer/file_system/file_system.dart';
25 import 'package:analyzer/file_system/physical_file_system.dart'; 27 import 'package:analyzer/file_system/physical_file_system.dart';
26 import 'package:analyzer/src/codegen/tools.dart'; 28 import 'package:analyzer/src/codegen/tools.dart';
27 import 'package:analyzer/src/generated/constant.dart'; 29 import 'package:analyzer/src/generated/constant.dart';
28 import 'package:analyzer/src/generated/element.dart';
29 import 'package:analyzer/src/generated/engine.dart'; 30 import 'package:analyzer/src/generated/engine.dart';
30 import 'package:analyzer/src/generated/java_io.dart'; 31 import 'package:analyzer/src/generated/java_io.dart';
31 import 'package:analyzer/src/generated/sdk.dart'; 32 import 'package:analyzer/src/generated/sdk.dart';
32 import 'package:analyzer/src/generated/sdk_io.dart'; 33 import 'package:analyzer/src/generated/sdk_io.dart';
33 import 'package:analyzer/src/generated/source.dart'; 34 import 'package:analyzer/src/generated/source.dart';
34 import 'package:analyzer/src/generated/source_io.dart'; 35 import 'package:analyzer/src/generated/source_io.dart';
35 import 'package:path/path.dart' as path; 36 import 'package:path/path.dart' as path;
36 import 'package:path/path.dart'; 37 import 'package:path/path.dart';
37 38
38 /** 39 /**
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 @override 311 @override
311 visitIdentifier(Identifier node) { 312 visitIdentifier(Identifier node) {
312 Element element = node.staticElement; 313 Element element = node.staticElement;
313 if (element is PropertyAccessorElement && 314 if (element is PropertyAccessorElement &&
314 element.isGetter && 315 element.isGetter &&
315 element.returnType.isSubtypeOf(type)) { 316 element.returnType.isSubtypeOf(type)) {
316 callback(element); 317 callback(element);
317 } 318 }
318 } 319 }
319 } 320 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/utils.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698