Skip to content

Commit

Permalink
style: small update
Browse files Browse the repository at this point in the history
  • Loading branch information
liuly0322 committed Apr 25, 2024
1 parent a6393a0 commit ea0f793
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/ast/nodes/shared/FunctionBase.ts
Expand Up @@ -79,8 +79,8 @@ export default abstract class FunctionBase extends NodeBase {
private deoptimizeParameterVariableValues() {
for (const parameter of this.params) {
if (parameter instanceof Identifier) {
const parameterVariable = parameter.variable as ParameterVariable | null;
parameterVariable?.markReassigned();
const parameterVariable = parameter.variable as ParameterVariable;
parameterVariable.markReassigned();
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/ast/variables/ParameterVariable.ts
Expand Up @@ -143,7 +143,7 @@ export default class ParameterVariable extends LocalVariable {
* The optimization can be undone by calling `markReassigned`.
* @returns the frozen value
*/
getKnownValue(): ExpressionEntity {
private getKnownValue(): ExpressionEntity {
if (this.frozenValue === null) {
this.frozenValue = this.knownValue || UNKNOWN_EXPRESSION;
}
Expand Down

0 comments on commit ea0f793

Please sign in to comment.