@@ -7181,18 +7181,18 @@ impl<'a> AstBuilder<'a> {
71817181 ///
71827182 /// ## Parameters
71837183 /// * `span`: The [`Span`] covering this node
7184- /// * `exported`
7184+ /// * `default_span`: Span of the `default` keyword
71857185 /// * `declaration`
71867186 #[ inline]
71877187 pub fn module_declaration_export_default_declaration (
71887188 self ,
71897189 span : Span ,
7190- exported : ModuleExportName < ' a > ,
7190+ default_span : Span ,
71917191 declaration : ExportDefaultDeclarationKind < ' a > ,
71927192 ) -> ModuleDeclaration < ' a > {
71937193 ModuleDeclaration :: ExportDefaultDeclaration ( self . alloc_export_default_declaration (
71947194 span,
7195- exported ,
7195+ default_span ,
71967196 declaration,
71977197 ) )
71987198 }
@@ -7839,16 +7839,16 @@ impl<'a> AstBuilder<'a> {
78397839 ///
78407840 /// ## Parameters
78417841 /// * `span`: The [`Span`] covering this node
7842- /// * `exported`
7842+ /// * `default_span`: Span of the `default` keyword
78437843 /// * `declaration`
78447844 #[ inline]
78457845 pub fn export_default_declaration (
78467846 self ,
78477847 span : Span ,
7848- exported : ModuleExportName < ' a > ,
7848+ default_span : Span ,
78497849 declaration : ExportDefaultDeclarationKind < ' a > ,
78507850 ) -> ExportDefaultDeclaration < ' a > {
7851- ExportDefaultDeclaration { span, exported , declaration }
7851+ ExportDefaultDeclaration { span, default_span , declaration }
78527852 }
78537853
78547854 /// Build an [`ExportDefaultDeclaration`], and store it in the memory arena.
@@ -7858,16 +7858,19 @@ impl<'a> AstBuilder<'a> {
78587858 ///
78597859 /// ## Parameters
78607860 /// * `span`: The [`Span`] covering this node
7861- /// * `exported`
7861+ /// * `default_span`: Span of the `default` keyword
78627862 /// * `declaration`
78637863 #[ inline]
78647864 pub fn alloc_export_default_declaration (
78657865 self ,
78667866 span : Span ,
7867- exported : ModuleExportName < ' a > ,
7867+ default_span : Span ,
78687868 declaration : ExportDefaultDeclarationKind < ' a > ,
78697869 ) -> Box < ' a , ExportDefaultDeclaration < ' a > > {
7870- Box :: new_in ( self . export_default_declaration ( span, exported, declaration) , self . allocator )
7870+ Box :: new_in (
7871+ self . export_default_declaration ( span, default_span, declaration) ,
7872+ self . allocator ,
7873+ )
78717874 }
78727875
78737876 /// Build an [`ExportAllDeclaration`].
0 commit comments