Skip to content

Commit 469fc91

Browse files
committed
fix inheritance bug
1 parent 12b90f8 commit 469fc91

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

src/slang-comments/handlers/handle-positional-arguments-declaration-comments.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ export default function handlePositionalArgumentsDeclarationComments({
1010
followingNode,
1111
comment
1212
}: HandlerParams): boolean {
13-
if (comment.value.startsWith('// test')) {
14-
console.log(comment);
15-
}
1613
if (enclosingNode?.kind !== NonterminalKind.PositionalArgumentsDeclaration) {
1714
return false;
1815
}

src/slang-nodes/InterfaceDefinition.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class InterfaceDefinition implements SlangNode {
5454
return [
5555
group([
5656
`interface ${this.name}`,
57-
this.inheritance ? path.call(print, 'inheritance') : line,
57+
this.inheritance ? [' ', path.call(print, 'inheritance')] : line,
5858
'{'
5959
]),
6060
path.call(print, 'members'),

0 commit comments

Comments
 (0)