@samitouri / QOS-React-2 / commits / e877f89dda

Allow comment annotation to be spaced

I.e. `/* readonly */` is fine too commit-id:1437395a

Xuan Huang (黄玄) committed Oct 5, 2022 at 13:30 UTC e877f89ddaa47613730c1e340419f8c4dea17687
1 file changed +1 -1
compiler/forget/src/MiddleEnd/RefKindInfer.ts
+1 -1
@@ -195,7 +195,7 @@ function refineUses(
195 function hasLeadingComment(path: NodePath, annotation: string): boolean {
196 return (
197 path.node.leadingComments?.some(
198 - (comment) => comment.value === annotation
198 + (comment) => comment.value.trim() === annotation
199 ) ?? false
200 );
201 }