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;
}
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);
}
Aggregations