Skip to content

Commit

Permalink
设置了xdef:ref的节点缺省xdef:support-extends=true
Browse files Browse the repository at this point in the history
  • Loading branch information
entropy-cloud committed Jan 21, 2025
1 parent 80b7ba9 commit cf2a7b3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,10 @@ private XDefNode parseNode(XDefNode defNode, XNode node, boolean root, String be

if (value != null && value.isSupportBody() && supportExtends == null)
supportExtends = true;

if (ref != null && supportExtends == null)
supportExtends = true;

defNode.setXdefSupportExtends(supportExtends);

boolean refResolved = node.attrBoolean(keys.REF_RESOLVED);
Expand Down

0 comments on commit cf2a7b3

Please sign in to comment.