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

Unified Diff: pkg/analyzer/lib/src/task/strong/checker.dart

Issue 2933753002: Run the sorter to reduce code churn (Closed)
Patch Set: Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/lib/src/task/strong/checker.dart
diff --git a/pkg/analyzer/lib/src/task/strong/checker.dart b/pkg/analyzer/lib/src/task/strong/checker.dart
index 91488391da305394704ee45e4eb46db4de244a67..26b9fa1cfce3f487db3070e0771e7a88e3191a0c 100644
--- a/pkg/analyzer/lib/src/task/strong/checker.dart
+++ b/pkg/analyzer/lib/src/task/strong/checker.dart
@@ -1588,17 +1588,17 @@ class _OverrideChecker {
/// If node is a [ClassDeclaration] returns its members, otherwise if node is
/// a [ClassTypeAlias] this returns an empty list.
- WithClause _withClause(Declaration node) {
+ AstNode _extendsErrorLocation(Declaration node) {
return node is ClassDeclaration
- ? node.withClause
- : (node as ClassTypeAlias).withClause;
+ ? node.extendsClause
+ : (node as ClassTypeAlias).superclass;
}
/// If node is a [ClassDeclaration] returns its members, otherwise if node is
/// a [ClassTypeAlias] this returns an empty list.
- AstNode _extendsErrorLocation(Declaration node) {
+ WithClause _withClause(Declaration node) {
return node is ClassDeclaration
- ? node.extendsClause
- : (node as ClassTypeAlias).superclass;
+ ? node.withClause
+ : (node as ClassTypeAlias).withClause;
}
}
« no previous file with comments | « pkg/analyzer/lib/src/task/strong/ast_properties.dart ('k') | pkg/analyzer/test/generated/compile_time_error_code_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698