Skip to content

Commit 39a81f2

Browse files
committed
Introduce Span helper
1 parent cee910f commit 39a81f2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import Extractor from '../Extractor';
1111
import IndentedWriter from '../IndentedWriter';
1212
import PrettyPrinter from '../PrettyPrinter';
1313
import TypeScriptHelpers from '../TypeScriptHelpers';
14+
import { Span } from './Span';
1415

1516
class Entry {
1617
public localName: string;
@@ -153,7 +154,8 @@ export default class DtsGenerator {
153154
for (const declaration of followedSymbol.declarations) {
154155
console.log(PrettyPrinter.dumpTree(declaration));
155156
console.log('-------------------------------------');
156-
console.log(declaration.getText());
157+
const span: Span = new Span(declaration);
158+
console.log(span.getText());
157159
console.log('=====================================');
158160

159161
switch (declaration.kind) {

0 commit comments

Comments
 (0)