Search in sources :

Example 1 with XMLLiteralNode

use of org.ballerinalang.model.tree.expressions.XMLLiteralNode in project ballerina by ballerina-lang.

the class BLangPackageBuilder method addChildToXMLElement.

public void addChildToXMLElement(Set<Whitespace> ws) {
    XMLLiteralNode child = (XMLLiteralNode) exprNodeStack.pop();
    child.addWS(ws);
    BLangXMLElementLiteral parentXMLExpr = (BLangXMLElementLiteral) exprNodeStack.peek();
    parentXMLExpr.addChild(child);
}
Also used : BLangXMLElementLiteral(org.wso2.ballerinalang.compiler.tree.expressions.BLangXMLElementLiteral) XMLLiteralNode(org.ballerinalang.model.tree.expressions.XMLLiteralNode)

Aggregations

XMLLiteralNode (org.ballerinalang.model.tree.expressions.XMLLiteralNode)1 BLangXMLElementLiteral (org.wso2.ballerinalang.compiler.tree.expressions.BLangXMLElementLiteral)1