From 73ebf92e9f73c464cfea5b7d39571ea7e8daa97f Mon Sep 17 00:00:00 2001 From: Natalie Weizenbaum Date: Wed, 14 Oct 2020 14:10:46 -0700 Subject: [PATCH] Support the latest version of the analyzer package (#1115) --- pubspec.yaml | 2 +- tool/grind/synchronize.dart | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pubspec.yaml b/pubspec.yaml index ef2e3945..7a618448 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -32,7 +32,7 @@ dependencies: dev_dependencies: archive: ">=1.0.0 <3.0.0" - analyzer: ">=0.37.0 <0.40.0" + analyzer: "^0.40.0" cli_pkg: "^1.0.0-beta.10" crypto: ">=0.9.2 <3.0.0" dart_style: "^1.2.0" diff --git a/tool/grind/synchronize.dart b/tool/grind/synchronize.dart index be3e6e25..8b171e83 100644 --- a/tool/grind/synchronize.dart +++ b/tool/grind/synchronize.dart @@ -43,7 +43,8 @@ final _sharedClasses = const ['EvaluateResult', 'CompileResult']; void synchronize() { sources.forEach((source, target) { var visitor = _Visitor(File(source).readAsStringSync(), source); - parseFile(path: source, featureSet: FeatureSet.fromEnableFlags([])) + + parseFile(path: source, featureSet: FeatureSet.latestLanguageVersion()) .unit .accept(visitor); var formatted = DartFormatter().format(visitor.result);