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