[naga wgsl-in] Rename component_or_swizzle_specifier arg.

In `naga::front::wgsl::parse::Parser::component_or_swizzle_specifier`,
since `span_start` sounds like the start of a span, rename that
argument to `expr_start`, since it is the span of the start of the
expression that ends with the component or swizzle specifier.
This commit is contained in:
Jim Blandy authored and Teodor Tanasoaia committed 2026-01-28 12:00:35 +01:00
1 parent 94cc5187dd
commit c7a43a2e9f
1 file changed
+2 -2
+2 -2
View File
@@ -517,7 +517,7 @@ impl Parser {
fn component_or_swizzle_specifier<'a>(
&mut self,
span_start: Span,
expr_start: Span,
lexer: &mut Lexer<'a>,
ctx: &mut ExpressionContext<'a, '_, '_>,
expr: Handle<ast::Expression<'a>>,
@@ -542,7 +542,7 @@ impl Parser {
_ => break,
};
let span = lexer.span_with_start(span_start);
let span = lexer.span_with_start(expr_start);
expr = ctx.expressions.append(expression, span);
}