Skip to content

Commit

Permalink
Version 3.7.0-290.0.dev
Browse files Browse the repository at this point in the history
Merge 3cf0093 into dev
  • Loading branch information
Dart CI committed Dec 30, 2024
2 parents a395aca + 3cf0093 commit 53fa6c6
Show file tree
Hide file tree
Showing 7 changed files with 440 additions and 440 deletions.

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions pkg/analyzer/lib/dart/element/element.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2142,10 +2142,7 @@ sealed class NamespaceCombinator {}
///
/// Clients may not extend, implement or mix-in this class.
abstract class ParameterElement
implements
PromotableElement,
ConstantEvaluationTarget,
SharedNamedFunctionParameterStructure<DartType> {
implements PromotableElement, ConstantEvaluationTarget {
@override
ParameterElement get declaration;

Expand Down Expand Up @@ -2202,7 +2199,6 @@ abstract class ParameterElement
/// change the meaning of this getter. The parameter `{@required int x}`
/// will return `false` and the parameter `{@required required int x}`
/// will return `true`.
@override
bool get isRequired;

/// Whether the parameter is both a required and named parameter.
Expand Down
4 changes: 1 addition & 3 deletions pkg/analyzer/lib/dart/element/type.dart
Original file line number Diff line number Diff line change
Expand Up @@ -604,10 +604,8 @@ abstract class RecordTypeField {
/// A named field in a [RecordType].
///
/// Clients may not extend, implement or mix-in this class.
abstract class RecordTypeNamedField
implements RecordTypeField, SharedNamedTypeStructure<DartType> {
abstract class RecordTypeNamedField implements RecordTypeField {
/// The name of the field.
@override
String get name;
}

Expand Down
6 changes: 5 additions & 1 deletion pkg/analyzer/lib/src/dart/element/element.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import 'package:_fe_analyzer_shared/src/type_inference/type_analyzer.dart'
as shared;
import 'package:_fe_analyzer_shared/src/type_inference/type_analyzer_operations.dart'
as shared;
import 'package:_fe_analyzer_shared/src/types/shared_type.dart';
import 'package:analyzer/dart/analysis/features.dart';
import 'package:analyzer/dart/analysis/session.dart';
import 'package:analyzer/dart/ast/token.dart';
Expand Down Expand Up @@ -9188,7 +9189,10 @@ class ParameterElementImpl_ofImplicitSetter extends ParameterElementImpl {

/// A mixin that provides a common implementation for methods defined in
/// [ParameterElement].
mixin ParameterElementMixin implements ParameterElement {
mixin ParameterElementMixin
implements
ParameterElement,
SharedNamedFunctionParameterStructure<DartType> {
@override
bool get isNamed => parameterKind.isNamed;

Expand Down
10 changes: 6 additions & 4 deletions pkg/analyzer/lib/src/dart/element/type.dart
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class FunctionTypeImpl extends TypeImpl
implements
FunctionType,
SharedFunctionTypeStructure<DartType, TypeParameterElement,
ParameterElement> {
ParameterElementMixin> {
@override
late int hashCode = _computeHashCode();

Expand All @@ -113,7 +113,7 @@ class FunctionTypeImpl extends TypeImpl
final int requiredPositionalParameterCount;

@override
final List<ParameterElement> sortedNamedParameters;
final List<ParameterElementMixin> sortedNamedParameters;

factory FunctionTypeImpl({
required List<TypeParameterElement> typeFormals,
Expand Down Expand Up @@ -166,7 +166,9 @@ class FunctionTypeImpl extends TypeImpl
nullabilitySuffix: nullabilitySuffix,
positionalParameterTypes: positionalParameterTypes,
requiredPositionalParameterCount: requiredPositionalParameterCount,
sortedNamedParameters: sortedNamedParameters,
// TODO(paulberry): avoid the cast by changing the type of
// `sortedNamedParameters`.
sortedNamedParameters: sortedNamedParameters.cast(),
alias: alias);
}

Expand Down Expand Up @@ -1453,7 +1455,7 @@ class RecordTypeImpl extends TypeImpl implements RecordType {
}

class RecordTypeNamedFieldImpl extends RecordTypeFieldImpl
implements RecordTypeNamedField {
implements RecordTypeNamedField, SharedNamedTypeStructure<DartType> {
@override
final String name;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ typedef UnknownTypeConstraintOrigin = shared.UnknownTypeConstraintOrigin<
/// attempt to make one type schema a subtype of another.
class TypeConstraintGatherer extends shared.TypeConstraintGenerator<
DartType,
ParameterElement,
ParameterElementMixin,
PromotableElementImpl2,
TypeParameterElement,
InterfaceType,
Expand All @@ -104,7 +104,7 @@ class TypeConstraintGatherer extends shared.TypeConstraintGenerator<
with
shared.TypeConstraintGeneratorMixin<
DartType,
ParameterElement,
ParameterElementMixin,
PromotableElementImpl2,
TypeParameterElement,
InterfaceType,
Expand Down
2 changes: 1 addition & 1 deletion tools/VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ CHANNEL dev
MAJOR 3
MINOR 7
PATCH 0
PRERELEASE 289
PRERELEASE 290
PRERELEASE_PATCH 0

0 comments on commit 53fa6c6

Please sign in to comment.