Search in sources :

Example 1 with BLangXMLTextLiteral

use of org.wso2.ballerinalang.compiler.tree.expressions.BLangXMLTextLiteral in project ballerina by ballerina-lang.

the class TypeChecker method getXMLTextLiteral.

private BLangExpression getXMLTextLiteral(BLangExpression contentExpr) {
    BLangXMLTextLiteral xmlTextLiteral = (BLangXMLTextLiteral) TreeBuilder.createXMLTextLiteralNode();
    xmlTextLiteral.concatExpr = contentExpr;
    xmlTextLiteral.pos = contentExpr.pos;
    return xmlTextLiteral;
}
Also used : BLangXMLTextLiteral(org.wso2.ballerinalang.compiler.tree.expressions.BLangXMLTextLiteral)

Example 2 with BLangXMLTextLiteral

use of org.wso2.ballerinalang.compiler.tree.expressions.BLangXMLTextLiteral in project ballerina by ballerina-lang.

the class BLangPackageBuilder method createXMLTextLiteral.

public void createXMLTextLiteral(DiagnosticPos pos, Set<Whitespace> ws, Stack<String> precedingTextFragments, String endingText) {
    BLangXMLTextLiteral xmlTextLiteral = (BLangXMLTextLiteral) TreeBuilder.createXMLTextLiteralNode();
    xmlTextLiteral.textFragments = getExpressionsInTemplate(pos, ws, precedingTextFragments, endingText, NodeKind.XML_TEXT_LITERAL);
    xmlTextLiteral.pos = pos;
    addExpressionNode(xmlTextLiteral);
}
Also used : BLangXMLTextLiteral(org.wso2.ballerinalang.compiler.tree.expressions.BLangXMLTextLiteral)

Aggregations

BLangXMLTextLiteral (org.wso2.ballerinalang.compiler.tree.expressions.BLangXMLTextLiteral)2