analyzer: Avoid two-step constructors for TypedLiteralResolver
Change-Id: I13d9c5ef3b49d1112e1eb2c503b9d571fa458da0 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/510183 Commit-Queue: Konstantin Shcheglov <scheglov@google.com> Auto-Submit: Samuel Rawlins <srawlins@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
committed by
Samuel Rawlins
parent
37609ccba2
commit
6fd091c444
@@ -52,28 +52,13 @@ class TypedLiteralResolver {
|
||||
|
||||
final bool _strictInference;
|
||||
|
||||
factory TypedLiteralResolver(
|
||||
ResolverVisitor resolver,
|
||||
TypeSystemImpl typeSystem,
|
||||
TypeProviderImpl typeProvider,
|
||||
AnalysisOptions analysisOptions,
|
||||
) {
|
||||
return TypedLiteralResolver._(
|
||||
resolver,
|
||||
typeSystem,
|
||||
typeProvider,
|
||||
resolver.diagnosticReporter,
|
||||
analysisOptions.strictInference,
|
||||
);
|
||||
}
|
||||
|
||||
TypedLiteralResolver._(
|
||||
TypedLiteralResolver(
|
||||
this._resolver,
|
||||
this._typeSystem,
|
||||
this._typeProvider,
|
||||
this._diagnosticReporter,
|
||||
this._strictInference,
|
||||
);
|
||||
AnalysisOptions analysisOptions,
|
||||
) : _diagnosticReporter = _resolver.diagnosticReporter,
|
||||
_strictInference = analysisOptions.strictInference;
|
||||
|
||||
DynamicTypeImpl get _dynamicType => DynamicTypeImpl.instance;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user