From f8c4210cd9f1cd2f2dcddb71bb2d3202f26db699 Mon Sep 17 00:00:00 2001 From: Martin Kamleithner Date: Sun, 13 Aug 2023 19:37:33 +0200 Subject: [PATCH] feat(ferry_generator): add option to reuse data classes for fragments with a single inline fragment spread as selection (#530) * feat(ferry_generator): add data_class_config: reuse_fragment option in order to re-use selection sets with only a single inline fragment spread. see https://github.com/gql-dart/gql/pull/413 for details. In order to opt in to this (breaking) change, add ```yaml data_class_config: reuse_fragments: true ``` To your in the config for your graphql_builder of your build.yaml --- examples/pokemon_explorer/pubspec.yaml | 2 +- .../test/test/data_change_streams_test.dart | 9 +- .../ferry_generator/lib/graphql_builder.dart | 1 + .../ferry_generator/lib/src/utils/config.dart | 18 +- packages/ferry_generator/pubspec.yaml | 6 +- packages/ferry_test_graphql2/build.yaml | 2 + .../review_fragment.data.gql.g.dart | 10 +- .../review_fragment.req.gql.g.dart | 13 +- .../review_fragment.var.gql.g.dart | 2 +- .../create_review.data.gql.g.dart | 22 +- .../create_review.req.gql.g.dart | 28 +- .../create_review.var.gql.g.dart | 8 +- .../review_with_date_scalar.data.gql.g.dart | 25 +- .../review_with_date_scalar.req.gql.g.dart | 28 +- .../review_with_date_scalar.var.gql.g.dart | 10 +- .../aliased_hero.data.gql.g.dart | 30 +- .../__generated__/aliased_hero.req.gql.g.dart | 28 +- .../__generated__/aliased_hero.var.gql.g.dart | 7 +- .../hero_no_vars.data.gql.g.dart | 16 +- .../__generated__/hero_no_vars.req.gql.g.dart | 28 +- .../__generated__/hero_no_vars.var.gql.g.dart | 2 +- .../hero_with_fragments.data.gql.dart | 99 +--- .../hero_with_fragments.data.gql.g.dart | 547 +++--------------- .../hero_with_fragments.req.gql.dart | 4 +- .../hero_with_fragments.req.gql.g.dart | 50 +- .../hero_with_fragments.var.gql.g.dart | 12 +- .../hero_with_inline_fragment.data.gql.g.dart | 28 +- .../hero_with_inline_fragment.req.gql.g.dart | 39 +- .../hero_with_inline_fragment.var.gql.g.dart | 7 +- .../human_with_args.data.gql.g.dart | 34 +- .../human_with_args.req.gql.g.dart | 28 +- .../human_with_args.var.gql.g.dart | 8 +- .../review_by_id.data.gql.g.dart | 28 +- .../__generated__/review_by_id.req.gql.g.dart | 28 +- .../__generated__/review_by_id.var.gql.g.dart | 7 +- .../__generated__/reviews.data.gql.g.dart | 28 +- .../__generated__/reviews.req.gql.g.dart | 28 +- .../__generated__/reviews.var.gql.g.dart | 10 +- .../__generated__/schema.schema.gql.g.dart | 25 +- .../schema/__generated__/serializers.gql.dart | 4 - .../__generated__/serializers.gql.g.dart | 4 +- packages/ferry_test_graphql2/pubspec.yaml | 8 +- 42 files changed, 487 insertions(+), 834 deletions(-) diff --git a/examples/pokemon_explorer/pubspec.yaml b/examples/pokemon_explorer/pubspec.yaml index 649ca992..979d82a5 100644 --- a/examples/pokemon_explorer/pubspec.yaml +++ b/examples/pokemon_explorer/pubspec.yaml @@ -23,6 +23,6 @@ dev_dependencies: ferry_generator: ^0.8.2-dev.0 flutter_test: sdk: flutter - gql_exec: ^0.4.4 + gql_exec: ^1.0.0 flutter: uses-material-design: true diff --git a/packages/ferry_cache/test/test/data_change_streams_test.dart b/packages/ferry_cache/test/test/data_change_streams_test.dart index ba98d48e..be0b5565 100644 --- a/packages/ferry_cache/test/test/data_change_streams_test.dart +++ b/packages/ferry_cache/test/test/data_change_streams_test.dart @@ -26,10 +26,7 @@ final han = GHeroWithFragmentsData_hero( ..friendsConnection .edges .add(GHeroWithFragmentsData_hero_friendsConnection_edges( - (b) => b - ..node = GHeroWithFragmentsData_hero_friendsConnection_edges_node - .fromJson(luke.toJson())! - .toBuilder(), + (b) => b..node = GheroDataData.fromJson(luke.toJson())!.toBuilder(), )), ); @@ -480,9 +477,7 @@ void main() { .add(GHeroWithFragmentsData_hero_friendsConnection_edges( (b) => b ..node = - GHeroWithFragmentsData_hero_friendsConnection_edges_node - .fromJson(vader.toJson())! - .toBuilder(), + GheroDataData.fromJson(vader.toJson())!.toBuilder(), )))); await Future.delayed(Duration.zero); diff --git a/packages/ferry_generator/lib/graphql_builder.dart b/packages/ferry_generator/lib/graphql_builder.dart index 61b8059a..3a714764 100644 --- a/packages/ferry_generator/lib/graphql_builder.dart +++ b/packages/ferry_generator/lib/graphql_builder.dart @@ -87,6 +87,7 @@ class GraphqlBuilder implements Builder { p.basename(generatedFilePath(buildStep.inputId, dataExtension)), config.typeOverrides, config.whenExtensionConfig, + config.dataClassConfig, ), varExtension: buildVarLibrary( doc, diff --git a/packages/ferry_generator/lib/src/utils/config.dart b/packages/ferry_generator/lib/src/utils/config.dart index 8f7abe96..a76b4c0c 100644 --- a/packages/ferry_generator/lib/src/utils/config.dart +++ b/packages/ferry_generator/lib/src/utils/config.dart @@ -21,6 +21,7 @@ class BuilderConfig { final String outputDir; final String sourceExtension; final InlineFragmentSpreadWhenExtensionConfig whenExtensionConfig; + final DataClassConfig dataClassConfig; BuilderConfig(Map config) : schemaId = config['schema'] == null @@ -37,7 +38,22 @@ class BuilderConfig { enumFallbackConfig = _getEnumFallbackConfig(config), outputDir = config['output_dir'] ?? '__generated__', sourceExtension = config['source_extension'] ?? '.graphql', - whenExtensionConfig = _getWhenExtensionConfig(config); + whenExtensionConfig = _getWhenExtensionConfig(config), + dataClassConfig = _getDataClassConfig(config); +} + +DataClassConfig _getDataClassConfig(Map config) { + final dataClassConfig = switch (config) { + { + 'data_class_config': { + 'reuse_fragments': final reuseFragments, + } + } => + DataClassConfig(reuseFragments: reuseFragments == true), + _ => const DataClassConfig(reuseFragments: false), + }; + + return dataClassConfig; } InlineFragmentSpreadWhenExtensionConfig _getWhenExtensionConfig( diff --git a/packages/ferry_generator/pubspec.yaml b/packages/ferry_generator/pubspec.yaml index 505332c5..9e0ffc31 100644 --- a/packages/ferry_generator/pubspec.yaml +++ b/packages/ferry_generator/pubspec.yaml @@ -4,17 +4,17 @@ homepage: https://ferrygraphql.com/ description: Generated types for Ferry GraphQL Client repository: https://github.com/gql-dart/ferry environment: - sdk: '>=2.12.0 <3.0.0' + sdk: '>=3.0.0 <4.0.0' dependencies: gql: '>=0.14.0 <2.0.0' - gql_code_builder: ^0.7.1 + gql_code_builder: ^0.8.0 built_collection: ^5.0.0 code_builder: ^4.3.0 build: ^2.0.0 path: ^1.8.0 ferry_exec: ^0.3.1 yaml: ^3.1.0 - dart_style: ^2.2.4 + dart_style: ^2.3.2 glob: ^2.0.1 built_value_generator: ^8.1.1 built_value: ^8.1.2 diff --git a/packages/ferry_test_graphql2/build.yaml b/packages/ferry_test_graphql2/build.yaml index 73df9ce6..7591d577 100644 --- a/packages/ferry_test_graphql2/build.yaml +++ b/packages/ferry_test_graphql2/build.yaml @@ -5,6 +5,8 @@ targets: enabled: true options: schema: ferry_test_graphql2|lib/schema/schema.graphql + data_class_config: + reuse_fragments: true type_overrides: Date: name: DateTime diff --git a/packages/ferry_test_graphql2/lib/fragments/__generated__/review_fragment.data.gql.g.dart b/packages/ferry_test_graphql2/lib/fragments/__generated__/review_fragment.data.gql.g.dart index 831729a3..396d1ca3 100644 --- a/packages/ferry_test_graphql2/lib/fragments/__generated__/review_fragment.data.gql.g.dart +++ b/packages/ferry_test_graphql2/lib/fragments/__generated__/review_fragment.data.gql.g.dart @@ -113,8 +113,12 @@ class _$GReviewFragmentData extends GReviewFragmentData { @override int get hashCode { - return $jf($jc($jc($jc(0, G__typename.hashCode), stars.hashCode), - commentary.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, stars.hashCode); + _$hash = $jc(_$hash, commentary.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -185,4 +189,4 @@ class GReviewFragmentDataBuilder } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/ferry_test_graphql2/lib/fragments/__generated__/review_fragment.req.gql.g.dart b/packages/ferry_test_graphql2/lib/fragments/__generated__/review_fragment.req.gql.g.dart index 6e8a07fc..5b807fd4 100644 --- a/packages/ferry_test_graphql2/lib/fragments/__generated__/review_fragment.req.gql.g.dart +++ b/packages/ferry_test_graphql2/lib/fragments/__generated__/review_fragment.req.gql.g.dart @@ -131,10 +131,13 @@ class _$GReviewFragmentReq extends GReviewFragmentReq { @override int get hashCode { - return $jf($jc( - $jc($jc($jc(0, vars.hashCode), document.hashCode), - fragmentName.hashCode), - idFields.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -226,4 +229,4 @@ class GReviewFragmentReqBuilder } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/ferry_test_graphql2/lib/fragments/__generated__/review_fragment.var.gql.g.dart b/packages/ferry_test_graphql2/lib/fragments/__generated__/review_fragment.var.gql.g.dart index ad21aba4..83ee150f 100644 --- a/packages/ferry_test_graphql2/lib/fragments/__generated__/review_fragment.var.gql.g.dart +++ b/packages/ferry_test_graphql2/lib/fragments/__generated__/review_fragment.var.gql.g.dart @@ -94,4 +94,4 @@ class GReviewFragmentVarsBuilder } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/ferry_test_graphql2/lib/mutations/__generated__/create_review.data.gql.g.dart b/packages/ferry_test_graphql2/lib/mutations/__generated__/create_review.data.gql.g.dart index 32e9a5a5..9f1a7d03 100644 --- a/packages/ferry_test_graphql2/lib/mutations/__generated__/create_review.data.gql.g.dart +++ b/packages/ferry_test_graphql2/lib/mutations/__generated__/create_review.data.gql.g.dart @@ -181,7 +181,11 @@ class _$GCreateReviewData extends GCreateReviewData { @override int get hashCode { - return $jf($jc($jc(0, G__typename.hashCode), createReview.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, createReview.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -312,12 +316,14 @@ class _$GCreateReviewData_createReview extends GCreateReviewData_createReview { @override int get hashCode { - return $jf($jc( - $jc( - $jc($jc($jc(0, G__typename.hashCode), id.hashCode), - episode.hashCode), - stars.hashCode), - commentary.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, episode.hashCode); + _$hash = $jc(_$hash, stars.hashCode); + _$hash = $jc(_$hash, commentary.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -405,4 +411,4 @@ class GCreateReviewData_createReviewBuilder } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/ferry_test_graphql2/lib/mutations/__generated__/create_review.req.gql.g.dart b/packages/ferry_test_graphql2/lib/mutations/__generated__/create_review.req.gql.g.dart index a065e0e9..a5e2f3a8 100644 --- a/packages/ferry_test_graphql2/lib/mutations/__generated__/create_review.req.gql.g.dart +++ b/packages/ferry_test_graphql2/lib/mutations/__generated__/create_review.req.gql.g.dart @@ -196,20 +196,18 @@ class _$GCreateReviewReq extends GCreateReviewReq { @override int get hashCode { - return $jf($jc( - $jc( - $jc( - $jc( - $jc( - $jc( - $jc($jc($jc(0, vars.hashCode), operation.hashCode), - requestId.hashCode), - updateResult.hashCode), - optimisticResponse.hashCode), - updateCacheHandlerKey.hashCode), - updateCacheHandlerContext.hashCode), - fetchPolicy.hashCode), - executeOnListen.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -354,4 +352,4 @@ class GCreateReviewReqBuilder } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/ferry_test_graphql2/lib/mutations/__generated__/create_review.var.gql.g.dart b/packages/ferry_test_graphql2/lib/mutations/__generated__/create_review.var.gql.g.dart index c697e3d7..1077ab97 100644 --- a/packages/ferry_test_graphql2/lib/mutations/__generated__/create_review.var.gql.g.dart +++ b/packages/ferry_test_graphql2/lib/mutations/__generated__/create_review.var.gql.g.dart @@ -96,7 +96,11 @@ class _$GCreateReviewVars extends GCreateReviewVars { @override int get hashCode { - return $jf($jc($jc(0, episode.hashCode), review.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, episode.hashCode); + _$hash = $jc(_$hash, review.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -168,4 +172,4 @@ class GCreateReviewVarsBuilder } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/ferry_test_graphql2/lib/mutations/__generated__/review_with_date_scalar.data.gql.g.dart b/packages/ferry_test_graphql2/lib/mutations/__generated__/review_with_date_scalar.data.gql.g.dart index 3e683600..af3ffdf9 100644 --- a/packages/ferry_test_graphql2/lib/mutations/__generated__/review_with_date_scalar.data.gql.g.dart +++ b/packages/ferry_test_graphql2/lib/mutations/__generated__/review_with_date_scalar.data.gql.g.dart @@ -201,7 +201,11 @@ class _$GReviewWithDateData extends GReviewWithDateData { @override int get hashCode { - return $jf($jc($jc(0, G__typename.hashCode), createReview.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, createReview.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -337,14 +341,15 @@ class _$GReviewWithDateData_createReview @override int get hashCode { - return $jf($jc( - $jc( - $jc( - $jc($jc($jc(0, G__typename.hashCode), episode.hashCode), - stars.hashCode), - commentary.hashCode), - createdAt.hashCode), - seenOn.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, episode.hashCode); + _$hash = $jc(_$hash, stars.hashCode); + _$hash = $jc(_$hash, commentary.hashCode); + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, seenOn.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -452,4 +457,4 @@ class GReviewWithDateData_createReviewBuilder } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/ferry_test_graphql2/lib/mutations/__generated__/review_with_date_scalar.req.gql.g.dart b/packages/ferry_test_graphql2/lib/mutations/__generated__/review_with_date_scalar.req.gql.g.dart index 53eb4e0b..c27ea74f 100644 --- a/packages/ferry_test_graphql2/lib/mutations/__generated__/review_with_date_scalar.req.gql.g.dart +++ b/packages/ferry_test_graphql2/lib/mutations/__generated__/review_with_date_scalar.req.gql.g.dart @@ -198,20 +198,18 @@ class _$GReviewWithDateReq extends GReviewWithDateReq { @override int get hashCode { - return $jf($jc( - $jc( - $jc( - $jc( - $jc( - $jc( - $jc($jc($jc(0, vars.hashCode), operation.hashCode), - requestId.hashCode), - updateResult.hashCode), - optimisticResponse.hashCode), - updateCacheHandlerKey.hashCode), - updateCacheHandlerContext.hashCode), - fetchPolicy.hashCode), - executeOnListen.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -356,4 +354,4 @@ class GReviewWithDateReqBuilder } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/ferry_test_graphql2/lib/mutations/__generated__/review_with_date_scalar.var.gql.g.dart b/packages/ferry_test_graphql2/lib/mutations/__generated__/review_with_date_scalar.var.gql.g.dart index b46918b0..9ab6b9ce 100644 --- a/packages/ferry_test_graphql2/lib/mutations/__generated__/review_with_date_scalar.var.gql.g.dart +++ b/packages/ferry_test_graphql2/lib/mutations/__generated__/review_with_date_scalar.var.gql.g.dart @@ -116,8 +116,12 @@ class _$GReviewWithDateVars extends GReviewWithDateVars { @override int get hashCode { - return $jf($jc( - $jc($jc(0, episode.hashCode), review.hashCode), createdAt.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, episode.hashCode); + _$hash = $jc(_$hash, review.hashCode); + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -196,4 +200,4 @@ class GReviewWithDateVarsBuilder } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/ferry_test_graphql2/lib/queries/__generated__/aliased_hero.data.gql.g.dart b/packages/ferry_test_graphql2/lib/queries/__generated__/aliased_hero.data.gql.g.dart index ed85bfb5..6d82d8a2 100644 --- a/packages/ferry_test_graphql2/lib/queries/__generated__/aliased_hero.data.gql.g.dart +++ b/packages/ferry_test_graphql2/lib/queries/__generated__/aliased_hero.data.gql.g.dart @@ -253,8 +253,12 @@ class _$GAliasedHeroData extends GAliasedHeroData { @override int get hashCode { - return $jf($jc($jc($jc(0, G__typename.hashCode), empireHero.hashCode), - jediHero.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, empireHero.hashCode); + _$hash = $jc(_$hash, jediHero.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -394,9 +398,13 @@ class _$GAliasedHeroData_empireHero extends GAliasedHeroData_empireHero { @override int get hashCode { - return $jf($jc( - $jc($jc($jc(0, G__typename.hashCode), id.hashCode), name.hashCode), - from.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, from.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -542,9 +550,13 @@ class _$GAliasedHeroData_jediHero extends GAliasedHeroData_jediHero { @override int get hashCode { - return $jf($jc( - $jc($jc($jc(0, G__typename.hashCode), id.hashCode), name.hashCode), - from.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, from.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -638,4 +650,4 @@ class GAliasedHeroData_jediHeroBuilder } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/ferry_test_graphql2/lib/queries/__generated__/aliased_hero.req.gql.g.dart b/packages/ferry_test_graphql2/lib/queries/__generated__/aliased_hero.req.gql.g.dart index d51afba7..a7a86fb3 100644 --- a/packages/ferry_test_graphql2/lib/queries/__generated__/aliased_hero.req.gql.g.dart +++ b/packages/ferry_test_graphql2/lib/queries/__generated__/aliased_hero.req.gql.g.dart @@ -195,20 +195,18 @@ class _$GAliasedHeroReq extends GAliasedHeroReq { @override int get hashCode { - return $jf($jc( - $jc( - $jc( - $jc( - $jc( - $jc( - $jc($jc($jc(0, vars.hashCode), operation.hashCode), - requestId.hashCode), - updateResult.hashCode), - optimisticResponse.hashCode), - updateCacheHandlerKey.hashCode), - updateCacheHandlerContext.hashCode), - fetchPolicy.hashCode), - executeOnListen.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -352,4 +350,4 @@ class GAliasedHeroReqBuilder } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/ferry_test_graphql2/lib/queries/__generated__/aliased_hero.var.gql.g.dart b/packages/ferry_test_graphql2/lib/queries/__generated__/aliased_hero.var.gql.g.dart index f40c47cc..89fe20ab 100644 --- a/packages/ferry_test_graphql2/lib/queries/__generated__/aliased_hero.var.gql.g.dart +++ b/packages/ferry_test_graphql2/lib/queries/__generated__/aliased_hero.var.gql.g.dart @@ -79,7 +79,10 @@ class _$GAliasedHeroVars extends GAliasedHeroVars { @override int get hashCode { - return $jf($jc(0, ep.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, ep.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -132,4 +135,4 @@ class GAliasedHeroVarsBuilder } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/ferry_test_graphql2/lib/queries/__generated__/hero_no_vars.data.gql.g.dart b/packages/ferry_test_graphql2/lib/queries/__generated__/hero_no_vars.data.gql.g.dart index a98b4caf..849ff651 100644 --- a/packages/ferry_test_graphql2/lib/queries/__generated__/hero_no_vars.data.gql.g.dart +++ b/packages/ferry_test_graphql2/lib/queries/__generated__/hero_no_vars.data.gql.g.dart @@ -155,7 +155,11 @@ class _$GHeroNoVarsData extends GHeroNoVarsData { @override int get hashCode { - return $jf($jc($jc(0, G__typename.hashCode), hero.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, hero.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -274,8 +278,12 @@ class _$GHeroNoVarsData_hero extends GHeroNoVarsData_hero { @override int get hashCode { - return $jf( - $jc($jc($jc(0, G__typename.hashCode), id.hashCode), name.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -347,4 +355,4 @@ class GHeroNoVarsData_heroBuilder } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/ferry_test_graphql2/lib/queries/__generated__/hero_no_vars.req.gql.g.dart b/packages/ferry_test_graphql2/lib/queries/__generated__/hero_no_vars.req.gql.g.dart index e398369b..f2c5d947 100644 --- a/packages/ferry_test_graphql2/lib/queries/__generated__/hero_no_vars.req.gql.g.dart +++ b/packages/ferry_test_graphql2/lib/queries/__generated__/hero_no_vars.req.gql.g.dart @@ -195,20 +195,18 @@ class _$GHeroNoVarsReq extends GHeroNoVarsReq { @override int get hashCode { - return $jf($jc( - $jc( - $jc( - $jc( - $jc( - $jc( - $jc($jc($jc(0, vars.hashCode), operation.hashCode), - requestId.hashCode), - updateResult.hashCode), - optimisticResponse.hashCode), - updateCacheHandlerKey.hashCode), - updateCacheHandlerContext.hashCode), - fetchPolicy.hashCode), - executeOnListen.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -352,4 +350,4 @@ class GHeroNoVarsReqBuilder } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/ferry_test_graphql2/lib/queries/__generated__/hero_no_vars.var.gql.g.dart b/packages/ferry_test_graphql2/lib/queries/__generated__/hero_no_vars.var.gql.g.dart index 4b0f9bbc..c98b3a7e 100644 --- a/packages/ferry_test_graphql2/lib/queries/__generated__/hero_no_vars.var.gql.g.dart +++ b/packages/ferry_test_graphql2/lib/queries/__generated__/hero_no_vars.var.gql.g.dart @@ -88,4 +88,4 @@ class GHeroNoVarsVarsBuilder } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/ferry_test_graphql2/lib/queries/__generated__/hero_with_fragments.data.gql.dart b/packages/ferry_test_graphql2/lib/queries/__generated__/hero_with_fragments.data.gql.dart index 44365da7..708279de 100644 --- a/packages/ferry_test_graphql2/lib/queries/__generated__/hero_with_fragments.data.gql.dart +++ b/packages/ferry_test_graphql2/lib/queries/__generated__/hero_with_fragments.data.gql.dart @@ -54,9 +54,9 @@ abstract class GHeroWithFragmentsData_hero @override String get id; @override - String get name; - @override GHeroWithFragmentsData_hero_friendsConnection get friendsConnection; + @override + String get name; static Serializer get serializer => _$gHeroWithFragmentsDataHeroSerializer; @override @@ -125,7 +125,7 @@ abstract class GHeroWithFragmentsData_hero_friendsConnection_edges @BuiltValueField(wireName: '__typename') String get G__typename; @override - GHeroWithFragmentsData_hero_friendsConnection_edges_node? get node; + GheroDataData? get node; static Serializer get serializer => _$gHeroWithFragmentsDataHeroFriendsConnectionEdgesSerializer; @@ -142,45 +142,6 @@ abstract class GHeroWithFragmentsData_hero_friendsConnection_edges ); } -abstract class GHeroWithFragmentsData_hero_friendsConnection_edges_node - implements - Built, - GcomparisonFields_friendsConnection_edges_node, - GheroData { - GHeroWithFragmentsData_hero_friendsConnection_edges_node._(); - - factory GHeroWithFragmentsData_hero_friendsConnection_edges_node( - [Function( - GHeroWithFragmentsData_hero_friendsConnection_edges_nodeBuilder b) - updates]) = _$GHeroWithFragmentsData_hero_friendsConnection_edges_node; - - static void _initializeBuilder( - GHeroWithFragmentsData_hero_friendsConnection_edges_nodeBuilder b) => - b..G__typename = 'Character'; - @override - @BuiltValueField(wireName: '__typename') - String get G__typename; - @override - String get id; - @override - String get name; - static Serializer - get serializer => - _$gHeroWithFragmentsDataHeroFriendsConnectionEdgesNodeSerializer; - @override - Map toJson() => (_i1.serializers.serializeWith( - GHeroWithFragmentsData_hero_friendsConnection_edges_node.serializer, - this, - ) as Map); - static GHeroWithFragmentsData_hero_friendsConnection_edges_node? fromJson( - Map json) => - _i1.serializers.deserializeWith( - GHeroWithFragmentsData_hero_friendsConnection_edges_node.serializer, - json, - ); -} - abstract class GheroData { String get G__typename; String get id; @@ -238,19 +199,7 @@ abstract class GcomparisonFields_friendsConnection { abstract class GcomparisonFields_friendsConnection_edges { String get G__typename; - GcomparisonFields_friendsConnection_edges_node? get node; - Map toJson(); -} - -abstract class GcomparisonFields_friendsConnection_edges_node - implements GheroData { - @override - String get G__typename; - @override - String get id; - @override - String get name; - @override + GheroData? get node; Map toJson(); } @@ -344,7 +293,7 @@ abstract class GcomparisonFieldsData_friendsConnection_edges @BuiltValueField(wireName: '__typename') String get G__typename; @override - GcomparisonFieldsData_friendsConnection_edges_node? get node; + GheroDataData? get node; static Serializer get serializer => _$gcomparisonFieldsDataFriendsConnectionEdgesSerializer; @override @@ -359,41 +308,3 @@ abstract class GcomparisonFieldsData_friendsConnection_edges json, ); } - -abstract class GcomparisonFieldsData_friendsConnection_edges_node - implements - Built, - GcomparisonFields_friendsConnection_edges_node, - GheroData { - GcomparisonFieldsData_friendsConnection_edges_node._(); - - factory GcomparisonFieldsData_friendsConnection_edges_node( - [Function(GcomparisonFieldsData_friendsConnection_edges_nodeBuilder b) - updates]) = _$GcomparisonFieldsData_friendsConnection_edges_node; - - static void _initializeBuilder( - GcomparisonFieldsData_friendsConnection_edges_nodeBuilder b) => - b..G__typename = 'Character'; - @override - @BuiltValueField(wireName: '__typename') - String get G__typename; - @override - String get id; - @override - String get name; - static Serializer - get serializer => - _$gcomparisonFieldsDataFriendsConnectionEdgesNodeSerializer; - @override - Map toJson() => (_i1.serializers.serializeWith( - GcomparisonFieldsData_friendsConnection_edges_node.serializer, - this, - ) as Map); - static GcomparisonFieldsData_friendsConnection_edges_node? fromJson( - Map json) => - _i1.serializers.deserializeWith( - GcomparisonFieldsData_friendsConnection_edges_node.serializer, - json, - ); -} diff --git a/packages/ferry_test_graphql2/lib/queries/__generated__/hero_with_fragments.data.gql.g.dart b/packages/ferry_test_graphql2/lib/queries/__generated__/hero_with_fragments.data.gql.g.dart index 34b64769..6e8bc822 100644 --- a/packages/ferry_test_graphql2/lib/queries/__generated__/hero_with_fragments.data.gql.g.dart +++ b/packages/ferry_test_graphql2/lib/queries/__generated__/hero_with_fragments.data.gql.g.dart @@ -16,9 +16,6 @@ Serializer Serializer _$gHeroWithFragmentsDataHeroFriendsConnectionEdgesSerializer = new _$GHeroWithFragmentsData_hero_friendsConnection_edgesSerializer(); -Serializer - _$gHeroWithFragmentsDataHeroFriendsConnectionEdgesNodeSerializer = - new _$GHeroWithFragmentsData_hero_friendsConnection_edges_nodeSerializer(); Serializer _$gheroDataDataSerializer = new _$GheroDataDataSerializer(); Serializer _$gcomparisonFieldsDataSerializer = @@ -29,9 +26,6 @@ Serializer Serializer _$gcomparisonFieldsDataFriendsConnectionEdgesSerializer = new _$GcomparisonFieldsData_friendsConnection_edgesSerializer(); -Serializer - _$gcomparisonFieldsDataFriendsConnectionEdgesNodeSerializer = - new _$GcomparisonFieldsData_friendsConnection_edges_nodeSerializer(); class _$GHeroWithFragmentsDataSerializer implements StructuredSerializer { @@ -111,12 +105,12 @@ class _$GHeroWithFragmentsData_heroSerializer specifiedType: const FullType(String)), 'id', serializers.serialize(object.id, specifiedType: const FullType(String)), - 'name', - serializers.serialize(object.name, specifiedType: const FullType(String)), 'friendsConnection', serializers.serialize(object.friendsConnection, specifiedType: const FullType(GHeroWithFragmentsData_hero_friendsConnection)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), ]; return result; @@ -142,16 +136,16 @@ class _$GHeroWithFragmentsData_heroSerializer result.id = serializers.deserialize(value, specifiedType: const FullType(String))! as String; break; - case 'name': - result.name = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; - break; case 'friendsConnection': result.friendsConnection.replace(serializers.deserialize(value, specifiedType: const FullType( GHeroWithFragmentsData_hero_friendsConnection))! as GHeroWithFragmentsData_hero_friendsConnection); break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; } } @@ -260,8 +254,7 @@ class _$GHeroWithFragmentsData_hero_friendsConnection_edgesSerializer result ..add('node') ..add(serializers.serialize(value, - specifiedType: const FullType( - GHeroWithFragmentsData_hero_friendsConnection_edges_node))); + specifiedType: const FullType(GheroDataData))); } return result; } @@ -285,71 +278,7 @@ class _$GHeroWithFragmentsData_hero_friendsConnection_edgesSerializer break; case 'node': result.node.replace(serializers.deserialize(value, - specifiedType: const FullType( - GHeroWithFragmentsData_hero_friendsConnection_edges_node))! - as GHeroWithFragmentsData_hero_friendsConnection_edges_node); - break; - } - } - - return result.build(); - } -} - -class _$GHeroWithFragmentsData_hero_friendsConnection_edges_nodeSerializer - implements - StructuredSerializer< - GHeroWithFragmentsData_hero_friendsConnection_edges_node> { - @override - final Iterable types = const [ - GHeroWithFragmentsData_hero_friendsConnection_edges_node, - _$GHeroWithFragmentsData_hero_friendsConnection_edges_node - ]; - @override - final String wireName = - 'GHeroWithFragmentsData_hero_friendsConnection_edges_node'; - - @override - Iterable serialize(Serializers serializers, - GHeroWithFragmentsData_hero_friendsConnection_edges_node object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - '__typename', - serializers.serialize(object.G__typename, - specifiedType: const FullType(String)), - 'id', - serializers.serialize(object.id, specifiedType: const FullType(String)), - 'name', - serializers.serialize(object.name, specifiedType: const FullType(String)), - ]; - - return result; - } - - @override - GHeroWithFragmentsData_hero_friendsConnection_edges_node deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = - new GHeroWithFragmentsData_hero_friendsConnection_edges_nodeBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case '__typename': - result.G__typename = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; - break; - case 'id': - result.id = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; - break; - case 'name': - result.name = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; + specifiedType: const FullType(GheroDataData))! as GheroDataData); break; } } @@ -578,8 +507,7 @@ class _$GcomparisonFieldsData_friendsConnection_edgesSerializer result ..add('node') ..add(serializers.serialize(value, - specifiedType: const FullType( - GcomparisonFieldsData_friendsConnection_edges_node))); + specifiedType: const FullType(GheroDataData))); } return result; } @@ -602,70 +530,7 @@ class _$GcomparisonFieldsData_friendsConnection_edgesSerializer break; case 'node': result.node.replace(serializers.deserialize(value, - specifiedType: const FullType( - GcomparisonFieldsData_friendsConnection_edges_node))! - as GcomparisonFieldsData_friendsConnection_edges_node); - break; - } - } - - return result.build(); - } -} - -class _$GcomparisonFieldsData_friendsConnection_edges_nodeSerializer - implements - StructuredSerializer< - GcomparisonFieldsData_friendsConnection_edges_node> { - @override - final Iterable types = const [ - GcomparisonFieldsData_friendsConnection_edges_node, - _$GcomparisonFieldsData_friendsConnection_edges_node - ]; - @override - final String wireName = 'GcomparisonFieldsData_friendsConnection_edges_node'; - - @override - Iterable serialize(Serializers serializers, - GcomparisonFieldsData_friendsConnection_edges_node object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - '__typename', - serializers.serialize(object.G__typename, - specifiedType: const FullType(String)), - 'id', - serializers.serialize(object.id, specifiedType: const FullType(String)), - 'name', - serializers.serialize(object.name, specifiedType: const FullType(String)), - ]; - - return result; - } - - @override - GcomparisonFieldsData_friendsConnection_edges_node deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = - new GcomparisonFieldsData_friendsConnection_edges_nodeBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case '__typename': - result.G__typename = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; - break; - case 'id': - result.id = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; - break; - case 'name': - result.name = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; + specifiedType: const FullType(GheroDataData))! as GheroDataData); break; } } @@ -709,7 +574,11 @@ class _$GHeroWithFragmentsData extends GHeroWithFragmentsData { @override int get hashCode { - return $jf($jc($jc(0, G__typename.hashCode), hero.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, hero.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -792,9 +661,9 @@ class _$GHeroWithFragmentsData_hero extends GHeroWithFragmentsData_hero { @override final String id; @override - final String name; - @override final GHeroWithFragmentsData_hero_friendsConnection friendsConnection; + @override + final String name; factory _$GHeroWithFragmentsData_hero( [void Function(GHeroWithFragmentsData_heroBuilder)? updates]) => @@ -803,17 +672,17 @@ class _$GHeroWithFragmentsData_hero extends GHeroWithFragmentsData_hero { _$GHeroWithFragmentsData_hero._( {required this.G__typename, required this.id, - required this.name, - required this.friendsConnection}) + required this.friendsConnection, + required this.name}) : super._() { BuiltValueNullFieldError.checkNotNull( G__typename, r'GHeroWithFragmentsData_hero', 'G__typename'); BuiltValueNullFieldError.checkNotNull( id, r'GHeroWithFragmentsData_hero', 'id'); - BuiltValueNullFieldError.checkNotNull( - name, r'GHeroWithFragmentsData_hero', 'name'); BuiltValueNullFieldError.checkNotNull( friendsConnection, r'GHeroWithFragmentsData_hero', 'friendsConnection'); + BuiltValueNullFieldError.checkNotNull( + name, r'GHeroWithFragmentsData_hero', 'name'); } @override @@ -831,15 +700,19 @@ class _$GHeroWithFragmentsData_hero extends GHeroWithFragmentsData_hero { return other is GHeroWithFragmentsData_hero && G__typename == other.G__typename && id == other.id && - name == other.name && - friendsConnection == other.friendsConnection; + friendsConnection == other.friendsConnection && + name == other.name; } @override int get hashCode { - return $jf($jc( - $jc($jc($jc(0, G__typename.hashCode), id.hashCode), name.hashCode), - friendsConnection.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, friendsConnection.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -847,8 +720,8 @@ class _$GHeroWithFragmentsData_hero extends GHeroWithFragmentsData_hero { return (newBuiltValueToStringHelper(r'GHeroWithFragmentsData_hero') ..add('G__typename', G__typename) ..add('id', id) - ..add('name', name) - ..add('friendsConnection', friendsConnection)) + ..add('friendsConnection', friendsConnection) + ..add('name', name)) .toString(); } } @@ -867,10 +740,6 @@ class GHeroWithFragmentsData_heroBuilder String? get id => _$this._id; set id(String? id) => _$this._id = id; - String? _name; - String? get name => _$this._name; - set name(String? name) => _$this._name = name; - GHeroWithFragmentsData_hero_friendsConnectionBuilder? _friendsConnection; GHeroWithFragmentsData_hero_friendsConnectionBuilder get friendsConnection => _$this._friendsConnection ??= @@ -880,6 +749,10 @@ class GHeroWithFragmentsData_heroBuilder friendsConnection) => _$this._friendsConnection = friendsConnection; + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + GHeroWithFragmentsData_heroBuilder() { GHeroWithFragmentsData_hero._initializeBuilder(this); } @@ -889,8 +762,8 @@ class GHeroWithFragmentsData_heroBuilder if ($v != null) { _G__typename = $v.G__typename; _id = $v.id; - _name = $v.name; _friendsConnection = $v.friendsConnection.toBuilder(); + _name = $v.name; _$v = null; } return this; @@ -919,9 +792,9 @@ class GHeroWithFragmentsData_heroBuilder G__typename, r'GHeroWithFragmentsData_hero', 'G__typename'), id: BuiltValueNullFieldError.checkNotNull( id, r'GHeroWithFragmentsData_hero', 'id'), + friendsConnection: friendsConnection.build(), name: BuiltValueNullFieldError.checkNotNull( - name, r'GHeroWithFragmentsData_hero', 'name'), - friendsConnection: friendsConnection.build()); + name, r'GHeroWithFragmentsData_hero', 'name')); } catch (_) { late String _$failedField; try { @@ -982,8 +855,12 @@ class _$GHeroWithFragmentsData_hero_friendsConnection @override int get hashCode { - return $jf($jc($jc($jc(0, G__typename.hashCode), totalCount.hashCode), - edges.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, totalCount.hashCode); + _$hash = $jc(_$hash, edges.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -1086,7 +963,7 @@ class _$GHeroWithFragmentsData_hero_friendsConnection_edges @override final String G__typename; @override - final GHeroWithFragmentsData_hero_friendsConnection_edges_node? node; + final GheroDataData? node; factory _$GHeroWithFragmentsData_hero_friendsConnection_edges( [void Function( @@ -1125,7 +1002,11 @@ class _$GHeroWithFragmentsData_hero_friendsConnection_edges @override int get hashCode { - return $jf($jc($jc(0, G__typename.hashCode), node.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, node.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -1148,14 +1029,9 @@ class GHeroWithFragmentsData_hero_friendsConnection_edgesBuilder String? get G__typename => _$this._G__typename; set G__typename(String? G__typename) => _$this._G__typename = G__typename; - GHeroWithFragmentsData_hero_friendsConnection_edges_nodeBuilder? _node; - GHeroWithFragmentsData_hero_friendsConnection_edges_nodeBuilder get node => - _$this._node ??= - new GHeroWithFragmentsData_hero_friendsConnection_edges_nodeBuilder(); - set node( - GHeroWithFragmentsData_hero_friendsConnection_edges_nodeBuilder? - node) => - _$this._node = node; + GheroDataDataBuilder? _node; + GheroDataDataBuilder get node => _$this._node ??= new GheroDataDataBuilder(); + set node(GheroDataDataBuilder? node) => _$this._node = node; GHeroWithFragmentsData_hero_friendsConnection_edgesBuilder() { GHeroWithFragmentsData_hero_friendsConnection_edges._initializeBuilder( @@ -1216,145 +1092,6 @@ class GHeroWithFragmentsData_hero_friendsConnection_edgesBuilder } } -class _$GHeroWithFragmentsData_hero_friendsConnection_edges_node - extends GHeroWithFragmentsData_hero_friendsConnection_edges_node { - @override - final String G__typename; - @override - final String id; - @override - final String name; - - factory _$GHeroWithFragmentsData_hero_friendsConnection_edges_node( - [void Function( - GHeroWithFragmentsData_hero_friendsConnection_edges_nodeBuilder)? - updates]) => - (new GHeroWithFragmentsData_hero_friendsConnection_edges_nodeBuilder() - ..update(updates)) - ._build(); - - _$GHeroWithFragmentsData_hero_friendsConnection_edges_node._( - {required this.G__typename, required this.id, required this.name}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - G__typename, - r'GHeroWithFragmentsData_hero_friendsConnection_edges_node', - 'G__typename'); - BuiltValueNullFieldError.checkNotNull( - id, r'GHeroWithFragmentsData_hero_friendsConnection_edges_node', 'id'); - BuiltValueNullFieldError.checkNotNull(name, - r'GHeroWithFragmentsData_hero_friendsConnection_edges_node', 'name'); - } - - @override - GHeroWithFragmentsData_hero_friendsConnection_edges_node rebuild( - void Function( - GHeroWithFragmentsData_hero_friendsConnection_edges_nodeBuilder) - updates) => - (toBuilder()..update(updates)).build(); - - @override - GHeroWithFragmentsData_hero_friendsConnection_edges_nodeBuilder toBuilder() => - new GHeroWithFragmentsData_hero_friendsConnection_edges_nodeBuilder() - ..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GHeroWithFragmentsData_hero_friendsConnection_edges_node && - G__typename == other.G__typename && - id == other.id && - name == other.name; - } - - @override - int get hashCode { - return $jf( - $jc($jc($jc(0, G__typename.hashCode), id.hashCode), name.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper( - r'GHeroWithFragmentsData_hero_friendsConnection_edges_node') - ..add('G__typename', G__typename) - ..add('id', id) - ..add('name', name)) - .toString(); - } -} - -class GHeroWithFragmentsData_hero_friendsConnection_edges_nodeBuilder - implements - Builder { - _$GHeroWithFragmentsData_hero_friendsConnection_edges_node? _$v; - - String? _G__typename; - String? get G__typename => _$this._G__typename; - set G__typename(String? G__typename) => _$this._G__typename = G__typename; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - String? _name; - String? get name => _$this._name; - set name(String? name) => _$this._name = name; - - GHeroWithFragmentsData_hero_friendsConnection_edges_nodeBuilder() { - GHeroWithFragmentsData_hero_friendsConnection_edges_node._initializeBuilder( - this); - } - - GHeroWithFragmentsData_hero_friendsConnection_edges_nodeBuilder get _$this { - final $v = _$v; - if ($v != null) { - _G__typename = $v.G__typename; - _id = $v.id; - _name = $v.name; - _$v = null; - } - return this; - } - - @override - void replace(GHeroWithFragmentsData_hero_friendsConnection_edges_node other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GHeroWithFragmentsData_hero_friendsConnection_edges_node; - } - - @override - void update( - void Function( - GHeroWithFragmentsData_hero_friendsConnection_edges_nodeBuilder)? - updates) { - if (updates != null) updates(this); - } - - @override - GHeroWithFragmentsData_hero_friendsConnection_edges_node build() => _build(); - - _$GHeroWithFragmentsData_hero_friendsConnection_edges_node _build() { - final _$result = _$v ?? - new _$GHeroWithFragmentsData_hero_friendsConnection_edges_node._( - G__typename: BuiltValueNullFieldError.checkNotNull( - G__typename, - r'GHeroWithFragmentsData_hero_friendsConnection_edges_node', - 'G__typename'), - id: BuiltValueNullFieldError.checkNotNull( - id, - r'GHeroWithFragmentsData_hero_friendsConnection_edges_node', - 'id'), - name: BuiltValueNullFieldError.checkNotNull( - name, - r'GHeroWithFragmentsData_hero_friendsConnection_edges_node', - 'name')); - replace(_$result); - return _$result; - } -} - class _$GheroDataData extends GheroDataData { @override final String G__typename; @@ -1393,8 +1130,12 @@ class _$GheroDataData extends GheroDataData { @override int get hashCode { - return $jf( - $jc($jc($jc(0, G__typename.hashCode), id.hashCode), name.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -1516,9 +1257,13 @@ class _$GcomparisonFieldsData extends GcomparisonFieldsData { @override int get hashCode { - return $jf($jc( - $jc($jc($jc(0, G__typename.hashCode), id.hashCode), name.hashCode), - friendsConnection.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, friendsConnection.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -1657,8 +1402,12 @@ class _$GcomparisonFieldsData_friendsConnection @override int get hashCode { - return $jf($jc($jc($jc(0, G__typename.hashCode), totalCount.hashCode), - edges.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, totalCount.hashCode); + _$hash = $jc(_$hash, edges.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -1756,7 +1505,7 @@ class _$GcomparisonFieldsData_friendsConnection_edges @override final String G__typename; @override - final GcomparisonFieldsData_friendsConnection_edges_node? node; + final GheroDataData? node; factory _$GcomparisonFieldsData_friendsConnection_edges( [void Function(GcomparisonFieldsData_friendsConnection_edgesBuilder)? @@ -1792,7 +1541,11 @@ class _$GcomparisonFieldsData_friendsConnection_edges @override int get hashCode { - return $jf($jc($jc(0, G__typename.hashCode), node.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, node.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -1815,12 +1568,9 @@ class GcomparisonFieldsData_friendsConnection_edgesBuilder String? get G__typename => _$this._G__typename; set G__typename(String? G__typename) => _$this._G__typename = G__typename; - GcomparisonFieldsData_friendsConnection_edges_nodeBuilder? _node; - GcomparisonFieldsData_friendsConnection_edges_nodeBuilder get node => - _$this._node ??= - new GcomparisonFieldsData_friendsConnection_edges_nodeBuilder(); - set node(GcomparisonFieldsData_friendsConnection_edges_nodeBuilder? node) => - _$this._node = node; + GheroDataDataBuilder? _node; + GheroDataDataBuilder get node => _$this._node ??= new GheroDataDataBuilder(); + set node(GheroDataDataBuilder? node) => _$this._node = node; GcomparisonFieldsData_friendsConnection_edgesBuilder() { GcomparisonFieldsData_friendsConnection_edges._initializeBuilder(this); @@ -1880,135 +1630,4 @@ class GcomparisonFieldsData_friendsConnection_edgesBuilder } } -class _$GcomparisonFieldsData_friendsConnection_edges_node - extends GcomparisonFieldsData_friendsConnection_edges_node { - @override - final String G__typename; - @override - final String id; - @override - final String name; - - factory _$GcomparisonFieldsData_friendsConnection_edges_node( - [void Function( - GcomparisonFieldsData_friendsConnection_edges_nodeBuilder)? - updates]) => - (new GcomparisonFieldsData_friendsConnection_edges_nodeBuilder() - ..update(updates)) - ._build(); - - _$GcomparisonFieldsData_friendsConnection_edges_node._( - {required this.G__typename, required this.id, required this.name}) - : super._() { - BuiltValueNullFieldError.checkNotNull(G__typename, - r'GcomparisonFieldsData_friendsConnection_edges_node', 'G__typename'); - BuiltValueNullFieldError.checkNotNull( - id, r'GcomparisonFieldsData_friendsConnection_edges_node', 'id'); - BuiltValueNullFieldError.checkNotNull( - name, r'GcomparisonFieldsData_friendsConnection_edges_node', 'name'); - } - - @override - GcomparisonFieldsData_friendsConnection_edges_node rebuild( - void Function( - GcomparisonFieldsData_friendsConnection_edges_nodeBuilder) - updates) => - (toBuilder()..update(updates)).build(); - - @override - GcomparisonFieldsData_friendsConnection_edges_nodeBuilder toBuilder() => - new GcomparisonFieldsData_friendsConnection_edges_nodeBuilder() - ..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GcomparisonFieldsData_friendsConnection_edges_node && - G__typename == other.G__typename && - id == other.id && - name == other.name; - } - - @override - int get hashCode { - return $jf( - $jc($jc($jc(0, G__typename.hashCode), id.hashCode), name.hashCode)); - } - - @override - String toString() { - return (newBuiltValueToStringHelper( - r'GcomparisonFieldsData_friendsConnection_edges_node') - ..add('G__typename', G__typename) - ..add('id', id) - ..add('name', name)) - .toString(); - } -} - -class GcomparisonFieldsData_friendsConnection_edges_nodeBuilder - implements - Builder { - _$GcomparisonFieldsData_friendsConnection_edges_node? _$v; - - String? _G__typename; - String? get G__typename => _$this._G__typename; - set G__typename(String? G__typename) => _$this._G__typename = G__typename; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - String? _name; - String? get name => _$this._name; - set name(String? name) => _$this._name = name; - - GcomparisonFieldsData_friendsConnection_edges_nodeBuilder() { - GcomparisonFieldsData_friendsConnection_edges_node._initializeBuilder(this); - } - - GcomparisonFieldsData_friendsConnection_edges_nodeBuilder get _$this { - final $v = _$v; - if ($v != null) { - _G__typename = $v.G__typename; - _id = $v.id; - _name = $v.name; - _$v = null; - } - return this; - } - - @override - void replace(GcomparisonFieldsData_friendsConnection_edges_node other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GcomparisonFieldsData_friendsConnection_edges_node; - } - - @override - void update( - void Function(GcomparisonFieldsData_friendsConnection_edges_nodeBuilder)? - updates) { - if (updates != null) updates(this); - } - - @override - GcomparisonFieldsData_friendsConnection_edges_node build() => _build(); - - _$GcomparisonFieldsData_friendsConnection_edges_node _build() { - final _$result = _$v ?? - new _$GcomparisonFieldsData_friendsConnection_edges_node._( - G__typename: BuiltValueNullFieldError.checkNotNull( - G__typename, - r'GcomparisonFieldsData_friendsConnection_edges_node', - 'G__typename'), - id: BuiltValueNullFieldError.checkNotNull(id, - r'GcomparisonFieldsData_friendsConnection_edges_node', 'id'), - name: BuiltValueNullFieldError.checkNotNull(name, - r'GcomparisonFieldsData_friendsConnection_edges_node', 'name')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/ferry_test_graphql2/lib/queries/__generated__/hero_with_fragments.req.gql.dart b/packages/ferry_test_graphql2/lib/queries/__generated__/hero_with_fragments.req.gql.dart index 73ae906f..4d7b3297 100644 --- a/packages/ferry_test_graphql2/lib/queries/__generated__/hero_with_fragments.req.gql.dart +++ b/packages/ferry_test_graphql2/lib/queries/__generated__/hero_with_fragments.req.gql.dart @@ -116,8 +116,8 @@ abstract class GheroDataReq abstract class GcomparisonFieldsReq implements Built, - _i1.FragmentRequest<_i2.GcomparisonFieldsData, - _i3.GcomparisonFieldsVars> { + _i1 + .FragmentRequest<_i2.GcomparisonFieldsData, _i3.GcomparisonFieldsVars> { GcomparisonFieldsReq._(); factory GcomparisonFieldsReq( diff --git a/packages/ferry_test_graphql2/lib/queries/__generated__/hero_with_fragments.req.gql.g.dart b/packages/ferry_test_graphql2/lib/queries/__generated__/hero_with_fragments.req.gql.g.dart index 5f73322a..e25f829e 100644 --- a/packages/ferry_test_graphql2/lib/queries/__generated__/hero_with_fragments.req.gql.g.dart +++ b/packages/ferry_test_graphql2/lib/queries/__generated__/hero_with_fragments.req.gql.g.dart @@ -355,20 +355,18 @@ class _$GHeroWithFragmentsReq extends GHeroWithFragmentsReq { @override int get hashCode { - return $jf($jc( - $jc( - $jc( - $jc( - $jc( - $jc( - $jc($jc($jc(0, vars.hashCode), operation.hashCode), - requestId.hashCode), - updateResult.hashCode), - optimisticResponse.hashCode), - updateCacheHandlerKey.hashCode), - updateCacheHandlerContext.hashCode), - fetchPolicy.hashCode), - executeOnListen.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -561,10 +559,13 @@ class _$GheroDataReq extends GheroDataReq { @override int get hashCode { - return $jf($jc( - $jc($jc($jc(0, vars.hashCode), document.hashCode), - fragmentName.hashCode), - idFields.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -705,10 +706,13 @@ class _$GcomparisonFieldsReq extends GcomparisonFieldsReq { @override int get hashCode { - return $jf($jc( - $jc($jc($jc(0, vars.hashCode), document.hashCode), - fragmentName.hashCode), - idFields.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -800,4 +804,4 @@ class GcomparisonFieldsReqBuilder } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/ferry_test_graphql2/lib/queries/__generated__/hero_with_fragments.var.gql.g.dart b/packages/ferry_test_graphql2/lib/queries/__generated__/hero_with_fragments.var.gql.g.dart index 2dbde410..4950088b 100644 --- a/packages/ferry_test_graphql2/lib/queries/__generated__/hero_with_fragments.var.gql.g.dart +++ b/packages/ferry_test_graphql2/lib/queries/__generated__/hero_with_fragments.var.gql.g.dart @@ -157,7 +157,10 @@ class _$GHeroWithFragmentsVars extends GHeroWithFragmentsVars { @override int get hashCode { - return $jf($jc(0, episode.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, episode.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -292,7 +295,10 @@ class _$GcomparisonFieldsVars extends GcomparisonFieldsVars { @override int get hashCode { - return $jf($jc(0, first.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, first.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -343,4 +349,4 @@ class GcomparisonFieldsVarsBuilder } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/ferry_test_graphql2/lib/queries/__generated__/hero_with_inline_fragment.data.gql.g.dart b/packages/ferry_test_graphql2/lib/queries/__generated__/hero_with_inline_fragment.data.gql.g.dart index e292a458..df7ffa13 100644 --- a/packages/ferry_test_graphql2/lib/queries/__generated__/hero_with_inline_fragment.data.gql.g.dart +++ b/packages/ferry_test_graphql2/lib/queries/__generated__/hero_with_inline_fragment.data.gql.g.dart @@ -278,7 +278,11 @@ class _$GHeroForEpisodeData extends GHeroForEpisodeData { @override int get hashCode { - return $jf($jc($jc(0, G__typename.hashCode), hero.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, hero.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -379,7 +383,11 @@ class _$GHeroForEpisodeData_hero__base extends GHeroForEpisodeData_hero__base { @override int get hashCode { - return $jf($jc($jc(0, G__typename.hashCode), name.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -488,8 +496,12 @@ class _$GHeroForEpisodeData_hero__asDroid @override int get hashCode { - return $jf($jc($jc($jc(0, G__typename.hashCode), name.hashCode), - primaryFunction.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, primaryFunction.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -599,7 +611,11 @@ class _$GDroidFragmentData extends GDroidFragmentData { @override int get hashCode { - return $jf($jc($jc(0, G__typename.hashCode), primaryFunction.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, primaryFunction.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -663,4 +679,4 @@ class GDroidFragmentDataBuilder } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/ferry_test_graphql2/lib/queries/__generated__/hero_with_inline_fragment.req.gql.g.dart b/packages/ferry_test_graphql2/lib/queries/__generated__/hero_with_inline_fragment.req.gql.g.dart index 3ad57723..05f8d901 100644 --- a/packages/ferry_test_graphql2/lib/queries/__generated__/hero_with_inline_fragment.req.gql.g.dart +++ b/packages/ferry_test_graphql2/lib/queries/__generated__/hero_with_inline_fragment.req.gql.g.dart @@ -273,20 +273,18 @@ class _$GHeroForEpisodeReq extends GHeroForEpisodeReq { @override int get hashCode { - return $jf($jc( - $jc( - $jc( - $jc( - $jc( - $jc( - $jc($jc($jc(0, vars.hashCode), operation.hashCode), - requestId.hashCode), - updateResult.hashCode), - optimisticResponse.hashCode), - updateCacheHandlerKey.hashCode), - updateCacheHandlerContext.hashCode), - fetchPolicy.hashCode), - executeOnListen.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -478,10 +476,13 @@ class _$GDroidFragmentReq extends GDroidFragmentReq { @override int get hashCode { - return $jf($jc( - $jc($jc($jc(0, vars.hashCode), document.hashCode), - fragmentName.hashCode), - idFields.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -573,4 +574,4 @@ class GDroidFragmentReqBuilder } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/ferry_test_graphql2/lib/queries/__generated__/hero_with_inline_fragment.var.gql.g.dart b/packages/ferry_test_graphql2/lib/queries/__generated__/hero_with_inline_fragment.var.gql.g.dart index e8c6a38a..3c5f9f30 100644 --- a/packages/ferry_test_graphql2/lib/queries/__generated__/hero_with_inline_fragment.var.gql.g.dart +++ b/packages/ferry_test_graphql2/lib/queries/__generated__/hero_with_inline_fragment.var.gql.g.dart @@ -108,7 +108,10 @@ class _$GHeroForEpisodeVars extends GHeroForEpisodeVars { @override int get hashCode { - return $jf($jc(0, ep.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, ep.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -221,4 +224,4 @@ class GDroidFragmentVarsBuilder } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/ferry_test_graphql2/lib/queries/__generated__/human_with_args.data.gql.g.dart b/packages/ferry_test_graphql2/lib/queries/__generated__/human_with_args.data.gql.g.dart index 3ce98ea4..2a181075 100644 --- a/packages/ferry_test_graphql2/lib/queries/__generated__/human_with_args.data.gql.g.dart +++ b/packages/ferry_test_graphql2/lib/queries/__generated__/human_with_args.data.gql.g.dart @@ -309,7 +309,11 @@ class _$GHumanWithArgsData extends GHumanWithArgsData { @override int get hashCode { - return $jf($jc($jc(0, G__typename.hashCode), human.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, human.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -441,10 +445,14 @@ class _$GHumanWithArgsData_human extends GHumanWithArgsData_human { @override int get hashCode { - return $jf($jc( - $jc($jc($jc($jc(0, G__typename.hashCode), id.hashCode), name.hashCode), - height.hashCode), - friendsConnection.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, height.hashCode); + _$hash = $jc(_$hash, friendsConnection.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -589,7 +597,11 @@ class _$GHumanWithArgsData_human_friendsConnection @override int get hashCode { - return $jf($jc($jc(0, G__typename.hashCode), friends.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, friends.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -729,8 +741,12 @@ class _$GHumanWithArgsData_human_friendsConnection_friends @override int get hashCode { - return $jf( - $jc($jc($jc(0, G__typename.hashCode), id.hashCode), name.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -809,4 +825,4 @@ class GHumanWithArgsData_human_friendsConnection_friendsBuilder } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/ferry_test_graphql2/lib/queries/__generated__/human_with_args.req.gql.g.dart b/packages/ferry_test_graphql2/lib/queries/__generated__/human_with_args.req.gql.g.dart index 63a0ad6c..785fb24f 100644 --- a/packages/ferry_test_graphql2/lib/queries/__generated__/human_with_args.req.gql.g.dart +++ b/packages/ferry_test_graphql2/lib/queries/__generated__/human_with_args.req.gql.g.dart @@ -196,20 +196,18 @@ class _$GHumanWithArgsReq extends GHumanWithArgsReq { @override int get hashCode { - return $jf($jc( - $jc( - $jc( - $jc( - $jc( - $jc( - $jc($jc($jc(0, vars.hashCode), operation.hashCode), - requestId.hashCode), - updateResult.hashCode), - optimisticResponse.hashCode), - updateCacheHandlerKey.hashCode), - updateCacheHandlerContext.hashCode), - fetchPolicy.hashCode), - executeOnListen.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -354,4 +352,4 @@ class GHumanWithArgsReqBuilder } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/ferry_test_graphql2/lib/queries/__generated__/human_with_args.var.gql.g.dart b/packages/ferry_test_graphql2/lib/queries/__generated__/human_with_args.var.gql.g.dart index dd8c17fa..74228af5 100644 --- a/packages/ferry_test_graphql2/lib/queries/__generated__/human_with_args.var.gql.g.dart +++ b/packages/ferry_test_graphql2/lib/queries/__generated__/human_with_args.var.gql.g.dart @@ -95,7 +95,11 @@ class _$GHumanWithArgsVars extends GHumanWithArgsVars { @override int get hashCode { - return $jf($jc($jc(0, id.hashCode), friendsAfter.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, friendsAfter.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -156,4 +160,4 @@ class GHumanWithArgsVarsBuilder } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/ferry_test_graphql2/lib/queries/__generated__/review_by_id.data.gql.g.dart b/packages/ferry_test_graphql2/lib/queries/__generated__/review_by_id.data.gql.g.dart index 0a58e217..d7f97158 100644 --- a/packages/ferry_test_graphql2/lib/queries/__generated__/review_by_id.data.gql.g.dart +++ b/packages/ferry_test_graphql2/lib/queries/__generated__/review_by_id.data.gql.g.dart @@ -199,7 +199,11 @@ class _$GReviewsByIDData extends GReviewsByIDData { @override int get hashCode { - return $jf($jc($jc(0, G__typename.hashCode), review.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, review.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -338,16 +342,16 @@ class _$GReviewsByIDData_review extends GReviewsByIDData_review { @override int get hashCode { - return $jf($jc( - $jc( - $jc( - $jc( - $jc($jc($jc(0, G__typename.hashCode), id.hashCode), - episode.hashCode), - stars.hashCode), - commentary.hashCode), - createdAt.hashCode), - seenOn.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, episode.hashCode); + _$hash = $jc(_$hash, stars.hashCode); + _$hash = $jc(_$hash, commentary.hashCode); + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, seenOn.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -462,4 +466,4 @@ class GReviewsByIDData_reviewBuilder } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/ferry_test_graphql2/lib/queries/__generated__/review_by_id.req.gql.g.dart b/packages/ferry_test_graphql2/lib/queries/__generated__/review_by_id.req.gql.g.dart index 9ba9f7e9..ef41087a 100644 --- a/packages/ferry_test_graphql2/lib/queries/__generated__/review_by_id.req.gql.g.dart +++ b/packages/ferry_test_graphql2/lib/queries/__generated__/review_by_id.req.gql.g.dart @@ -195,20 +195,18 @@ class _$GReviewsByIDReq extends GReviewsByIDReq { @override int get hashCode { - return $jf($jc( - $jc( - $jc( - $jc( - $jc( - $jc( - $jc($jc($jc(0, vars.hashCode), operation.hashCode), - requestId.hashCode), - updateResult.hashCode), - optimisticResponse.hashCode), - updateCacheHandlerKey.hashCode), - updateCacheHandlerContext.hashCode), - fetchPolicy.hashCode), - executeOnListen.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -352,4 +350,4 @@ class GReviewsByIDReqBuilder } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/ferry_test_graphql2/lib/queries/__generated__/review_by_id.var.gql.g.dart b/packages/ferry_test_graphql2/lib/queries/__generated__/review_by_id.var.gql.g.dart index a9d92310..6a54568c 100644 --- a/packages/ferry_test_graphql2/lib/queries/__generated__/review_by_id.var.gql.g.dart +++ b/packages/ferry_test_graphql2/lib/queries/__generated__/review_by_id.var.gql.g.dart @@ -78,7 +78,10 @@ class _$GReviewsByIDVars extends GReviewsByIDVars { @override int get hashCode { - return $jf($jc(0, id.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -131,4 +134,4 @@ class GReviewsByIDVarsBuilder } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/ferry_test_graphql2/lib/queries/__generated__/reviews.data.gql.g.dart b/packages/ferry_test_graphql2/lib/queries/__generated__/reviews.data.gql.g.dart index ac2478eb..635d3f45 100644 --- a/packages/ferry_test_graphql2/lib/queries/__generated__/reviews.data.gql.g.dart +++ b/packages/ferry_test_graphql2/lib/queries/__generated__/reviews.data.gql.g.dart @@ -198,7 +198,11 @@ class _$GReviewsData extends GReviewsData { @override int get hashCode { - return $jf($jc($jc(0, G__typename.hashCode), reviews.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, reviews.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -338,16 +342,16 @@ class _$GReviewsData_reviews extends GReviewsData_reviews { @override int get hashCode { - return $jf($jc( - $jc( - $jc( - $jc( - $jc($jc($jc(0, G__typename.hashCode), id.hashCode), - episode.hashCode), - stars.hashCode), - commentary.hashCode), - createdAt.hashCode), - seenOn.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, episode.hashCode); + _$hash = $jc(_$hash, stars.hashCode); + _$hash = $jc(_$hash, commentary.hashCode); + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, seenOn.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -461,4 +465,4 @@ class GReviewsData_reviewsBuilder } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/ferry_test_graphql2/lib/queries/__generated__/reviews.req.gql.g.dart b/packages/ferry_test_graphql2/lib/queries/__generated__/reviews.req.gql.g.dart index a39c1d05..f3b54720 100644 --- a/packages/ferry_test_graphql2/lib/queries/__generated__/reviews.req.gql.g.dart +++ b/packages/ferry_test_graphql2/lib/queries/__generated__/reviews.req.gql.g.dart @@ -191,20 +191,18 @@ class _$GReviewsReq extends GReviewsReq { @override int get hashCode { - return $jf($jc( - $jc( - $jc( - $jc( - $jc( - $jc( - $jc($jc($jc(0, vars.hashCode), operation.hashCode), - requestId.hashCode), - updateResult.hashCode), - optimisticResponse.hashCode), - updateCacheHandlerKey.hashCode), - updateCacheHandlerContext.hashCode), - fetchPolicy.hashCode), - executeOnListen.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -346,4 +344,4 @@ class GReviewsReqBuilder implements Builder { } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/ferry_test_graphql2/lib/queries/__generated__/reviews.var.gql.g.dart b/packages/ferry_test_graphql2/lib/queries/__generated__/reviews.var.gql.g.dart index 93acf54d..47ba9e2b 100644 --- a/packages/ferry_test_graphql2/lib/queries/__generated__/reviews.var.gql.g.dart +++ b/packages/ferry_test_graphql2/lib/queries/__generated__/reviews.var.gql.g.dart @@ -104,8 +104,12 @@ class _$GReviewsVars extends GReviewsVars { @override int get hashCode { - return $jf( - $jc($jc($jc(0, episode.hashCode), first.hashCode), offset.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, episode.hashCode); + _$hash = $jc(_$hash, first.hashCode); + _$hash = $jc(_$hash, offset.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -169,4 +173,4 @@ class GReviewsVarsBuilder } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/ferry_test_graphql2/lib/schema/__generated__/schema.schema.gql.g.dart b/packages/ferry_test_graphql2/lib/schema/__generated__/schema.schema.gql.g.dart index 812056be..01ec4de6 100644 --- a/packages/ferry_test_graphql2/lib/schema/__generated__/schema.schema.gql.g.dart +++ b/packages/ferry_test_graphql2/lib/schema/__generated__/schema.schema.gql.g.dart @@ -255,10 +255,13 @@ class _$GReviewInput extends GReviewInput { @override int get hashCode { - return $jf($jc( - $jc($jc($jc(0, stars.hashCode), commentary.hashCode), - favorite_color.hashCode), - seenOn.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, stars.hashCode); + _$hash = $jc(_$hash, commentary.hashCode); + _$hash = $jc(_$hash, favorite_color.hashCode); + _$hash = $jc(_$hash, seenOn.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -387,7 +390,12 @@ class _$GColorInput extends GColorInput { @override int get hashCode { - return $jf($jc($jc($jc(0, red.hashCode), green.hashCode), blue.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, red.hashCode); + _$hash = $jc(_$hash, green.hashCode); + _$hash = $jc(_$hash, blue.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -482,7 +490,10 @@ class _$GISODate extends GISODate { @override int get hashCode { - return $jf($jc(0, value.hashCode)); + var _$hash = 0; + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; } @override @@ -534,4 +545,4 @@ class GISODateBuilder implements Builder { } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/ferry_test_graphql2/lib/schema/__generated__/serializers.gql.dart b/packages/ferry_test_graphql2/lib/schema/__generated__/serializers.gql.dart index 99ccd0b0..d7866c9e 100644 --- a/packages/ferry_test_graphql2/lib/schema/__generated__/serializers.gql.dart +++ b/packages/ferry_test_graphql2/lib/schema/__generated__/serializers.gql.dart @@ -45,11 +45,9 @@ import 'package:ferry_test_graphql2/queries/__generated__/hero_with_fragments.da GHeroWithFragmentsData_hero, GHeroWithFragmentsData_hero_friendsConnection, GHeroWithFragmentsData_hero_friendsConnection_edges, - GHeroWithFragmentsData_hero_friendsConnection_edges_node, GcomparisonFieldsData, GcomparisonFieldsData_friendsConnection, GcomparisonFieldsData_friendsConnection_edges, - GcomparisonFieldsData_friendsConnection_edges_node, GheroDataData; import 'package:ferry_test_graphql2/queries/__generated__/hero_with_fragments.req.gql.dart' show GHeroWithFragmentsReq, GcomparisonFieldsReq, GheroDataReq; @@ -128,7 +126,6 @@ final SerializersBuilder _serializersBuilder = _$serializers.toBuilder() GHeroWithFragmentsData_hero, GHeroWithFragmentsData_hero_friendsConnection, GHeroWithFragmentsData_hero_friendsConnection_edges, - GHeroWithFragmentsData_hero_friendsConnection_edges_node, GHeroWithFragmentsReq, GHeroWithFragmentsVars, GHumanWithArgsData, @@ -158,7 +155,6 @@ final SerializersBuilder _serializersBuilder = _$serializers.toBuilder() GcomparisonFieldsData, GcomparisonFieldsData_friendsConnection, GcomparisonFieldsData_friendsConnection_edges, - GcomparisonFieldsData_friendsConnection_edges_node, GcomparisonFieldsReq, GcomparisonFieldsVars, GheroDataData, diff --git a/packages/ferry_test_graphql2/lib/schema/__generated__/serializers.gql.g.dart b/packages/ferry_test_graphql2/lib/schema/__generated__/serializers.gql.g.dart index c59040d1..50215352 100644 --- a/packages/ferry_test_graphql2/lib/schema/__generated__/serializers.gql.g.dart +++ b/packages/ferry_test_graphql2/lib/schema/__generated__/serializers.gql.g.dart @@ -35,7 +35,6 @@ Serializers _$serializers = (new Serializers().toBuilder() ..add(GHeroWithFragmentsData_hero.serializer) ..add(GHeroWithFragmentsData_hero_friendsConnection.serializer) ..add(GHeroWithFragmentsData_hero_friendsConnection_edges.serializer) - ..add(GHeroWithFragmentsData_hero_friendsConnection_edges_node.serializer) ..add(GHeroWithFragmentsReq.serializer) ..add(GHeroWithFragmentsVars.serializer) ..add(GHumanWithArgsData.serializer) @@ -65,7 +64,6 @@ Serializers _$serializers = (new Serializers().toBuilder() ..add(GcomparisonFieldsData.serializer) ..add(GcomparisonFieldsData_friendsConnection.serializer) ..add(GcomparisonFieldsData_friendsConnection_edges.serializer) - ..add(GcomparisonFieldsData_friendsConnection_edges_node.serializer) ..add(GcomparisonFieldsReq.serializer) ..add(GcomparisonFieldsVars.serializer) ..add(GheroDataData.serializer) @@ -116,4 +114,4 @@ Serializers _$serializers = (new Serializers().toBuilder() GcomparisonFieldsData_friendsConnection_edges?>())) .build(); -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/ferry_test_graphql2/pubspec.yaml b/packages/ferry_test_graphql2/pubspec.yaml index d78c8d1b..09f409ff 100644 --- a/packages/ferry_test_graphql2/pubspec.yaml +++ b/packages/ferry_test_graphql2/pubspec.yaml @@ -3,7 +3,7 @@ version: 0.2.3 description: Example GraphQL Operations, used in Ferry tests repository: https://github.com/gql-dart/ferry environment: - sdk: '>=2.12.0 <3.0.0' + sdk: '>=3.0.0 <4.0.0' dependencies: async: ^2.0.0 gql: '>=0.14.0 <2.0.0' @@ -12,9 +12,13 @@ dependencies: ferry_exec: ^0.3.1 built_value: ^8.0.4 built_collection: ^5.0.0 - gql_code_builder: ^0.7.0 + gql_code_builder: ^0.8.0 dev_dependencies: test: ^1.16.8 build_runner: ^2.0.2 pedantic: ^1.11.0 built_value_generator: ^8.1.1 + dart_style: ^2.3.2 + ferry_generator: + +