UNPKG

@prisma/language-server

Version:
24 lines 642 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DiagnosticMap = void 0; class DiagnosticMap { constructor(uris) { this._map = new Map(); for (const uri of uris) { this._map.set(uri, []); } } add(fileUri, diagnostic) { const entry = this._map.get(fileUri) ?? []; this._map.set(fileUri, entry); entry.push(diagnostic); } get(fileUri) { return this._map.get(fileUri) ?? []; } entries() { return this._map.entries(); } } exports.DiagnosticMap = DiagnosticMap; //# sourceMappingURL=DiagnosticMap.js.map