diff --git a/src/protocol/lexer.rs b/src/protocol/lexer.rs index 29ed1c92942d206de98b701953917367d665bd00..9642d69a11378626d2dfacc5f3bb509327c77541 100644 --- a/src/protocol/lexer.rs +++ b/src/protocol/lexer.rs @@ -2378,7 +2378,7 @@ impl Lexer<'_> { // Parse body let body = self.consume_block_statement(h)?; - Ok(h.alloc_component(|this| Component { + Ok(h.alloc_component(|this| ComponentDefinition { this, variant: ComponentVariant::Composite, position, @@ -2404,7 +2404,7 @@ impl Lexer<'_> { // Consume body let body = self.consume_block_statement(h)?; - Ok(h.alloc_component(|this| Component { + Ok(h.alloc_component(|this| ComponentDefinition { this, variant: ComponentVariant::Primitive, position, @@ -2430,7 +2430,7 @@ impl Lexer<'_> { // Consume body let body = self.consume_block_statement(h)?; - Ok(h.alloc_function(|this| Function { + Ok(h.alloc_function(|this| FunctionDefinition { this, position, return_type,