Search in sources :

Example 1 with BLangTypeCastExpr

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);
}
Also used : BLangTypeCastExpr(org.wso2.ballerinalang.compiler.tree.expressions.BLangTypeCastExpr)

Aggregations

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