| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 /** | 64 /** |
| 65 * Initialize a newly created task to perform analysis within the given | 65 * Initialize a newly created task to perform analysis within the given |
| 66 * [context] in order to produce results for the given [target]. | 66 * [context] in order to produce results for the given [target]. |
| 67 */ | 67 */ |
| 68 SourceBasedAnalysisTask(AnalysisContext context, AnalysisTarget target) | 68 SourceBasedAnalysisTask(AnalysisContext context, AnalysisTarget target) |
| 69 : super(context, target); | 69 : super(context, target); |
| 70 | 70 |
| 71 @override | 71 @override |
| 72 String get description { | 72 String get description { |
| 73 Source source = target.source; | 73 Source source = target.source; |
| 74 String sourceName = | 74 String sourceName = source == null ? '<unknown source>' : source.fullName; |
| 75 target.source == null ? '<unknown source>' : source.fullName; | |
| 76 return '${descriptor.name} for source $sourceName'; | 75 return '${descriptor.name} for source $sourceName'; |
| 77 } | 76 } |
| 78 } | 77 } |
| OLD | NEW |