Skip to content

Bad implementation of JsCgVariableConstructor #1812

Open
@rudolf101

Description

@rudolf101

Description
The JsCgVariableConstructor class was poorly designed and requires significant improvement. At the moment, the super.getOrCreateVariable(model, name) call is used, which can lead to unexpected errors if the source method is changed.

To Reproduce

Compare JsCgVariableConstructor vs PythonCgVariableConstructor vs CgVariableConstructor

Expected behavior

The class uses custom models, similar to how it is done in Python

Metadata

Metadata

Assignees

Labels

comp-codegenIssue is related to code generatorctg-enhancementNew feature, improvement or change requestlang-javascriptIssue is related to JavaScript support

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions