"use strict"; /* -------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. * ------------------------------------------------------------------------------------------ */ Object.defineProperty(exports, "__esModule", { value: true }); const code = require("vscode"); class WorkspaceSymbol extends code.SymbolInformation { constructor(name, kind, containerName, locationOrUri, data) { const hasRange = !(locationOrUri instanceof code.Uri); super(name, kind, containerName, hasRange ? locationOrUri : new code.Location(locationOrUri, new code.Range(0, 0, 0, 0))); this.hasRange = hasRange; if (data !== undefined) { this.data = data; } } } exports.default = WorkspaceSymbol;