use of org.wso2.ballerinalang.compiler.semantics.model.types.BServiceType in project ballerina by ballerina-lang.
the class SymbolEnter method visit.
@Override
public void visit(BLangService serviceNode) {
BServiceSymbol serviceSymbol = Symbols.createServiceSymbol(Flags.asMask(serviceNode.flagSet), names.fromIdNode(serviceNode.name), env.enclPkg.symbol.pkgID, serviceNode.type, env.scope.owner);
serviceNode.symbol = serviceSymbol;
serviceNode.symbol.type = new BServiceType(serviceSymbol);
defineSymbol(serviceNode.pos, serviceSymbol);
}
Aggregations