Skip to content

Commit 01a8e07

Browse files
authored
Fix outdated analyzer API usage (#1150)
1 parent 11a26f7 commit 01a8e07

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
* Require `package:analyzer` `^5.1.0`.
44
* Format unnamed libraries.
5+
* Require Dart 2.18.
56

67
# 2.2.4
78

lib/src/source_visitor.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,9 +574,9 @@ class SourceVisitor extends ThrowingAstVisitor {
574574
token(node.catchKeyword);
575575
space();
576576
token(node.leftParenthesis);
577-
visit(node.exceptionParameter2);
577+
visit(node.exceptionParameter);
578578
token(node.comma, after: space);
579-
visit(node.stackTraceParameter2);
579+
visit(node.stackTraceParameter);
580580
token(node.rightParenthesis);
581581
space();
582582
} else {

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ description: >-
66
Provides an API and a CLI tool.
77
repository: https://github.com/dart-lang/dart_style
88
environment:
9-
sdk: ">=2.17.0 <3.0.0"
9+
sdk: ">=2.18.0 <3.0.0"
1010

1111
dependencies:
12-
analyzer: '^5.1.0'
12+
analyzer: ^5.2.0
1313
args: ">=1.0.0 <3.0.0"
1414
path: ^1.0.0
1515
pub_semver: ">=1.4.4 <3.0.0"

0 commit comments

Comments
 (0)