fix(ivy): convert context code into a tree-shakable instruction (#24943)
PR Close #24943
This commit is contained in:

committed by
Igor Minar

parent
fe14f180a6
commit
2ef777b0b2
@ -338,6 +338,8 @@ export class WriteVarExpr extends Expression {
|
||||
toDeclStmt(type?: Type|null, modifiers?: StmtModifier[]|null): DeclareVarStmt {
|
||||
return new DeclareVarStmt(this.name, this.value, type, modifiers, this.sourceSpan);
|
||||
}
|
||||
|
||||
toConstDecl(): DeclareVarStmt { return this.toDeclStmt(INFERRED_TYPE, [StmtModifier.Final]); }
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user