[ez] Fix comments to be star blocks
ghstack-source-id: 6a9e844a3ba548d3bf2b7373dc023ad42c2e719b Pull Request resolved: https://github.com/facebook/react-forget/pull/2826
Lauren Tan committed
Apr 8, 2024 at 10:55 UTC
9a6cb241504027688c166f7fedba8bd443cb9639
1 file changed
+18
-6
compiler/packages/babel-plugin-react-forget/src/CompilerError.ts
+18
-6
@@ -9,17 +9,29 @@ import type { SourceLocation } from "./HIR";
9
import { assertExhaustive } from "./Utils/utils";
10
11
export enum ErrorSeverity {
12
- // Invalid JS syntax, or valid syntax that is semantically invalid which may indicate some misunderstanding on the user’s part.
12
+ /**
13
+ * Invalid JS syntax, or valid syntax that is semantically invalid which may indicate some
14
+ * misunderstanding on the user’s part.
15
+ */
16
InvalidJS = "InvalidJS",
14
- // Code that breaks the rules of React.
17
+ /**
18
+ * Code that breaks the rules of React.
19
+ */
20
InvalidReact = "InvalidReact",
16
- // Incorrect configuration of the compiler.
21
+ /**
22
+ * Incorrect configuration of the compiler.
23
+ */
24
InvalidConfig = "InvalidConfig",
18
- // Code that can reasonably occur and that doesn't break any rules, but is unsafe to perserve memoization.
25
+ /**
26
+ * Code that can reasonably occur and that doesn't break any rules, but is unsafe to perserve
27
+ * memoization.
28
+ */
29
CannotPreserveMemoization = "CannotPreserveMemoization",
20
- // Unhandled syntax that we don't support yet.
30
+ /**
31
+ * Unhandled syntax that we don't support yet.
32
+ */
33
Todo = "Todo",
22
- /*
34
+ /**
35
* An unexpected internal error in the compiler that indicates critical issues that can panic
36
* the compiler.
37
*/