@@ -1454,7 +1454,7 @@ defineShape<ts.ImportAttribute>(SK.ImportAttribute, {
14541454// Constructor-derived fields (`consts`):
14551455defineShape < ts . TypeParameterDeclaration > ( SK . TypeParameter , {
14561456 type : 'TSTypeParameter' ,
1457- consts : ( tn ) => ( {
1457+ consts : tn => ( {
14581458 const : ! ! tn . modifiers ?. some ( m => m . kind === SK . ConstKeyword ) ,
14591459 in : ! ! tn . modifiers ?. some ( m => m . kind === SK . InKeyword ) ,
14601460 out : ! ! tn . modifiers ?. some ( m => m . kind === SK . OutKeyword ) ,
@@ -1467,7 +1467,7 @@ defineShape<ts.TypeParameterDeclaration>(SK.TypeParameter, {
14671467} ) ;
14681468defineShape < ts . YieldExpression > ( SK . YieldExpression , {
14691469 type : 'YieldExpression' ,
1470- consts : ( tn ) => ( { delegate : ! ! tn . asteriskToken } ) ,
1470+ consts : tn => ( { delegate : ! ! tn . asteriskToken } ) ,
14711471 slots : { argument : { tsField : 'expression' } } ,
14721472} ) ;
14731473// Pure mechanical with `defaults`:
@@ -1525,7 +1525,7 @@ defineShape<ts.TypeReferenceNode>(SK.TypeReference, {
15251525} ) ;
15261526defineShape < ts . ConstructorTypeNode > ( SK . ConstructorType , {
15271527 type : 'TSConstructorType' ,
1528- consts : ( tn ) => ( {
1528+ consts : tn => ( {
15291529 abstract : ! ! tn . modifiers ?. some ( m => m . kind === SK . AbstractKeyword ) ,
15301530 } ) ,
15311531 slots : {
@@ -1536,7 +1536,7 @@ defineShape<ts.ConstructorTypeNode>(SK.ConstructorType, {
15361536} ) ;
15371537defineShape < ts . ModuleDeclaration > ( SK . ModuleDeclaration , {
15381538 type : 'TSModuleDeclaration' ,
1539- consts : ( tn ) => ( {
1539+ consts : tn => ( {
15401540 declare : ! ! tn . modifiers ?. some ( m => m . kind === SK . DeclareKeyword ) ,
15411541 global : ! ! ( tn . flags & ts . NodeFlags . GlobalAugmentation ) ,
15421542 kind : tn . flags & ts . NodeFlags . Namespace ? 'namespace' : 'module' ,
@@ -1548,7 +1548,7 @@ defineShape<ts.ModuleDeclaration>(SK.ModuleDeclaration, {
15481548} ) ;
15491549defineShape < ts . EnumMember > ( SK . EnumMember , {
15501550 type : 'TSEnumMember' ,
1551- consts : ( tn ) => ( {
1551+ consts : tn => ( {
15521552 computed : tn . name . kind === SK . ComputedPropertyName ,
15531553 } ) ,
15541554 slots : {
@@ -1558,7 +1558,7 @@ defineShape<ts.EnumMember>(SK.EnumMember, {
15581558} ) ;
15591559defineShape < ts . TypeAliasDeclaration > ( SK . TypeAliasDeclaration , {
15601560 type : 'TSTypeAliasDeclaration' ,
1561- consts : ( tn ) => ( {
1561+ consts : tn => ( {
15621562 declare : ! ! tn . modifiers ?. some ( m => m . kind === SK . DeclareKeyword ) ,
15631563 } ) ,
15641564 slots : {
@@ -1569,7 +1569,7 @@ defineShape<ts.TypeAliasDeclaration>(SK.TypeAliasDeclaration, {
15691569} ) ;
15701570defineShape < ts . ImportEqualsDeclaration > ( SK . ImportEqualsDeclaration , {
15711571 type : 'TSImportEqualsDeclaration' ,
1572- consts : ( tn ) => ( {
1572+ consts : tn => ( {
15731573 importKind : tn . isTypeOnly ? 'type' : 'value' ,
15741574 } ) ,
15751575 slots : {
@@ -1580,7 +1580,7 @@ defineShape<ts.ImportEqualsDeclaration>(SK.ImportEqualsDeclaration, {
15801580defineShape < ts . IndexSignatureDeclaration > ( SK . IndexSignature , {
15811581 type : 'TSIndexSignature' ,
15821582 defaults : { accessibility : undefined } ,
1583- consts : ( tn ) => ( {
1583+ consts : tn => ( {
15841584 readonly : ! ! tn . modifiers ?. some ( m => m . kind === SK . ReadonlyKeyword ) ,
15851585 static : ! ! tn . modifiers ?. some ( m => m . kind === SK . StaticKeyword ) ,
15861586 } ) ,
@@ -1592,7 +1592,7 @@ defineShape<ts.IndexSignatureDeclaration>(SK.IndexSignature, {
15921592defineShape < ts . PropertyAssignment > ( SK . PropertyAssignment , {
15931593 type : 'Property' ,
15941594 defaults : { kind : 'init' , method : false , optional : false , shorthand : false } ,
1595- consts : ( tn ) => ( {
1595+ consts : tn => ( {
15961596 computed : tn . name . kind === SK . ComputedPropertyName ,
15971597 } ) ,
15981598 slots : {
0 commit comments