Skip to content

Commit

Permalink
修正xgen-前缀在node输出模式下的执行
Browse files Browse the repository at this point in the history
  • Loading branch information
entropy-cloud committed Nov 18, 2024
1 parent ea8b302 commit 64f1afa
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,11 @@ private List<GenNodeAttrExpression> genAttrExprs(boolean xplNs, XNode node, IXpl
return;


String oldName = name;
if (name.startsWith(XplConstants.NAMESPACE_XGEN_PREFIX))
name = name.substring(XplConstants.NAMESPACE_XGEN_PREFIX.length());

Expression expr = XplParseHelper.parseAttrTemplateExpr(node, name, cp, scope);
Expression expr = XplParseHelper.parseAttrTemplateExpr(node, oldName, cp, scope);
ret.add(GenNodeAttrExpression.valueOf(value.getLocation(), name, expr));
});
return ret;
Expand Down

0 comments on commit 64f1afa

Please sign in to comment.