_analyzeContents(url, contents) {
        return __awaiter(this, void 0, void 0, function* () {
            this._overlayUrlLoader.urlContentsMap.set(url, contents);
            yield this.analyzer.filesChanged([url]);
            const analysis = yield this.analyzer.analyze([url]);
            return analyzer_utils_1.getAnalysisDocument(analysis, url);
        });
    }
/**
     * Analyze a url using the given contents in place of what would otherwise
     * have been loaded.
     */
Analyze a url using the given contents in place of what would otherwise
have been loaded.
Analyze a url using the given contents in place of what would otherwise have been loaded .
_analyzeContents(url, contents) {
        return __awaiter(this, void 0, void 0, function* () {
            this._overlayUrlLoader.urlContentsMap.set(url, contents);
            yield this.analyzer.filesChanged([url]);
            const analysis = yield this.analyzer.analyze([url]);
            return analyzer_utils_1.getAnalysisDocument(analysis, url);
        });
    }
_analyzeContents ( url , contents ) { return __awaiter ( this , void 0 , void 0 , function * ( ) { this . _overlayUrlLoader . urlContentsMap . set ( url , contents ) ; yield this . analyzer . filesChanged ( [ url ] ) ; const analysis = yield this . analyzer . analyze ( [ url ] ) ; return analyzer_utils_1 . getAnalysisDocument ( analysis , url ) ; } ) ; }
Analyze a url using the given contents in place of what would otherwise
 have been loaded.
Analyze a url using the given contents in place of what would otherwise have been loaded .