modules/ballerina-core/src/test/java/org/ballerinalang/core/utils/Connectors.java
public static void addNativeConnector(SymScope symScope, AbstractNativeConnector connector) {
        SymbolName symbolName = LangModelUtils.getConnectorSymName(
                connector.getClass().getAnnotation(BallerinaConnector.class).connectorName(),
                connector.getPackagePath());
        Symbol symbol = new Symbol(connector);
        symScope.insert(symbolName, symbol);
    }
/**
     * Add Native Connector instance to given SymScope.
     *
     * @param symScope  SymScope instance.
     * @param connector Connector instance.
     */
Add Native Connector instance to given SymScope.
@param symScope  SymScope instance.
@param connector Connector instance.
Add Native Connector instance to given SymScope . @param symScope SymScope instance . @param connector Connector instance .
public static void addNativeConnector(SymScope symScope, AbstractNativeConnector connector) {
        SymbolName symbolName = LangModelUtils.getConnectorSymName(
                connector.getClass().getAnnotation(BallerinaConnector.class).connectorName(),
                connector.getPackagePath());
        Symbol symbol = new Symbol(connector);
        symScope.insert(symbolName, symbol);
    }
public static void addNativeConnector ( SymScope symScope , AbstractNativeConnector connector ) { SymbolName symbolName = LangModelUtils . getConnectorSymName ( connector . getClass ( ) . getAnnotation ( BallerinaConnector . class ) . connectorName ( ) , connector . getPackagePath ( ) ) ; Symbol symbol = new Symbol ( connector ) ; symScope . insert ( symbolName , symbol ) ; }
Add Native Connector instance to given SymScope.
Add Native Connector instance to given SymScope .