Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/reflectable/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 5.2.4

- Update dependency to use analyzer ^14.0.0.

## 5.2.3

- Update dependency to use analyzer ^13.0.0.
Expand Down
2 changes: 1 addition & 1 deletion packages/reflectable/example/bin/example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class A {

static int noArguments() => 42;
static int oneArgument(int x) => x - 42;
static int optionalArguments(int x, int y, [int z = 0, int? w]) =>
static int optionalArguments(int x, int y, [int z = 0, String? w]) =>
x + y + z * 42;
static int namedArguments(int x, int y, {int z = 42}) => x + y - z;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/reflectable/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: reflectable
version: 5.2.3
version: 5.2.4
description: >
Reflection support based on code generation, using 'capabilities' to
specify which operations to support, on which objects. This is the
Expand Down
4 changes: 4 additions & 0 deletions packages/reflectable_builder/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.2.4

- Update dependencies to use analyzer version ^14.0.0.

## 1.2.3

- Migrate the code generator to use analyzer version ^13.0.0.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4820,7 +4820,9 @@ class BuilderImplementation {
// k that we need not worry about here.
var capabilities = <ec.ReflectCapability>[];
for (Argument argument in superInvocation.argumentList.arguments) {
Expression expression = argument is NamedArgument ? argument.argumentExpression : argument as Expression;
Expression expression = argument is NamedArgument
? argument.argumentExpression
: argument as Expression;
ec.ReflectCapability? currentCapability =
await capabilityOfCollectionElement(expression);
if (currentCapability != null) capabilities.add(currentCapability);
Expand Down Expand Up @@ -5252,7 +5254,7 @@ int _declarationDescriptor(ExecutableElement element) {
result |= constants.redirectingConstructorAttribute;
}
if (element.isOriginImplicitDefault) result |= constants.syntheticAttribute;
} else if (element is MethodElement) {
} else if (element is MethodElement) {
result |= constants.method;
handleReturnType(element);
if (!element.isOriginDeclaration) result |= constants.syntheticAttribute;
Expand Down
6 changes: 3 additions & 3 deletions packages/reflectable_builder/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: reflectable_builder
version: 1.2.3
version: 1.2.4
description: >
Reflection support based on code generation, using 'capabilities' to
specify which operations to support, on which objects. This is the
Expand All @@ -9,12 +9,12 @@ environment:
sdk: ^3.12.0
resolution: workspace
dependencies:
analyzer: ^13.0.0
analyzer: ^14.0.0
build: ^4.0.0
dart_style: ^3.0.0
pub_semver: ^2.2.0
path: ^1.9.0
reflectable: '>=5.2.0 <5.3.0'
reflectable: '>=5.2.4 <5.3.0'
dev_dependencies:
build_config: ^1.2.0
build_runner: ^2.10.0
Expand Down