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

Side by Side Diff: pkg/analyzer/lib/src/generated/error.dart

Issue 1980573003: fix all instances of "the the" (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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.generated.error; 5 library analyzer.src.generated.error;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/dart/ast/ast.dart' show AstNode; 9 import 'package:analyzer/dart/ast/ast.dart' show AstNode;
10 import 'package:analyzer/dart/ast/token.dart'; 10 import 'package:analyzer/dart/ast/token.dart';
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 /** 43 /**
44 * A [Comparator] that sorts by the name of the file that the [AnalysisError] 44 * A [Comparator] that sorts by the name of the file that the [AnalysisError]
45 * was found. 45 * was found.
46 */ 46 */
47 static Comparator<AnalysisError> FILE_COMPARATOR = 47 static Comparator<AnalysisError> FILE_COMPARATOR =
48 (AnalysisError o1, AnalysisError o2) => 48 (AnalysisError o1, AnalysisError o2) =>
49 o1.source.shortName.compareTo(o2.source.shortName); 49 o1.source.shortName.compareTo(o2.source.shortName);
50 50
51 /** 51 /**
52 * A [Comparator] that sorts error codes first by their severity (errors 52 * A [Comparator] that sorts error codes first by their severity (errors
53 * first, warnings second), and then by the the error code type. 53 * first, warnings second), and then by the error code type.
54 */ 54 */
55 static Comparator<AnalysisError> ERROR_CODE_COMPARATOR = 55 static Comparator<AnalysisError> ERROR_CODE_COMPARATOR =
56 (AnalysisError o1, AnalysisError o2) { 56 (AnalysisError o1, AnalysisError o2) {
57 ErrorCode errorCode1 = o1.errorCode; 57 ErrorCode errorCode1 = o1.errorCode;
58 ErrorCode errorCode2 = o2.errorCode; 58 ErrorCode errorCode2 = o2.errorCode;
59 ErrorSeverity errorSeverity1 = errorCode1.errorSeverity; 59 ErrorSeverity errorSeverity1 = errorCode1.errorSeverity;
60 ErrorSeverity errorSeverity2 = errorCode2.errorSeverity; 60 ErrorSeverity errorSeverity2 = errorCode2.errorSeverity;
61 if (errorSeverity1 == errorSeverity2) { 61 if (errorSeverity1 == errorSeverity2) {
62 ErrorType errorType1 = errorCode1.type; 62 ErrorType errorType1 = errorCode1.type;
63 ErrorType errorType2 = errorCode2.type; 63 ErrorType errorType2 = errorCode2.type;
(...skipping 5745 matching lines...) Expand 10 before | Expand all | Expand 10 after
5809 * Initialize a newly created error code to have the given [name]. 5809 * Initialize a newly created error code to have the given [name].
5810 */ 5810 */
5811 const TodoCode(String name) : super(name, "{0}"); 5811 const TodoCode(String name) : super(name, "{0}");
5812 5812
5813 @override 5813 @override
5814 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; 5814 ErrorSeverity get errorSeverity => ErrorSeverity.INFO;
5815 5815
5816 @override 5816 @override
5817 ErrorType get type => ErrorType.TODO; 5817 ErrorType get type => ErrorType.TODO;
5818 } 5818 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/element.dart ('k') | pkg/analyzer/lib/src/generated/error_verifier.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698