-module(gleamgen@expression@constructor). -compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]). -define(FILEPATH, "src/gleamgen/expression/constructor.gleam"). -export([new/2, to_expression_dynamic/1, to_expression0/1, to_expression1/1, to_expression2/1, to_expression3/1, to_expression4/1, to_expression5/1, to_expression6/1, to_expression7/1, to_expression8/1, to_expression9/1, name/1, unsafe_convert/1]). -export_type([constructor/3]). -if(?OTP_RELEASE >= 27). -define(MODULEDOC(Str), -moduledoc(Str)). -define(DOC(Str), -doc(Str)). -else. -define(MODULEDOC(Str), -compile([])). -define(DOC(Str), -compile([])). -endif. -opaque constructor(KSX, KSY, KSZ) :: {constructor, gleam@option:option(gleamgen@internal@import_reference:import_reference()), gleamgen@type_@variant:variant(gleamgen@type_:dynamic_())} | {gleam_phantom, KSX, KSY, KSZ}. -file("src/gleamgen/expression/constructor.gleam", 44). ?DOC(false). -spec new( gleam@option:option(gleamgen@internal@import_reference:import_reference()), gleamgen@type_@variant:variant(gleamgen@type_:dynamic_()) ) -> constructor(any(), any(), any()). new(Module, Variant) -> {constructor, Module, Variant}. -file("src/gleamgen/expression/constructor.gleam", 144). -spec to_expression_dynamic(constructor(any(), any(), any())) -> gleamgen@expression:expression(any()). to_expression_dynamic(Constructor) -> case erlang:element(2, Constructor) of {some, Module} -> gleamgen@expression:imported_ident( Module, gleamgen@type_@variant:get_name(erlang:element(3, Constructor)) ); none -> gleamgen@expression:raw( gleamgen@type_@variant:get_name(erlang:element(3, Constructor)) ) end. -file("src/gleamgen/expression/constructor.gleam", 51). -spec to_expression0(constructor(KVB, {}, KVC)) -> gleamgen@expression:expression(fun(() -> gleamgen@type_@custom:custom_type(KVB, KVC))). to_expression0(Constructor) -> to_expression_dynamic(Constructor). -file("src/gleamgen/expression/constructor.gleam", 57). -spec to_expression1(constructor(KVJ, {{}, KVK}, KVM)) -> gleamgen@expression:expression(fun((KVK) -> gleamgen@type_@custom:custom_type(KVJ, KVM))). to_expression1(Constructor) -> to_expression_dynamic(Constructor). -file("src/gleamgen/expression/constructor.gleam", 66). -spec to_expression2(constructor(KVT, {{{}, KVU}, KVV}, KVY)) -> gleamgen@expression:expression(fun((KVU, KVV) -> gleamgen@type_@custom:custom_type(KVT, KVY))). to_expression2(Constructor) -> to_expression_dynamic(Constructor). -file("src/gleamgen/expression/constructor.gleam", 74). -spec to_expression3(constructor(KWF, {{{{}, KWG}, KWH}, KWI}, KWM)) -> gleamgen@expression:expression(fun((KWG, KWH, KWI) -> gleamgen@type_@custom:custom_type(KWF, KWM))). to_expression3(Constructor) -> to_expression_dynamic(Constructor). -file("src/gleamgen/expression/constructor.gleam", 82). -spec to_expression4(constructor(KWT, {{{{{}, KWU}, KWV}, KWW}, KWX}, KXC)) -> gleamgen@expression:expression(fun((KWU, KWV, KWW, KWX) -> gleamgen@type_@custom:custom_type(KWT, KXC))). to_expression4(Constructor) -> to_expression_dynamic(Constructor). -file("src/gleamgen/expression/constructor.gleam", 90). -spec to_expression5( constructor(KXJ, {{{{{{}, KXK}, KXL}, KXM}, KXN}, KXO}, KXU) ) -> gleamgen@expression:expression(fun((KXK, KXL, KXM, KXN, KXO) -> gleamgen@type_@custom:custom_type(KXJ, KXU))). to_expression5(Constructor) -> to_expression_dynamic(Constructor). -file("src/gleamgen/expression/constructor.gleam", 98). -spec to_expression6( constructor(KYB, {{{{{{{}, KYC}, KYD}, KYE}, KYF}, KYG}, KYH}, KYO) ) -> gleamgen@expression:expression(fun((KYC, KYD, KYE, KYF, KYG, KYH) -> gleamgen@type_@custom:custom_type(KYB, KYO))). to_expression6(Constructor) -> to_expression_dynamic(Constructor). -file("src/gleamgen/expression/constructor.gleam", 106). -spec to_expression7( constructor(KYV, {{{{{{{{}, KYW}, KYX}, KYY}, KYZ}, KZA}, KZB}, KZC}, KZK) ) -> gleamgen@expression:expression(fun((KYW, KYX, KYY, KYZ, KZA, KZB, KZC) -> gleamgen@type_@custom:custom_type(KYV, KZK))). to_expression7(Constructor) -> to_expression_dynamic(Constructor). -file("src/gleamgen/expression/constructor.gleam", 118). -spec to_expression8( constructor(KZR, {{{{{{{{{}, KZS}, KZT}, KZU}, KZV}, KZW}, KZX}, KZY}, KZZ}, LAI) ) -> gleamgen@expression:expression(fun((KZS, KZT, KZU, KZV, KZW, KZX, KZY, KZZ) -> gleamgen@type_@custom:custom_type(KZR, LAI))). to_expression8(Constructor) -> to_expression_dynamic(Constructor). -file("src/gleamgen/expression/constructor.gleam", 130). -spec to_expression9( constructor(LAP, {{{{{{{{{{}, LAQ}, LAR}, LAS}, LAT}, LAU}, LAV}, LAW}, LAX}, LAY}, LBI) ) -> gleamgen@expression:expression(fun((LAQ, LAR, LAS, LAT, LAU, LAV, LAW, LAX, LAY) -> gleamgen@type_@custom:custom_type(LAP, LBI))). to_expression9(Constructor) -> to_expression_dynamic(Constructor). -file("src/gleamgen/expression/constructor.gleam", 154). -spec name(constructor(any(), any(), any())) -> binary(). name(Constructor) -> gleamgen@type_@variant:get_name(erlang:element(3, Constructor)). -file("src/gleamgen/expression/constructor.gleam", 158). -spec unsafe_convert(constructor(LCD, any(), any())) -> constructor(LCD, any(), any()). unsafe_convert(Constructor) -> {constructor, erlang:element(2, Constructor), erlang:element(3, Constructor)}.