@@ -60,7 +60,6 @@ function createConstructorDeclaration(className: string) {
6060
6161function createIdentifierDeclaration ( { identifier } : Capability ) {
6262 return ts . factory . createPropertyDeclaration (
63- undefined ,
6463 [
6564 ts . factory . createModifier ( ts . SyntaxKind . StaticKeyword ) ,
6665 ts . factory . createModifier ( ts . SyntaxKind . ReadonlyKeyword ) ,
@@ -86,7 +85,6 @@ function createIdentifierDeclaration({ identifier }: Capability) {
8685
8786function createNameDeclaration ( name : string ) {
8887 return ts . factory . createPropertyDeclaration (
89- undefined ,
9088 [
9189 ts . factory . createModifier ( ts . SyntaxKind . StaticKeyword ) ,
9290 ts . factory . createModifier ( ts . SyntaxKind . ReadonlyKeyword ) ,
@@ -100,7 +98,6 @@ function createNameDeclaration(name: string) {
10098
10199function createPropertiesDeclaration ( ) {
102100 return ts . factory . createPropertyDeclaration (
103- undefined ,
104101 [
105102 ts . factory . createModifier ( ts . SyntaxKind . StaticKeyword ) ,
106103 ts . factory . createModifier ( ts . SyntaxKind . ReadonlyKeyword ) ,
@@ -118,7 +115,6 @@ function createPropertiesEnumDeclaration(
118115 exportDeclaration = false ,
119116) {
120117 return ts . factory . createEnumDeclaration (
121- undefined ,
122118 exportDeclaration ? [ ts . factory . createModifier ( ts . SyntaxKind . ExportKeyword ) ] : undefined ,
123119 ts . factory . createIdentifier ( token ) ,
124120 properties
@@ -135,7 +131,6 @@ function createPropertiesEnumDeclaration(
135131
136132function createCapabilityClassDefinition ( className : string , capability : Capability ) {
137133 return ts . factory . createClassDeclaration (
138- undefined ,
139134 [ ts . factory . createModifier ( ts . SyntaxKind . ExportKeyword ) ] ,
140135 className ,
141136 undefined ,
@@ -163,7 +158,6 @@ function createCapabilityClassDefinition(className: string, capability: Capabili
163158
164159function createCapabilityClassTypeDefinition ( classNames : string [ ] ) {
165160 return ts . factory . createTypeAliasDeclaration (
166- undefined ,
167161 [ ts . factory . createModifier ( ts . SyntaxKind . ExportKeyword ) ] ,
168162 ts . factory . createIdentifier ( ClassTypeIdentifier ) ,
169163 undefined ,
0 commit comments