use of org.wso2.ballerinalang.compiler.tree.expressions.BLangTypeCastExpr in project ballerina by ballerina-lang.
the class BLangPackageBuilder method createTypeCastExpr.
public void createTypeCastExpr(DiagnosticPos pos, Set<Whitespace> ws) {
BLangTypeCastExpr typeCastNode = (BLangTypeCastExpr) TreeBuilder.createTypeCastNode();
typeCastNode.pos = pos;
typeCastNode.addWS(ws);
typeCastNode.expr = (BLangExpression) exprNodeStack.pop();
typeCastNode.typeNode = (BLangType) typeNodeStack.pop();
addExpressionNode(typeCastNode);
}
Aggregations