@@ -23,8 +23,8 @@ class SdkConstraintVerifier extends RecursiveAstVisitor<void> {
23
23
/// The typ provider used to access SDK types.
24
24
final TypeProvider _typeProvider;
25
25
26
- /// The range of versions of the SDK that are allowed by the SDK constraints .
27
- final VersionRange _versionRange ;
26
+ /// The version constraint for the SDK.
27
+ final VersionConstraint _versionConstraint ;
28
28
29
29
/// A cached flag indicating whether references to Future and Stream need to
30
30
/// be checked. Use [] to access this field.
@@ -33,15 +33,15 @@ class SdkConstraintVerifier extends RecursiveAstVisitor<void> {
33
33
/// Initialize a newly created verifier to use the given [_errorReporter] to
34
34
/// report errors.
35
35
SdkConstraintVerifier (this ._errorReporter, this ._containingLibrary,
36
- this ._typeProvider, this ._versionRange );
36
+ this ._typeProvider, this ._versionConstraint );
37
37
38
38
/// Return a range covering every version up to, but not including, 2.1.0.
39
39
VersionRange get before_2_1_0 =>
40
40
new VersionRange (max: Version .parse ('2.1.0' ), includeMax: false );
41
41
42
42
/// Return `true` if references to Future and Stream need to be checked.
43
- bool get checkFutureAndStream =>
44
- _checkFutureAndStream ?? = ! before_2_1_0.intersect (_versionRange ).isEmpty;
43
+ bool get checkFutureAndStream => _checkFutureAndStream ?? =
44
+ ! before_2_1_0.intersect (_versionConstraint ).isEmpty;
45
45
46
46
@override
47
47
void visitHideCombinator (HideCombinator node) {
0 commit comments