Skip to content

Commit

Permalink
Version 3.7.0-71.0.dev
Browse files Browse the repository at this point in the history
Merge 2202f10 into dev
  • Loading branch information
Dart CI committed Oct 26, 2024
2 parents 703ddea + 2202f10 commit a75848f
Show file tree
Hide file tree
Showing 43 changed files with 919 additions and 745 deletions.
6 changes: 3 additions & 3 deletions DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ vars = {
# self-service update these by following the go/dart-engprod/browsers.md
# instructions. d8, the V8 shell, is always checked out.
"checkout_javascript_engines": False,
"d8_tag": "version:13.1.113",
"jsshell_tag": "version:130.0.1",
"jsc_tag": "version:284301",
"d8_tag": "version:13.2.70",
"jsshell_tag": "version:131.0.3",
"jsc_tag": "version:285702",

# https://chrome-infra-packages.appspot.com/p/fuchsia/third_party/clang
"clang_version": "git_revision:3928edecfbd116d56bbe7411365d50bb567380a1",
Expand Down
1 change: 1 addition & 0 deletions pkg/analyzer/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
* Remove deprecated `source_io.dart`.
* Remove deprecated `lint/Spelunker`.
* Remove deprecated `source_resource.dart`.
* Remove `MultiplyInheritedExecutableElement`.

## 6.11.0
* Un-deprecated `LibraryElement.exportedLibraries`.
Expand Down
9 changes: 0 additions & 9 deletions pkg/analyzer/lib/dart/element/element.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2119,15 +2119,6 @@ abstract class MultiplyDefinedElement implements Element {
List<Element> get conflictingElements;
}

/// An [ExecutableElement], with the additional information of a list of
/// [ExecutableElement]s from which this element was composed.
///
/// Clients may not extend, implement or mix-in this class.
abstract class MultiplyInheritedExecutableElement implements ExecutableElement {
/// The executable elements defined within this executable element.
List<ExecutableElement> get inheritedElements;
}

/// An object that controls how namespaces are combined.
///
/// Clients may not extend, implement or mix-in this class.
Expand Down
2 changes: 1 addition & 1 deletion pkg/analyzer/lib/src/dart/analysis/driver.dart
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ import 'package:meta/meta.dart';
// TODO(scheglov): Clean up the list of implicitly analyzed files.
class AnalysisDriver {
/// The version of data format, should be incremented on every format change.
static const int DATA_VERSION = 403;
static const int DATA_VERSION = 404;

/// The number of exception contexts allowed to write. Once this field is
/// zero, we stop writing any new exception contexts in this process.
Expand Down
32 changes: 20 additions & 12 deletions pkg/analyzer/lib/src/dart/element/element.dart
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,19 @@ abstract class AugmentedInterfaceElementImpl

class AugmentedMixinElementImpl extends AugmentedInterfaceElementImpl
with MaybeAugmentedMixinElementMixin {
@override
final Reference reference;

@override
final MixinElementImpl declaration;

@override
List<InterfaceType> superclassConstraints = [];

AugmentedMixinElementImpl(this.declaration);
AugmentedMixinElementImpl(this.reference, this.declaration) {
reference.element2 = this;
declaration.augmentedInternal = this;
}
}

class BindPatternVariableElementImpl extends PatternVariableElementImpl
Expand Down Expand Up @@ -7202,6 +7208,9 @@ mixin MaybeAugmentedMixinElementMixin on MaybeAugmentedInterfaceElementMixin
@override
bool get isBase => declaration.isBase;

/// See [ElementImpl2.reference].
Reference get reference;

@override
T? accept2<T>(ElementVisitor2<T> visitor) {
return visitor.visitMixinElement(this);
Expand Down Expand Up @@ -7737,21 +7746,14 @@ class MixinElementImpl extends ClassOrMixinElementImpl
/// The list will be empty if this class is not a mixin declaration.
late List<String> superInvokedNames;

late MaybeAugmentedMixinElementMixin augmentedInternal =
NotAugmentedMixinElementImpl(this);
late MaybeAugmentedMixinElementMixin augmentedInternal;

/// Initialize a newly created class element to have the given [name] at the
/// given [offset] in the file that contains the declaration of this element.
MixinElementImpl(super.name, super.offset);

@override
MaybeAugmentedMixinElementMixin get augmented {
if (isAugmentation) {
if (augmentationTarget case var augmentationTarget?) {
return augmentationTarget.augmented;
}
}

linkedData?.read(this);
return augmentedInternal;
}
Expand All @@ -7771,7 +7773,7 @@ class MixinElementImpl extends ClassOrMixinElementImpl
}

@override
MixinElement2 get element => super.element as MixinElement2;
MaybeAugmentedMixinElementMixin get element => augmented;

@override
bool get isBase {
Expand Down Expand Up @@ -8468,10 +8470,16 @@ abstract class NotAugmentedInterfaceElementImpl

class NotAugmentedMixinElementImpl extends NotAugmentedInterfaceElementImpl
with MaybeAugmentedMixinElementMixin {
@override
final Reference reference;

@override
final MixinElementImpl element;

NotAugmentedMixinElementImpl(this.element);
NotAugmentedMixinElementImpl(this.reference, this.element) {
reference.element2 = this;
declaration.augmentedInternal = this;
}

@override
MixinElementImpl get declaration => element;
Expand All @@ -8483,7 +8491,7 @@ class NotAugmentedMixinElementImpl extends NotAugmentedInterfaceElementImpl

@override
AugmentedMixinElementImpl toAugmented() {
var augmented = AugmentedMixinElementImpl(declaration);
var augmented = AugmentedMixinElementImpl(reference, declaration);
declaration.augmentedInternal = augmented;
return augmented;
}
Expand Down
11 changes: 0 additions & 11 deletions pkg/analyzer/lib/src/lint/linter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,6 @@ abstract class LintRule {
/// visiting nodes.
late ErrorReporter _reporter;

/// Description (in markdown format) suitable for display in a detailed lint
/// description.
///
/// This property is deprecated and will be removed in a future release.
@Deprecated('Use .description for a short description and consider placing '
'long-form documentation on an external website.')
final String details;

/// Short description suitable for display in console output.
final String description;

Expand All @@ -230,9 +222,6 @@ abstract class LintRule {
@Deprecated('Lint rule categories are no longer used. Remove the argument.')
this.categories = const <String>{},
required this.description,
@Deprecated("Specify 'details' for a short description and consider "
'placing long-form documentation on an external website.')
this.details = '',
State? state,
}) : state = state ?? State.stable();

Expand Down
Loading

0 comments on commit a75848f

Please sign in to comment.