File tree Expand file tree Collapse file tree
src/slang-comments/handlers Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { NonterminalKind } from '@nomicfoundation/slang/cst' ;
22import { util } from 'prettier' ;
33import { 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
77import 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
You can’t perform that action at this time.
0 commit comments