Skip to content

Commit 73ebf92

Browse files
authored
Support the latest version of the analyzer package (#1115)
1 parent ab834e9 commit 73ebf92

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ dependencies:
3232

3333
dev_dependencies:
3434
archive: ">=1.0.0 <3.0.0"
35-
analyzer: ">=0.37.0 <0.40.0"
35+
analyzer: "^0.40.0"
3636
cli_pkg: "^1.0.0-beta.10"
3737
crypto: ">=0.9.2 <3.0.0"
3838
dart_style: "^1.2.0"

tool/grind/synchronize.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ final _sharedClasses = const ['EvaluateResult', 'CompileResult'];
4343
void synchronize() {
4444
sources.forEach((source, target) {
4545
var visitor = _Visitor(File(source).readAsStringSync(), source);
46-
parseFile(path: source, featureSet: FeatureSet.fromEnableFlags([]))
46+
47+
parseFile(path: source, featureSet: FeatureSet.latestLanguageVersion())
4748
.unit
4849
.accept(visitor);
4950
var formatted = DartFormatter().format(visitor.result);

0 commit comments

Comments
 (0)