@@ -20,7 +20,7 @@ export interface RegistryEntry<T> {
2020}
2121
2222export class BaseRegistry < T > {
23- # implementations = new Map < string , RegistryEntry < T > > ( ) ;
23+ implementations = new Map < string , RegistryEntry < T > > ( ) ;
2424 readonly typeName : string ;
2525
2626 constructor ( typeName : string ) {
@@ -31,10 +31,10 @@ export class BaseRegistry<T> {
3131 * Register an implementation under a name.
3232 */
3333 register ( name : string , entry : RegistryEntry < T > ) : void {
34- this . # implementations. set ( name , entry ) ;
34+ this . implementations . set ( name , entry ) ;
3535 if ( entry . aliases ) {
3636 for ( const alias of entry . aliases ) {
37- this . # implementations. set ( alias , entry ) ;
37+ this . implementations . set ( alias , entry ) ;
3838 }
3939 }
4040 }
@@ -51,7 +51,7 @@ export class BaseRegistry<T> {
5151 const name = parts [ 0 ] ! ;
5252 const args = parts . slice ( 1 ) ;
5353
54- const entry = this . # implementations. get ( name ) ;
54+ const entry = this . implementations . get ( name ) ;
5555 if ( ! entry ) {
5656 throw new Error ( `Bad ${ this . typeName } : ${ name } ` ) ;
5757 }
@@ -71,14 +71,14 @@ export class BaseRegistry<T> {
7171 * Check if a name is registered.
7272 */
7373 has ( name : string ) : boolean {
74- return this . # implementations. has ( name ) ;
74+ return this . implementations . has ( name ) ;
7575 }
7676
7777 /**
7878 * Get an entry by name.
7979 */
8080 get ( name : string ) : RegistryEntry < T > | undefined {
81- return this . # implementations. get ( name ) ;
81+ return this . implementations . get ( name ) ;
8282 }
8383
8484 /**
@@ -89,9 +89,9 @@ export class BaseRegistry<T> {
8989 const entryToNames = new Map < RegistryEntry < T > , string [ ] > ( ) ;
9090 const entries : RegistryEntry < T > [ ] = [ ] ;
9191
92- const sortedNames = [ ...this . # implementations. keys ( ) ] . sort ( ) ;
92+ const sortedNames = [ ...this . implementations . keys ( ) ] . sort ( ) ;
9393 for ( const name of sortedNames ) {
94- const entry = this . # implementations. get ( name ) ! ;
94+ const entry = this . implementations . get ( name ) ! ;
9595 let names = entryToNames . get ( entry ) ;
9696 if ( ! names ) {
9797 names = [ ] ;
@@ -113,7 +113,7 @@ export class BaseRegistry<T> {
113113 * Get the detailed usage for a specific implementation.
114114 */
115115 showImplementation ( name : string ) : string {
116- const entry = this . # implementations. get ( name ) ;
116+ const entry = this . implementations . get ( name ) ;
117117 if ( ! entry ) {
118118 return `Bad ${ this . typeName } : ${ name } \n` ;
119119 }
@@ -124,6 +124,6 @@ export class BaseRegistry<T> {
124124 * Get all registered names.
125125 */
126126 names ( ) : string [ ] {
127- return [ ...this . # implementations. keys ( ) ] ;
127+ return [ ...this . implementations . keys ( ) ] ;
128128 }
129129}
0 commit comments