mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
Convert const enums
This commit is contained in:
@@ -33,7 +33,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.EntryKind = void 0;
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
@@ -247,5 +246,5 @@ var EntryKind;
|
||||
EntryKind[EntryKind["StringLiteral"] = 2] = "StringLiteral";
|
||||
EntryKind[EntryKind["SearchedLocalFoundProperty"] = 3] = "SearchedLocalFoundProperty";
|
||||
EntryKind[EntryKind["SearchedPropertyFoundLocal"] = 4] = "SearchedPropertyFoundLocal";
|
||||
})(EntryKind || (exports.EntryKind = EntryKind = {}));
|
||||
})(EntryKind || (EntryKind = {}));
|
||||
//# sourceMappingURL=propertyInitOrderChecker.js.map
|
||||
@@ -272,7 +272,7 @@ type Definition =
|
||||
| { readonly type: DefinitionKind.TripleSlashReference; readonly reference: ts.FileReference; readonly file: ts.SourceFile };
|
||||
|
||||
/** @internal */
|
||||
export const enum EntryKind {
|
||||
enum EntryKind {
|
||||
Span,
|
||||
Node,
|
||||
StringLiteral,
|
||||
|
||||
@@ -3,7 +3,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ShakeLevel = void 0;
|
||||
exports.toStringShakeLevel = toStringShakeLevel;
|
||||
exports.shake = shake;
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
@@ -18,7 +17,7 @@ var ShakeLevel;
|
||||
ShakeLevel[ShakeLevel["Files"] = 0] = "Files";
|
||||
ShakeLevel[ShakeLevel["InnerFile"] = 1] = "InnerFile";
|
||||
ShakeLevel[ShakeLevel["ClassMembers"] = 2] = "ClassMembers";
|
||||
})(ShakeLevel || (exports.ShakeLevel = ShakeLevel = {}));
|
||||
})(ShakeLevel || (ShakeLevel = {}));
|
||||
function toStringShakeLevel(shakeLevel) {
|
||||
switch (shakeLevel) {
|
||||
case ShakeLevel.Files:
|
||||
|
||||
@@ -9,7 +9,7 @@ import type * as ts from 'typescript';
|
||||
|
||||
const TYPESCRIPT_LIB_FOLDER = path.dirname(require.resolve('typescript/lib/lib.d.ts'));
|
||||
|
||||
export const enum ShakeLevel {
|
||||
enum ShakeLevel {
|
||||
Files = 0,
|
||||
InnerFile = 1,
|
||||
ClassMembers = 2
|
||||
|
||||
Reference in New Issue
Block a user