Search in sources :

Example 11 with BLangXMLElementLiteral

use of org.wso2.ballerinalang.compiler.tree.expressions.BLangXMLElementLiteral 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

BLangExpression (org.wso2.ballerinalang.compiler.tree.expressions.BLangExpression)7 SymbolEnv (org.wso2.ballerinalang.compiler.semantics.model.SymbolEnv)4 BLangXMLElementLiteral (org.wso2.ballerinalang.compiler.tree.expressions.BLangXMLElementLiteral)4 BLangXMLQName (org.wso2.ballerinalang.compiler.tree.expressions.BLangXMLQName)3 RegIndex (org.wso2.ballerinalang.programfile.Instruction.RegIndex)3 BLangXMLAttribute (org.wso2.ballerinalang.compiler.tree.expressions.BLangXMLAttribute)2 XMLLiteralNode (org.ballerinalang.model.tree.expressions.XMLLiteralNode)1 BXMLNSSymbol (org.wso2.ballerinalang.compiler.semantics.model.symbols.BXMLNSSymbol)1 BLangLocalXMLNS (org.wso2.ballerinalang.compiler.tree.BLangXMLNS.BLangLocalXMLNS)1 Name (org.wso2.ballerinalang.compiler.util.Name)1