Search in sources :

Example 1 with BServiceType

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);
}
Also used : BServiceSymbol(org.wso2.ballerinalang.compiler.semantics.model.symbols.BServiceSymbol) BServiceType(org.wso2.ballerinalang.compiler.semantics.model.types.BServiceType)

Aggregations

BServiceSymbol (org.wso2.ballerinalang.compiler.semantics.model.symbols.BServiceSymbol)1 BServiceType (org.wso2.ballerinalang.compiler.semantics.model.types.BServiceType)1