Skip to content

Commit

Permalink
Don't use FeatureSet.languageLanguageVersion().
Browse files Browse the repository at this point in the history
  • Loading branch information
munificent committed Sep 1, 2023
1 parent b108063 commit 0e6c0da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/dart_formatter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ class DartFormatter {
// happens to parse without error, then we use that result instead.
ParseStringResult _parse(String source, String? uri,
{required bool patterns}) {
var version = patterns ? FeatureSet.latestLanguageVersion() : Version(2, 19, 0);
var version = patterns ? Version(3, 0, 0) : Version(2, 19, 0);
var featureSet = FeatureSet.fromEnableFlags2(
sdkLanguageVersion: version, flags: experimentFlags);

Expand Down

0 comments on commit 0e6c0da

Please sign in to comment.