File tree Expand file tree Collapse file tree
compiler/packages/babel-plugin-react-compiler/src/Entrypoint Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments