Skip to content

Commit c803394

Browse files
committed
hotfix of multiple PRs merged at the same time
1 parent 7da4eaf commit c803394

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/slang-comments/handlers/handle-struct-comments.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { NonterminalKind } from '@nomicfoundation/slang/cst';
22
import { util } from 'prettier';
33
import { locEnd } from '../../slang-utils/loc.js';
4-
import addCollectionNodeFirstComment from './add-collection-node-first-comment.js';
5-
import addCollectionNodeLastComment from './add-collection-node-last-comment.js';
4+
import addCollectionFirstComment from './add-collection-first-comment.js';
5+
import addCollectionLastComment from './add-collection-last-comment.js';
66

77
import type { HandlerParams } from './types.d.ts';
88

@@ -26,12 +26,12 @@ export default function handleStructComments({
2626
precedingNode?.kind === NonterminalKind.StructMembers &&
2727
nextCharacter === '}'
2828
) {
29-
addCollectionNodeLastComment(precedingNode, comment);
29+
addCollectionLastComment(precedingNode, comment);
3030
return true;
3131
}
3232

3333
if (followingNode?.kind === NonterminalKind.StructMembers) {
34-
addCollectionNodeFirstComment(followingNode, comment);
34+
addCollectionFirstComment(followingNode, comment);
3535
return true;
3636
}
3737

0 commit comments

Comments
 (0)