Skip to content

Commit

Permalink
Merge pull request #3749 from rrousselGit/ci
Browse files Browse the repository at this point in the history
Fix CI
  • Loading branch information
rrousselGit authored Sep 14, 2024
2 parents 8942799 + 38a0366 commit 70de8cb
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 10 deletions.
4 changes: 4 additions & 0 deletions packages/riverpod_analyzer_utils/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Unreleased patch

Bumped minimum analyzer to 6.9.0

## 0.5.4 - 2024-08-15

Bump custom_lint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ abstract class RefInvocation extends RiverpodAst
final functionOwner = function.staticElement
.cast<MethodElement>()
?.declaration
.enclosingElement;
.enclosingElement3;

if (functionOwner == null ||
// Since Ref is sealed, checking that the function is from the package:riverpod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ abstract class WidgetRefInvocation extends RiverpodAst
final functionOwner = function.staticElement
.cast<MethodElement>()
?.declaration
.enclosingElement;
.enclosingElement3;

if (functionOwner == null ||
// Since Ref is sealed, checking that the function is from the package:riverpod
Expand Down
2 changes: 1 addition & 1 deletion packages/riverpod_analyzer_utils/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ environment:
sdk: ">=3.0.0 <4.0.0"

dependencies:
analyzer: ^6.5.0
analyzer: ^6.9.0
collection: ^1.16.0
crypto: ^3.0.2
custom_lint_core: ^0.6.5
Expand Down
2 changes: 1 addition & 1 deletion packages/riverpod_graph/lib/src/analyze.dart
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ class _ProviderName {
/// Returns the name of the provider.
_ProviderName _displayNameForProvider(VariableElement provider) {
final providerName = provider.name;
final enclosingElementName = provider.enclosingElement?.displayName;
final enclosingElementName = provider.enclosingElement3?.displayName;
return _ProviderName(
providerName: providerName,
enclosingElementName: enclosingElementName ?? '',
Expand Down
2 changes: 1 addition & 1 deletion packages/riverpod_graph/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ environment:
sdk: ">=2.15.0 <4.0.0"

dependencies:
analyzer: ">=5.12.0 <7.0.0"
analyzer: "6.9.0"
args: ^2.4.0
collection: ^1.0.0
path: ^1.8.2
Expand Down
4 changes: 4 additions & 0 deletions packages/riverpod_lint/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Unreleased patch

Bump analyzer to ^6.9.0

## 2.3.13 - 2024-08-15

Bump custom_lint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ class _ReplacementEditBuilder extends RecursiveAstVisitor<void> {
}
final element = node.staticElement;
if (element is ExecutableElement &&
element.enclosingElement == widgetClassElement &&
element.enclosingElement3 == widgetClassElement &&
!elementsToMove.contains(element)) {
final offset = node.offset;
final qualifier =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ class _ReplacementEditBuilder extends RecursiveAstVisitor<void> {
}
final element = node.staticElement;
if (element is ExecutableElement &&
element.enclosingElement == widgetClassElement &&
element.enclosingElement3 == widgetClassElement &&
!elementsToMove.contains(element)) {
final parent = node.parent;
if (parent is PrefixedIdentifier) {
Expand Down
4 changes: 2 additions & 2 deletions packages/riverpod_lint/lib/src/lints/provider_parameters.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ class ProviderParameters extends RiverpodLintRule {
?.applyRedirectedConstructors();

final operatorEqual =
instantiatedObject?.enclosingElement.recursiveGetMethod('==');
instantiatedObject?.enclosingElement3.recursiveGetMethod('==');

final isEqualFromObjectMethod = operatorEqual?.enclosingElement
final isEqualFromObjectMethod = operatorEqual?.enclosingElement3
.safeCast<ClassElement>()
?.thisType
.isDartCoreObject;
Expand Down
2 changes: 1 addition & 1 deletion packages/riverpod_lint/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ environment:
sdk: ">=2.17.0 <4.0.0"

dependencies:
analyzer: ^6.5.0
analyzer: ^6.9.0
analyzer_plugin: ^0.11.2
collection: ^1.16.0
custom_lint_builder: ^0.6.5
Expand Down

0 comments on commit 70de8cb

Please sign in to comment.