modules/ballerina-core/src/test/java/org/ballerinalang/core/utils/BTestUtils.java
public static BLangProgram parseBalFile(String sourceFilePath) {
        Path programPath = Paths.get(BTestUtils.class.getProtectionDomain().getCodeSource().getLocation().getPath());
        return new BLangProgramLoader().loadLibrary(programPath,
                Paths.get(sourceFilePath));
    }
/**
     * Get parsed, analyzed and linked Ballerina object model.
     *
     * @param sourceFilePath Path to Bal file.
     * @return BallerinaFile instance.
     */
Get parsed, analyzed and linked Ballerina object model.
@param sourceFilePath Path to Bal file.
Get parsed analyzed and linked Ballerina object model . @param sourceFilePath Path to Bal file .
public static BLangProgram parseBalFile(String sourceFilePath) {
        Path programPath = Paths.get(BTestUtils.class.getProtectionDomain().getCodeSource().getLocation().getPath());
        return new BLangProgramLoader().loadLibrary(programPath,
                Paths.get(sourceFilePath));
    }
public static BLangProgram parseBalFile ( String sourceFilePath ) { Path programPath = Paths . get ( BTestUtils . class . getProtectionDomain ( ) . getCodeSource ( ) . getLocation ( ) . getPath ( ) ) ; return new BLangProgramLoader ( ) . loadLibrary ( programPath , Paths . get ( sourceFilePath ) ) ; }
Get parsed, analyzed and linked Ballerina object model.
Get parsed analyzed and linked Ballerina object model .