You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When we create a rule with anonymous function inside or array indexing it produces the below error:
Transpiling... TypeError: Cannot read properties of undefined (reading 'isLeaf')
at IntermediateASTTree.traverse (file:///Users/elli/.nvm/versions/node/v16.19.1/lib/node_modules/@bitloops/bitloops-language-cli/node_modules/@bitloops/bl-transpiler/lib/esm/src/ast/core/intermediate-ast/IntermediateASTTree.js:74:25)
at DomainRuleNodeTSTransformer.lookForParameterUsedAsIdentifierExpression (file:///Users/elli/.nvm/versions/node/v16.19.1/lib/node_modules/@bitloops/bitloops-language-cli/node_modules/@bitloops/bl-transpiler/lib/esm/src/target/typescript-nest/ast/node-transformers/domainRule.js:63:19)
at DomainRuleNodeTSTransformer.createThisMemberDotExpressionAndReplaceIdentifierExpression (file:///Users/elli/.nvm/versions/node/v16.19.1/lib/node_modules/@bitloops/bitloops-language-cli/node_modules/@bitloops/bl-transpiler/lib/esm/src/target/typescript-nest/ast/node-transformers/domainRule.js:83:44)
at DomainRuleNodeTSTransformer.prependThisToAllParametersUsedAsStatements (file:///Users/elli/.nvm/versions/node/v16.19.1/lib/node_modules/@bitloops/bitloops-language-cli/node_modules/@bitloops/bl-transpiler/lib/esm/src/target/typescript-nest/ast/node-transformers/domainRule.js:31:22)
at DomainRuleNodeTSTransformer.run (file:///Users/elli/.nvm/versions/node/v16.19.1/lib/node_modules/@bitloops/bitloops-language-cli/node_modules/@bitloops/bl-transpiler/lib/esm/src/target/typescript-nest/ast/node-transformers/domainRule.js:15:14)
at file:///Users/elli/.nvm/versions/node/v16.19.1/lib/node_modules/@bitloops/bitloops-language-cli/node_modules/@bitloops/bl-transpiler/lib/esm/src/target/typescript-nest/ast/index.js:40:37
at IntermediateASTTree.traverse (file:///Users/elli/.nvm/versions/node/v16.19.1/lib/node_modules/@bitloops/bitloops-language-cli/node_modules/@bitloops/bl-transpiler/lib/esm/src/ast/core/intermediate-ast/IntermediateASTTree.js:77:9)
at IntermediateASTTree.traverse (file:///Users/elli/.nvm/versions/node/v16.19.1/lib/node_modules/@bitloops/bitloops-language-cli/node_modules/@bitloops/bl-transpiler/lib/esm/src/ast/core/intermediate-ast/IntermediateASTTree.js:80:18)
at IntermediateModelToASTTargetTransformer.transform (file:///Users/elli/.nvm/versions/node/v16.19.1/lib/node_modules/@bitloops/bitloops-language-cli/node_modules/@bitloops/bl-transpiler/lib/esm/src/target/typescript-nest/ast/index.js:34:29)
at TargetGenerator.generateCore (file:///Users/elli/.nvm/versions/node/v16.19.1/lib/node_modules/@bitloops/bitloops-language-cli/node_modules/@bitloops/bl-transpiler/lib/esm/src/target/index.js:19:72)
Describe the bug
When we create a rule with anonymous function inside or array indexing it produces the below error:
To Reproduce
create a rule like this:
or like this:
Expected behavior
It is expected to transpile successfully.
Screenshots
The text was updated successfully, but these errors were encountered: