• Home
  • Raw
  • Download

Lines Matching refs:resource

669   resourceToFile: {[resource: string]: Set<string>} = {}; // Resource is used by which file
684 resourceToFileCacheInfo: {[resource: string]: Set<string>}) {
736 …const resourceToFile: {[resource: string]: Set<string> | string[]} = Object.assign(resourceToFileC…
739 for (const resource of this.wholeFileInfo[id].newFileToResourceList) { constant
740 if (!(fileCacheInfo[id].fileToResourceList as Set<string>).has(resource)) {
741 if (!resourceToFile[resource]) {
742 resourceToFile[resource] = new Set();
744 (resourceToFile[resource] as Set<string>).add(id);
747 for (const resource of fileCacheInfo[id].fileToResourceList) { constant
748 if (!this.wholeFileInfo[id].newFileToResourceList.has(resource)) {
749 (resourceToFile[resource] as Set<string>).delete(id);
757 this.resourceToFile = resourceToFile as {[resource: string]: Set<string>};
758 for (const resource in resourceToFile) { constant
759 resourceToFile[resource] = [...resourceToFile[resource]];
773 updateResourceList(resource: string) {
774 this.resourceList.add(resource);
779 for (const resource of this.lastResourceList) { constant
780 if (!this.resourceList.has(resource) && this.resourceToFile[resource]) {
781 this.resourceToFile[resource].forEach(file => {
787 for (const resource of this.resourceList) { constant
788 if (!this.resourceToFile[resource]) {
789 this.resourceToFile[resource] = new Set();
791 if (!this.lastResourceList.has(resource)) {
792 this.resourceToFile[resource].forEach(file => {
799 collectResourceInFile(resource: string, file: string) {
800 this.wholeFileInfo[file].newFileToResourceList.add(resource);