mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-27 02:27:53 +01:00
We compile using the alwaysStrict flag so these directives are not needed. This part removes most of the remaining use strict directives that were not caught by part 1 and 2
21 lines
644 B
TypeScript
21 lines
644 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
export class IdGenerator {
|
|
|
|
private _prefix: string;
|
|
private _lastId: number;
|
|
|
|
constructor(prefix: string) {
|
|
this._prefix = prefix;
|
|
this._lastId = 0;
|
|
}
|
|
|
|
public nextId(): string {
|
|
return this._prefix + (++this._lastId);
|
|
}
|
|
}
|
|
|
|
export const defaultGenerator = new IdGenerator('id#'); |