Skip to content

Commit

Permalink
[wgsl-in] Rename StatementContext::local_vars.
Browse files Browse the repository at this point in the history
Rename `front::wgsl::lower::StatementContext::variables` to
`local_vars`, to match the corresponding field of
`RuntimeExpressionContext`.
  • Loading branch information
jimblandy committed Oct 21, 2023
1 parent 19209b6 commit f557340
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/front/wgsl/lower/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ pub struct StatementContext<'source, 'temp, 'out> {

const_typifier: &'temp mut Typifier,
typifier: &'temp mut Typifier,
variables: &'out mut Arena<crate::LocalVariable>,
local_vars: &'out mut Arena<crate::LocalVariable>,
naga_expressions: &'out mut Arena<crate::Expression>,
/// Stores the names of expressions that are assigned in `let` statement
/// Also stores the spans of the names, for use in errors.
Expand Down Expand Up @@ -181,7 +181,7 @@ impl<'a, 'temp> StatementContext<'a, 'temp, '_> {
ast_expressions: self.ast_expressions,
const_typifier: self.const_typifier,
typifier: self.typifier,
variables: self.variables,
local_vars: self.local_vars,
naga_expressions: self.naga_expressions,
named_expressions: self.named_expressions,
arguments: self.arguments,
Expand All @@ -207,7 +207,7 @@ impl<'a, 'temp> StatementContext<'a, 'temp, '_> {
expr_type: ExpressionContextType::Runtime(RuntimeExpressionContext {
local_table: self.local_table,
naga_expressions: self.naga_expressions,
local_vars: self.variables,
local_vars: self.local_vars,
arguments: self.arguments,
typifier: self.typifier,
block,
Expand Down Expand Up @@ -1063,7 +1063,7 @@ impl<'source, 'temp> Lowerer<'source, 'temp> {
ast_expressions: ctx.ast_expressions,
const_typifier: ctx.const_typifier,
typifier: &mut typifier,
variables: &mut local_variables,
local_vars: &mut local_variables,
naga_expressions: &mut expressions,
named_expressions: &mut named_expressions,
types: ctx.types,
Expand Down Expand Up @@ -1243,7 +1243,7 @@ impl<'source, 'temp> Lowerer<'source, 'temp> {
}
};

let var = ctx.variables.append(
let var = ctx.local_vars.append(
crate::LocalVariable {
name: Some(v.name.name.to_string()),
ty,
Expand Down

0 comments on commit f557340

Please sign in to comment.