JS: Allow arbitrary comments in ConsistencyChecking

Because line comments cannot be used inside JSX elements
This commit is contained in:
Asger F
2024-12-04 13:53:56 +01:00
parent 712c69ebc8
commit e2b2d1c9ab

View File

@@ -46,10 +46,10 @@ deprecated final private class Conf extends string {
}
/**
* A line-comment that asserts whether a result exists at that line or not.
* A comment that asserts whether a result exists at that line or not.
* Can optionally include `[INCONSISTENCY]` to indicate that a consistency issue is expected at the location
*/
private class AssertionComment extends LineComment {
private class AssertionComment extends Comment {
boolean shouldHaveAlert;
AssertionComment() {