Search in sources :

Example 1 with BLangStringTemplateLiteral

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

the class BLangPackageBuilder method createStringTemplateLiteral.

public void createStringTemplateLiteral(DiagnosticPos pos, Set<Whitespace> ws, Stack<String> precedingTextFragments, String endingText) {
    BLangStringTemplateLiteral stringTemplateLiteral = (BLangStringTemplateLiteral) TreeBuilder.createStringTemplateLiteralNode();
    stringTemplateLiteral.exprs = getExpressionsInTemplate(pos, null, precedingTextFragments, endingText, NodeKind.LITERAL);
    stringTemplateLiteral.addWS(ws);
    stringTemplateLiteral.pos = pos;
    addExpressionNode(stringTemplateLiteral);
}
Also used : BLangStringTemplateLiteral(org.wso2.ballerinalang.compiler.tree.expressions.BLangStringTemplateLiteral)

Aggregations

BLangStringTemplateLiteral (org.wso2.ballerinalang.compiler.tree.expressions.BLangStringTemplateLiteral)1