Skip to content

Commit 0004405

Browse files
Jantherfvictorio
andcommitted
Update src/ast-types.ts
Co-authored-by: Franco Victorio <victorio.franco@gmail.com>
1 parent 95bcea2 commit 0004405

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/ast-types.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,13 @@ export interface Location {
1313
end: Position
1414
}
1515

16-
export interface BaseComment {
16+
export interface Comment {
1717
type: 'BlockComment' | 'LineComment'
1818
value: string
1919
range?: [number, number]
2020
loc?: Location
2121
}
2222

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-
3323
export interface BaseASTNode {
3424
type: ASTNodeTypeString
3525
comments?: Comment[]

0 commit comments

Comments
 (0)