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

Side by Side Diff: pkg/analyzer/lib/src/task/dart.dart

Issue 1738203002: Prettify ignore syntax (#25685). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/error_suppression_test.dart » ('j') | 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 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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/error_suppression_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698