Skip to content

Commit

Permalink
typo in function name
Browse files Browse the repository at this point in the history
  • Loading branch information
allansson committed Jan 15, 2025
1 parent 3c316ef commit 9ddeec1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/codegen/browser/intermediate/variables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { exhaustive } from '@/utils/typescript'
import { Expression, Statement, Scenario } from './ast'
import { IntermediateContext } from './context'

function subtituteExpression(
function substituteExpression(
node: Expression,
substitutions: Map<string, string>
): Expression {
Expand All @@ -22,14 +22,14 @@ function subtituteExpression(
case 'GotoExpression':
return {
type: 'GotoExpression',
target: subtituteExpression(node.target, substitutions),
url: subtituteExpression(node.url, substitutions),
target: substituteExpression(node.target, substitutions),
url: substituteExpression(node.url, substitutions),
}

case 'ReloadExpression':
return {
type: 'ReloadExpression',
target: subtituteExpression(node.target, substitutions),
target: substituteExpression(node.target, substitutions),
}

default:
Expand All @@ -47,13 +47,13 @@ function substituteStatement(
type: 'VariableDeclaration',
kind: node.kind,
name: substitutions.get(node.name) ?? node.name,
value: subtituteExpression(node.value, substitutions),
value: substituteExpression(node.value, substitutions),
}

case 'ExpressionStatement':
return {
type: 'ExpressionStatement',
expression: subtituteExpression(node.expression, substitutions),
expression: substituteExpression(node.expression, substitutions),
}

default:
Expand Down

0 comments on commit 9ddeec1

Please sign in to comment.