mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-29 01:23:57 +01:00
[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:
1 parent
94cc5187dd
commit
c7a43a2e9f
1 file changed
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user