Chromium Code Reviews| 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.dart; | 5 library analyzer.src.task.dart; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import 'package:analyzer/dart/ast/ast.dart'; | 9 import 'package:analyzer/dart/ast/ast.dart'; |
| 10 import 'package:analyzer/dart/ast/token.dart'; | 10 import 'package:analyzer/dart/ast/token.dart'; |
| (...skipping 2248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2259 * The name of the [LINE_INFO_INPUT] input. | 2259 * The name of the [LINE_INFO_INPUT] input. |
| 2260 */ | 2260 */ |
| 2261 static const String LINE_INFO_INPUT = 'LINE_INFO_INPUT'; | 2261 static const String LINE_INFO_INPUT = 'LINE_INFO_INPUT'; |
| 2262 | 2262 |
| 2263 /** | 2263 /** |
| 2264 * The name of the [PARSED_UNIT_INPUT] input. | 2264 * The name of the [PARSED_UNIT_INPUT] input. |
| 2265 */ | 2265 */ |
| 2266 static const String PARSED_UNIT_INPUT = 'PARSED_UNIT_INPUT'; | 2266 static const String PARSED_UNIT_INPUT = 'PARSED_UNIT_INPUT'; |
| 2267 | 2267 |
| 2268 // Prefix for comments ignoring error codes. | 2268 // Prefix for comments ignoring error codes. |
| 2269 static const String _normalizedIgnorePrefix = '//#ignore:'; | 2269 static const String _normalizedIgnorePrefix = '//ignore:'; |
|
Hixie
2016/02/26 18:09:48
Can we have a space after the "//"?
pquitslund
2016/02/26 18:14:54
Yep. Any number of spaces. We remove them before
| |
| 2270 | 2270 |
| 2271 DartErrorsTask(InternalAnalysisContext context, AnalysisTarget target) | 2271 DartErrorsTask(InternalAnalysisContext context, AnalysisTarget target) |
| 2272 : super(context, target); | 2272 : super(context, target); |
| 2273 | 2273 |
| 2274 @override | 2274 @override |
| 2275 TaskDescriptor get descriptor => DESCRIPTOR; | 2275 TaskDescriptor get descriptor => DESCRIPTOR; |
| 2276 | 2276 |
| 2277 @override | 2277 @override |
| 2278 void internalPerform() { | 2278 void internalPerform() { |
| 2279 List<List<AnalysisError>> errorLists = <List<AnalysisError>>[]; | 2279 List<List<AnalysisError>> errorLists = <List<AnalysisError>>[]; |
| (...skipping 2978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5258 | 5258 |
| 5259 @override | 5259 @override |
| 5260 bool moveNext() { | 5260 bool moveNext() { |
| 5261 if (_newSources.isEmpty) { | 5261 if (_newSources.isEmpty) { |
| 5262 return false; | 5262 return false; |
| 5263 } | 5263 } |
| 5264 currentTarget = _newSources.removeLast(); | 5264 currentTarget = _newSources.removeLast(); |
| 5265 return true; | 5265 return true; |
| 5266 } | 5266 } |
| 5267 } | 5267 } |
| OLD | NEW |