@Test public void testInvalidate() throws Exception { Path filePath = RES_DIR.resolve("source").resolve("singlepackage").resolve("io-sample.bal"); compileFileAndCheckCache(filePath); filePath = RES_DIR.resolve("source").resolve("multipackages").resolve("sample").resolve("main.bal"); compileFileAndCheckCache(filePath); }
public void invalidate(PackageID packageID) { packageCache.remove(packageID); }
LSPackageCache { public void invalidate(PackageID packageID) { packageCache.remove(packageID); } }
LSPackageCache { public void invalidate(PackageID packageID) { packageCache.remove(packageID); } private  LSPackageCache(CompilerContext context); }
LSPackageCache { public void invalidate(PackageID packageID) { packageCache.remove(packageID); } private  LSPackageCache(CompilerContext context); static LSPackageCache getInstance(CompilerContext context); BLangPackage get(PackageID pkgId); void invalidate(PackageID packageID); void clearCache(); void put(PackageID packageID, BLangPackage bLangPackage); ExtendedPackageCache getPackageCache(); Map<String, BLangPackage> getPackageMap(); }
LSPackageCache { public void invalidate(PackageID packageID) { packageCache.remove(packageID); } private  LSPackageCache(CompilerContext context); static LSPackageCache getInstance(CompilerContext context); BLangPackage get(PackageID pkgId); void invalidate(PackageID packageID); void clearCache(); void put(PackageID packageID, BLangPackage bLangPackage); ExtendedPackageCache getPackageCache(); Map<String, BLangPackage> getPackageMap();  }