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

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

Issue 1680683002: Make error message deterministic (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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 | no next file » | 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) 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_verifier; 5 library analyzer.src.generated.error_verifier;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 import "dart:math" as math; 8 import "dart:math" as math;
9 9
10 import 'package:analyzer/dart/ast/ast.dart'; 10 import 'package:analyzer/dart/ast/ast.dart';
(...skipping 4624 matching lines...) Expand 10 before | Expand all | Expand 10 after
4635 } 4635 }
4636 if (enclosingElement != null) { 4636 if (enclosingElement != null) {
4637 newStrMember = 4637 newStrMember =
4638 "$prefix'${enclosingElement.displayName}.${missingOverridesArray[i]. displayName}'"; 4638 "$prefix'${enclosingElement.displayName}.${missingOverridesArray[i]. displayName}'";
4639 } else { 4639 } else {
4640 newStrMember = "$prefix'${missingOverridesArray[i].displayName}'"; 4640 newStrMember = "$prefix'${missingOverridesArray[i].displayName}'";
4641 } 4641 }
4642 stringMembersArrayListSet.add(newStrMember); 4642 stringMembersArrayListSet.add(newStrMember);
4643 } 4643 }
4644 List<String> stringMembersArray = new List.from(stringMembersArrayListSet); 4644 List<String> stringMembersArray = new List.from(stringMembersArrayListSet);
4645 stringMembersArray.sort();
4645 AnalysisErrorWithProperties analysisError; 4646 AnalysisErrorWithProperties analysisError;
4646 if (stringMembersArray.length == 1) { 4647 if (stringMembersArray.length == 1) {
4647 analysisError = _errorReporter.newErrorWithProperties( 4648 analysisError = _errorReporter.newErrorWithProperties(
4648 StaticWarningCode.NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE, 4649 StaticWarningCode.NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE,
4649 classNameNode, 4650 classNameNode,
4650 [stringMembersArray[0]]); 4651 [stringMembersArray[0]]);
4651 } else if (stringMembersArray.length == 2) { 4652 } else if (stringMembersArray.length == 2) {
4652 analysisError = _errorReporter.newErrorWithProperties( 4653 analysisError = _errorReporter.newErrorWithProperties(
4653 StaticWarningCode.NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO, 4654 StaticWarningCode.NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO,
4654 classNameNode, 4655 classNameNode,
(...skipping 1548 matching lines...) Expand 10 before | Expand all | Expand 10 after
6203 toCheck.add(type.element); 6204 toCheck.add(type.element);
6204 // type arguments 6205 // type arguments
6205 if (type is InterfaceType) { 6206 if (type is InterfaceType) {
6206 InterfaceType interfaceType = type; 6207 InterfaceType interfaceType = type;
6207 for (DartType typeArgument in interfaceType.typeArguments) { 6208 for (DartType typeArgument in interfaceType.typeArguments) {
6208 _addTypeToCheck(typeArgument); 6209 _addTypeToCheck(typeArgument);
6209 } 6210 }
6210 } 6211 }
6211 } 6212 }
6212 } 6213 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698