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
2 changes: 1 addition & 1 deletion functional_data_generator/lib/builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Future<String> _generateDataType(Element element, ConstantReader annotation, Bui
final positionalFields = genericConstructor.formalParameters.where((p) => p.isPositional).map((p) => p.name).toList();

final fieldsWithIndex =
await Future.wait(classElement.fields.where((f) => !f.isSynthetic && !f.isStatic).map((f) async {
await Future.wait(classElement.fields.where((f) => f.nonSynthetic == f && !f.isStatic).map((f) async {
final declaration = await buildStep.resolver.astNodeFor(f.firstFragment) as VariableDeclaration?;
final declarationList = declaration?.parent as VariableDeclarationList?;
final positionalIndex = positionalFields.indexOf(f.name);
Expand Down
4 changes: 2 additions & 2 deletions functional_data_generator/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: functional_data_generator
version: 2.2.2
version: 2.2.3
description: >-
Simple and non-intrusive code generator for boilerplate of data types.
homepage: https://github.com/spkersten/dart_functional_data
Expand All @@ -8,7 +8,7 @@ environment:
sdk: '>=2.19.0 <4.0.0'

dependencies:
analyzer: '^8.0.0'
analyzer: '>=8.1.1 <13.0.0'
build: ^4.0.0
collection: ^1.15.0
functional_data: ^1.1.1
Expand Down
Loading