mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 02:27:39 +00:00
Remove deprecated reportConstEvaluationErrors.
Change-Id: I855478bde75cfd674ec64eec8b98debda2ed6bf3 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/201383 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Reviewed-by: Samuel Rawlins <srawlins@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
parent
9556697681
commit
aa426380b9
|
@ -83,10 +83,6 @@ class ElementResolver extends SimpleAstVisitor<void> {
|
|||
/// The element for the library containing the compilation unit being visited.
|
||||
final LibraryElement _definingLibrary;
|
||||
|
||||
/// Whether constant evaluation errors should be reported during resolution.
|
||||
@Deprecated('This field is no longer used')
|
||||
final bool reportConstEvaluationErrors;
|
||||
|
||||
/// Helper for resolving properties on types.
|
||||
final TypePropertyResolver _typePropertyResolver;
|
||||
|
||||
|
@ -95,8 +91,7 @@ class ElementResolver extends SimpleAstVisitor<void> {
|
|||
/// Initialize a newly created visitor to work for the given [_resolver] to
|
||||
/// resolve the nodes in a compilation unit.
|
||||
ElementResolver(this._resolver,
|
||||
{this.reportConstEvaluationErrors = true,
|
||||
MigratableAstInfoProvider migratableAstInfoProvider =
|
||||
{MigratableAstInfoProvider migratableAstInfoProvider =
|
||||
const MigratableAstInfoProvider()})
|
||||
: _definingLibrary = _resolver.definingLibrary,
|
||||
_typePropertyResolver = _resolver.typePropertyResolver {
|
||||
|
|
|
@ -275,7 +275,6 @@ class ResolverVisitor extends ScopedVisitor with ErrorDetectionHelpers {
|
|||
AnalysisErrorListener errorListener,
|
||||
{FeatureSet? featureSet,
|
||||
Scope? nameScope,
|
||||
bool reportConstEvaluationErrors = true,
|
||||
FlowAnalysisHelper? flowAnalysisHelper})
|
||||
: this._(
|
||||
inheritanceManager,
|
||||
|
@ -287,7 +286,6 @@ class ResolverVisitor extends ScopedVisitor with ErrorDetectionHelpers {
|
|||
featureSet ??
|
||||
definingLibrary.context.analysisOptions.contextFeatures,
|
||||
nameScope,
|
||||
reportConstEvaluationErrors,
|
||||
flowAnalysisHelper,
|
||||
const MigratableAstInfoProvider(),
|
||||
null);
|
||||
|
@ -301,7 +299,6 @@ class ResolverVisitor extends ScopedVisitor with ErrorDetectionHelpers {
|
|||
AnalysisErrorListener errorListener,
|
||||
FeatureSet featureSet,
|
||||
Scope? nameScope,
|
||||
bool reportConstEvaluationErrors,
|
||||
this.flowAnalysis,
|
||||
this._migratableAstInfoProvider,
|
||||
MigrationResolutionHooks? migrationResolutionHooks)
|
||||
|
@ -371,7 +368,6 @@ class ResolverVisitor extends ScopedVisitor with ErrorDetectionHelpers {
|
|||
flowAnalysis,
|
||||
);
|
||||
elementResolver = ElementResolver(this,
|
||||
reportConstEvaluationErrors: reportConstEvaluationErrors,
|
||||
migratableAstInfoProvider: _migratableAstInfoProvider);
|
||||
inferenceContext = InferenceContext._(this);
|
||||
typeAnalyzer = StaticTypeAnalyzer(this, migrationResolutionHooks);
|
||||
|
@ -2413,7 +2409,6 @@ class ResolverVisitorForMigration extends ResolverVisitor {
|
|||
errorListener,
|
||||
featureSet,
|
||||
null,
|
||||
true,
|
||||
FlowAnalysisHelperForMigration(
|
||||
typeSystem, migrationResolutionHooks, true),
|
||||
migrationResolutionHooks,
|
||||
|
|
|
@ -48,7 +48,6 @@ class AstResolver {
|
|||
_errorListener,
|
||||
featureSet: _featureSet,
|
||||
nameScope: _nameScope,
|
||||
reportConstEvaluationErrors: false,
|
||||
flowAnalysisHelper: _flowAnalysis,
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue