Lines Matching refs:resource
711 resourceToFile: { [resource: string]: Set<string> } = {}; // Resource is used by which file
738 resourceToFileCacheInfo: { [resource: string]: Set<string> }) {
790 …const resourceToFile: { [resource: string]: Set<string> | string[] } = Object.assign(resourceToFil…
793 for (const resource of this.wholeFileInfo[id].newFileToResourceList) { constant
794 if (!(fileCacheInfo[id].fileToResourceList as Set<string>).has(resource)) {
795 if (!resourceToFile[resource]) {
796 resourceToFile[resource] = new Set();
798 (resourceToFile[resource] as Set<string>).add(id);
801 for (const resource of fileCacheInfo[id].fileToResourceList) { constant
802 if (!this.wholeFileInfo[id].newFileToResourceList.has(resource)) {
803 (resourceToFile[resource] as Set<string>).delete(id);
811 this.resourceToFile = resourceToFile as { [resource: string]: Set<string> };
812 for (const resource in resourceToFile) { constant
813 resourceToFile[resource] = [...resourceToFile[resource]];
827 updateResourceList(resource: string) {
828 this.resourceList.add(resource);
833 for (const resource of this.lastResourceList) { constant
834 if (!this.resourceList.has(resource) && this.resourceToFile[resource]) {
835 this.resourceToFile[resource].forEach(file => {
841 for (const resource of this.resourceList) { constant
842 if (!this.resourceToFile[resource]) {
843 this.resourceToFile[resource] = new Set();
845 if (!this.lastResourceList.has(resource)) {
846 this.resourceToFile[resource].forEach(file => {
853 collectResourceInFile(resource: string, file: string) {
854 this.wholeFileInfo[file].newFileToResourceList.add(resource);