@@ -51,7 +51,7 @@ export function gen_ast_slot_cc({ ast, output }: { ast: AST; output: string }) {
5151 by_base . forEach ( ( nodes ) => {
5252 nodes . forEach ( ( { name, members } ) => {
5353 const memberSlots = members . filter (
54- ( m ) => classifyMemberSlot ( m ) !== undefined
54+ ( m ) => classifyMemberSlot ( m ) !== undefined ,
5555 ) ;
5656
5757 emit ( ) ;
@@ -87,7 +87,7 @@ export function gen_ast_slot_cc({ ast, output }: { ast: AST; output: string }) {
8787 case MemberSlotClassification . IdentifierAttribute :
8888 emit ( ` case ${ slotCount } : // ${ m . name } ` ) ;
8989 emit (
90- ` value_ = reinterpret_cast<std::intptr_t>(ast->${ m . name } );`
90+ ` value_ = reinterpret_cast<std::intptr_t>(ast->${ m . name } );` ,
9191 ) ;
9292 emit ( ` slotKind_ = ASTSlotKind::kIdentifierAttribute;` ) ;
9393 emit ( ` slotNameIndex_ = SlotNameIndex{${ slotNameIndex } };` ) ;
@@ -96,7 +96,7 @@ export function gen_ast_slot_cc({ ast, output }: { ast: AST; output: string }) {
9696 case MemberSlotClassification . LiteralAttribute :
9797 emit ( ` case ${ slotCount } : // ${ m . name } ` ) ;
9898 emit (
99- ` value_ = reinterpret_cast<std::intptr_t>(ast->${ m . name } );`
99+ ` value_ = reinterpret_cast<std::intptr_t>(ast->${ m . name } );` ,
100100 ) ;
101101 emit ( ` slotKind_ = ASTSlotKind::kLiteralAttribute;` ) ;
102102 emit ( ` slotNameIndex_ = SlotNameIndex{${ slotNameIndex } };` ) ;
@@ -112,7 +112,7 @@ export function gen_ast_slot_cc({ ast, output }: { ast: AST; output: string }) {
112112 case MemberSlotClassification . Node :
113113 emit ( ` case ${ slotCount } : // ${ m . name } ` ) ;
114114 emit (
115- ` value_ = reinterpret_cast<std::intptr_t>(ast->${ m . name } );`
115+ ` value_ = reinterpret_cast<std::intptr_t>(ast->${ m . name } );` ,
116116 ) ;
117117 emit ( ` slotKind_ = ASTSlotKind::kNode;` ) ;
118118 emit ( ` slotNameIndex_ = SlotNameIndex{${ slotNameIndex } };` ) ;
@@ -121,7 +121,7 @@ export function gen_ast_slot_cc({ ast, output }: { ast: AST; output: string }) {
121121 case MemberSlotClassification . NodeList :
122122 emit ( ` case ${ slotCount } : // ${ m . name } ` ) ;
123123 emit (
124- ` value_ = reinterpret_cast<std::intptr_t>(ast->${ m . name } );`
124+ ` value_ = reinterpret_cast<std::intptr_t>(ast->${ m . name } );` ,
125125 ) ;
126126 emit ( ` slotKind_ = ASTSlotKind::kNodeList;` ) ;
127127 emit ( ` slotNameIndex_ = SlotNameIndex{${ slotNameIndex } };` ) ;
0 commit comments