Skip to content

Commit af8e139

Browse files
committed
fix: convert consecutive line comments to block comment in Program.ts
1 parent 43407d4 commit af8e139

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

  • compiler/packages/babel-plugin-react-compiler/src/Entrypoint

compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Program.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,10 +1259,12 @@ function getFunctionReferencedBeforeDeclarationAtTopLevel(
12591259
path.skip();
12601260
},
12611261
TSDeclareFunction(path) {
1262-
// Skip TypeScript overload signatures (function declarations without a body)
1263-
// to avoid false positives in reference-before-declaration detection.
1264-
// TSDeclareFunction.id is treated as isReferencedIdentifier() by Babel,
1265-
// but these are not actual runtime references.
1262+
/*
1263+
* Skip TypeScript overload signatures (function declarations without a body)
1264+
* to avoid false positives in reference-before-declaration detection.
1265+
* TSDeclareFunction.id is treated as isReferencedIdentifier() by Babel,
1266+
* but these are not actual runtime references.
1267+
*/
12661268
path.skip();
12671269
},
12681270
Identifier(id) {

0 commit comments

Comments
 (0)