We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95bcea2 commit 0004405Copy full SHA for 0004405
src/ast-types.ts
@@ -13,23 +13,13 @@ export interface Location {
13
end: Position
14
}
15
16
-export interface BaseComment {
+export interface Comment {
17
type: 'BlockComment' | 'LineComment'
18
value: string
19
range?: [number, number]
20
loc?: Location
21
22
23
-export interface BlockComment extends BaseComment {
24
- type: 'BlockComment'
25
-}
26
-
27
-export interface LineComment extends BaseComment {
28
- type: 'LineComment'
29
30
31
-export type Comment = BlockComment | LineComment
32
33
export interface BaseASTNode {
34
type: ASTNodeTypeString
35
comments?: Comment[]
0 commit comments