OLD | NEW |
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 library analyzer.src.task.general; | 5 library analyzer.src.task.general; |
6 | 6 |
7 import 'package:analyzer/src/generated/engine.dart' hide AnalysisTask; | 7 import 'package:analyzer/src/generated/engine.dart' hide AnalysisTask; |
8 import 'package:analyzer/src/generated/source.dart'; | 8 import 'package:analyzer/src/generated/source.dart'; |
9 import 'package:analyzer/task/general.dart'; | 9 import 'package:analyzer/task/general.dart'; |
10 import 'package:analyzer/task/model.dart'; | 10 import 'package:analyzer/task/model.dart'; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 SourceBasedAnalysisTask(AnalysisContext context, AnalysisTarget target) | 72 SourceBasedAnalysisTask(AnalysisContext context, AnalysisTarget target) |
73 : super(context, target); | 73 : super(context, target); |
74 | 74 |
75 @override | 75 @override |
76 String get description { | 76 String get description { |
77 Source source = target.source; | 77 Source source = target.source; |
78 String sourceName = source == null ? '<unknown source>' : source.fullName; | 78 String sourceName = source == null ? '<unknown source>' : source.fullName; |
79 return '${descriptor.name} for source $sourceName'; | 79 return '${descriptor.name} for source $sourceName'; |
80 } | 80 } |
81 } | 81 } |
OLD | NEW |