Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

feat: Support extends constraints on infer type #4018

Merged
Merged
2 changes: 1 addition & 1 deletion crates/rome_js_factory/src/generated/node_factory.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/rome_js_factory/src/generated/syntax_factory.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 28 additions & 28 deletions crates/rome_js_formatter/src/generated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8027,41 +8027,37 @@ impl IntoFormat<JsFormatContext> for rome_js_syntax::TsEmptyExternalModuleDeclar
FormatOwnedWithRule :: new (self , crate :: ts :: auxiliary :: empty_external_module_declaration_body :: FormatTsEmptyExternalModuleDeclarationBody :: default ())
}
}
impl FormatRule<rome_js_syntax::TsTypeParameterName>
for crate::ts::auxiliary::type_parameter_name::FormatTsTypeParameterName
impl FormatRule<rome_js_syntax::TsTypeParameter>
for crate::ts::bindings::type_parameter::FormatTsTypeParameter
{
type Context = JsFormatContext;
#[inline(always)]
fn fmt(
&self,
node: &rome_js_syntax::TsTypeParameterName,
f: &mut JsFormatter,
) -> FormatResult<()> {
FormatNodeRule::<rome_js_syntax::TsTypeParameterName>::fmt(self, node, f)
fn fmt(&self, node: &rome_js_syntax::TsTypeParameter, f: &mut JsFormatter) -> FormatResult<()> {
FormatNodeRule::<rome_js_syntax::TsTypeParameter>::fmt(self, node, f)
}
}
impl AsFormat<JsFormatContext> for rome_js_syntax::TsTypeParameterName {
impl AsFormat<JsFormatContext> for rome_js_syntax::TsTypeParameter {
type Format<'a> = FormatRefWithRule<
'a,
rome_js_syntax::TsTypeParameterName,
crate::ts::auxiliary::type_parameter_name::FormatTsTypeParameterName,
rome_js_syntax::TsTypeParameter,
crate::ts::bindings::type_parameter::FormatTsTypeParameter,
>;
fn format(&self) -> Self::Format<'_> {
FormatRefWithRule::new(
self,
crate::ts::auxiliary::type_parameter_name::FormatTsTypeParameterName::default(),
crate::ts::bindings::type_parameter::FormatTsTypeParameter::default(),
)
}
}
impl IntoFormat<JsFormatContext> for rome_js_syntax::TsTypeParameterName {
impl IntoFormat<JsFormatContext> for rome_js_syntax::TsTypeParameter {
type Format = FormatOwnedWithRule<
rome_js_syntax::TsTypeParameterName,
crate::ts::auxiliary::type_parameter_name::FormatTsTypeParameterName,
rome_js_syntax::TsTypeParameter,
crate::ts::bindings::type_parameter::FormatTsTypeParameter,
>;
fn into_format(self) -> Self::Format {
FormatOwnedWithRule::new(
self,
crate::ts::auxiliary::type_parameter_name::FormatTsTypeParameterName::default(),
crate::ts::bindings::type_parameter::FormatTsTypeParameter::default(),
)
}
}
Expand Down Expand Up @@ -8179,37 +8175,41 @@ impl IntoFormat<JsFormatContext> for rome_js_syntax::TsAssertsCondition {
)
}
}
impl FormatRule<rome_js_syntax::TsTypeParameter>
for crate::ts::bindings::type_parameter::FormatTsTypeParameter
impl FormatRule<rome_js_syntax::TsTypeParameterName>
for crate::ts::auxiliary::type_parameter_name::FormatTsTypeParameterName
{
type Context = JsFormatContext;
#[inline(always)]
fn fmt(&self, node: &rome_js_syntax::TsTypeParameter, f: &mut JsFormatter) -> FormatResult<()> {
FormatNodeRule::<rome_js_syntax::TsTypeParameter>::fmt(self, node, f)
fn fmt(
&self,
node: &rome_js_syntax::TsTypeParameterName,
f: &mut JsFormatter,
) -> FormatResult<()> {
FormatNodeRule::<rome_js_syntax::TsTypeParameterName>::fmt(self, node, f)
}
}
impl AsFormat<JsFormatContext> for rome_js_syntax::TsTypeParameter {
impl AsFormat<JsFormatContext> for rome_js_syntax::TsTypeParameterName {
type Format<'a> = FormatRefWithRule<
'a,
rome_js_syntax::TsTypeParameter,
crate::ts::bindings::type_parameter::FormatTsTypeParameter,
rome_js_syntax::TsTypeParameterName,
crate::ts::auxiliary::type_parameter_name::FormatTsTypeParameterName,
>;
fn format(&self) -> Self::Format<'_> {
FormatRefWithRule::new(
self,
crate::ts::bindings::type_parameter::FormatTsTypeParameter::default(),
crate::ts::auxiliary::type_parameter_name::FormatTsTypeParameterName::default(),
)
}
}
impl IntoFormat<JsFormatContext> for rome_js_syntax::TsTypeParameter {
impl IntoFormat<JsFormatContext> for rome_js_syntax::TsTypeParameterName {
type Format = FormatOwnedWithRule<
rome_js_syntax::TsTypeParameter,
crate::ts::bindings::type_parameter::FormatTsTypeParameter,
rome_js_syntax::TsTypeParameterName,
crate::ts::auxiliary::type_parameter_name::FormatTsTypeParameterName,
>;
fn into_format(self) -> Self::Format {
FormatOwnedWithRule::new(
self,
crate::ts::bindings::type_parameter::FormatTsTypeParameter::default(),
crate::ts::auxiliary::type_parameter_name::FormatTsTypeParameterName::default(),
)
}
}
Expand Down

This file was deleted.

Loading