use of org.ballerinalang.model.tree.statements.VariableDefinitionNode in project ballerina by ballerina-lang.
the class BLangPackageBuilder method addServiceBody.
public void addServiceBody(Set<Whitespace> ws) {
ServiceNode serviceNode = serviceNodeStack.peek();
serviceNode.addWS(ws);
blockNodeStack.pop().getStatements().forEach(varDef -> serviceNode.addVariable((VariableDefinitionNode) varDef));
}
use of org.ballerinalang.model.tree.statements.VariableDefinitionNode in project ballerina by ballerina-lang.
the class BLangPackageBuilder method endConnectorBody.
public void endConnectorBody(Set<Whitespace> ws) {
ConnectorNode connectorNode = this.connectorNodeStack.peek();
connectorNode.addWS(ws);
this.blockNodeStack.pop().getStatements().forEach(e -> connectorNode.addVariableDef((VariableDefinitionNode) e));
this.actionNodeStack.pop().forEach(connectorNode::addAction);
}
Aggregations