imxc 0.6.11 → 0.6.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/init.js +1 -1
- package/dist/lowering.js +6 -0
- package/dist/templates/custom.js +1 -1
- package/dist/templates/hotreload.js +1 -1
- package/dist/templates/index.js +1 -1
- package/package.json +1 -1
package/dist/init.js
CHANGED
|
@@ -39,7 +39,7 @@ export function addToProject(projectDir) {
|
|
|
39
39
|
console.log(' include(FetchContent)');
|
|
40
40
|
console.log(' FetchContent_Declare(imx');
|
|
41
41
|
console.log(' GIT_REPOSITORY https://github.com/bgocumlu/imx.git');
|
|
42
|
-
console.log(' GIT_TAG v0.6.
|
|
42
|
+
console.log(' GIT_TAG v0.6.12');
|
|
43
43
|
console.log(' )');
|
|
44
44
|
console.log(' FetchContent_MakeAvailable(imx)');
|
|
45
45
|
console.log(' include(ImxCompile)');
|
package/dist/lowering.js
CHANGED
|
@@ -248,6 +248,12 @@ export function exprToCpp(node, ctx) {
|
|
|
248
248
|
return `${obj}.size()`;
|
|
249
249
|
return `${obj}.${prop}`;
|
|
250
250
|
}
|
|
251
|
+
// Element access (e.g., items[0], props.items[i])
|
|
252
|
+
if (ts.isElementAccessExpression(node)) {
|
|
253
|
+
const obj = exprToCpp(node.expression, ctx);
|
|
254
|
+
const arg = node.argumentExpression ? exprToCpp(node.argumentExpression, ctx) : '';
|
|
255
|
+
return `${obj}[${arg}]`;
|
|
256
|
+
}
|
|
251
257
|
// Parenthesized expression
|
|
252
258
|
if (ts.isParenthesizedExpression(node)) {
|
|
253
259
|
return `(${exprToCpp(node.expression, ctx)})`;
|
package/dist/templates/custom.js
CHANGED
package/dist/templates/index.js
CHANGED