Skip to content

Commit 7c6601f

Browse files
committed
Removed code block trimming, since switching to *.d.ts as the input eliminates this problem
1 parent 040152d commit 7c6601f

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

‎apps/api-extractor/src/generators/PackageTypingsGenerator.ts‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -223,16 +223,6 @@ export default class PackageTypingsGenerator {
223223
private _modifySpan(rootSpan: Span, entry: Entry): void {
224224
rootSpan.modify((span: Span, previousSpan: Span | undefined, parentSpan: Span | undefined) => {
225225
switch (span.kind) {
226-
case ts.SyntaxKind.Block:
227-
// Replace code blocks with a semicolon
228-
span.modification.prefix = ';';
229-
span.modification.skipChildren = true;
230-
span.modification.suffix = span.getLastInnerSeparator();
231-
if (previousSpan) {
232-
previousSpan.modification.skipSeparatorAfter = true;
233-
}
234-
break;
235-
236226
case ts.SyntaxKind.ExportKeyword:
237227
case ts.SyntaxKind.DefaultKeyword:
238228
case ts.SyntaxKind.DeclareKeyword:

0 commit comments

Comments
 (0)