[macro] (template) fix Signal connect macro

This commit is contained in:
2020-09-25 15:15:11 +03:00
parent e5f8d7834a
commit f396c86a23

View File

@@ -127,7 +127,7 @@ class TemplateMacro extends ClassTypeMacro {
case ECall(_, _): macro function(_) ${e}; case ECall(_, _): macro function(_) ${e};
case _: e; case _: e;
} }
exprs.push(macro $p{[name, key.substr(1)]}.connect(${e})); exprs.push(macro $p{[name].concat(key.substr(1).split("."))}.connect(${e}));
case ["_", "_"]: case ["_", "_"]:
//exprs.push(Context.parse('${name}["${key.substr(1, key.length - 2)}"] = ${value}', getPosition(position))); //exprs.push(Context.parse('${name}["${key.substr(1, key.length - 2)}"] = ${value}', getPosition(position)));
exprs.push(Context.parse('${name}.set("${key.substr(1, key.length - 2)}", ${value})', getPosition(position))); exprs.push(Context.parse('${name}.set("${key.substr(1, key.length - 2)}", ${value})', getPosition(position)));