greybel-languageserver-core
Version:
Core functionality of language server for GreyScript
41 lines • 2.27 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getSymbolItemKind = exports.getCompletionItemKind = void 0;
const greybel_type_analyzer_1 = require("greybel-type-analyzer");
const CompletionItemKindMapping = {
[]: 21,
[]: 21,
[]: 21,
[]: 21,
[]: 6,
[]: 6,
[]: 6,
[]: 3,
[]: 12,
[]: 12,
[]: 12,
[]: 12 // CompletionItemKind.Value
};
const getCompletionItemKind = (kind) => {
return CompletionItemKindMapping[kind] ?? 6; // CompletionItemKind.Variable
};
exports.getCompletionItemKind = getCompletionItemKind;
const SymbolItemKindMapping = {
[]: 14,
[]: 14,
[]: 14,
[]: 14,
[]: 13,
[]: 13,
[]: 13,
[]: 12,
[]: 18,
[]: 19,
[]: 13,
[]: 13 // SymbolKind.Variable
};
const getSymbolItemKind = (kind) => {
return SymbolItemKindMapping[kind] ?? 13; // SymbolKind.Variable
};
exports.getSymbolItemKind = getSymbolItemKind;
//# sourceMappingURL=kind.js.map