Update analyzer for api_conform_test (flutter/engine#40386)
Update analyzer for api_conform_test
This commit is contained in:
committed by
GitHub
parent
7598fa32e5
commit
7187bc8e88
@@ -9,6 +9,6 @@ dependencies:
|
||||
path: 1.8.2
|
||||
|
||||
dev_dependencies:
|
||||
analyzer: 5.7.1
|
||||
analyzer: 5.8.0
|
||||
test: 1.22.1
|
||||
pub_semver: 2.1.3
|
||||
|
||||
@@ -10,7 +10,6 @@ import 'package:analyzer/dart/analysis/features.dart';
|
||||
import 'package:analyzer/dart/analysis/results.dart';
|
||||
import 'package:analyzer/dart/analysis/utilities.dart';
|
||||
import 'package:analyzer/dart/ast/ast.dart';
|
||||
import 'package:pub_semver/pub_semver.dart';
|
||||
|
||||
// Ignore members defined on Object.
|
||||
const Set<String> _kObjectMembers = <String>{
|
||||
@@ -20,10 +19,7 @@ const Set<String> _kObjectMembers = <String>{
|
||||
};
|
||||
|
||||
CompilationUnit _parseAndCheckDart(String path) {
|
||||
final FeatureSet analyzerFeatures = FeatureSet.fromEnableFlags2(
|
||||
flags: <String>['class-modifiers', 'sealed-class', 'records', 'patterns'],
|
||||
sdkLanguageVersion: Version.parse('3.0.0-0'),
|
||||
);
|
||||
final FeatureSet analyzerFeatures = FeatureSet.latestLanguageVersion();
|
||||
if (!analyzerFeatures.isEnabled(Feature.non_nullable)) {
|
||||
throw Exception('non-nullable feature is disabled.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user