Skip to content

Commit bc859d0

Browse files
committed
removed comments and useless code
1 parent 17e6824 commit bc859d0

3 files changed

Lines changed: 2 additions & 9 deletions

File tree

‎api-extractor/src/Analyzer.ts‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,6 @@ export default class Analyzer {
8383
if (!rootFile) {
8484
throw new Error('Unable to load file: ' + options.entryPointFile);
8585
}
86-
// const rootFileSymbol: ts.Symbol = TypeScriptHelpers.getSymbolForDeclaration(rootFile);
87-
88-
// this.package = new ApiPackage(this, rootFileSymbol);
8986

9087
this.package = new ApiPackage(this, rootFile);
9188
}

‎api-extractor/src/DebugRun.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ analyzer.analyze({
2525
moduleResolution: ts.ModuleResolutionKind.NodeJs,
2626
experimentalDecorators: true,
2727
jsx: ts.JsxEmit.React,
28-
rootDir: './testInputs/example2' // 'D:/GitRepos/sp-client/spfx-core/sp-codepart-base'
28+
rootDir: './testInputs/example2'
2929
},
30-
entryPointFile: './testInputs/example2/index.ts', // 'D:/GitRepos/sp-client/spfx-core/sp-codepart-base/src/index.ts',
30+
entryPointFile: './testInputs/example2/index.ts',
3131
otherFiles: []
3232
});
3333

‎api-extractor/src/PrettyPrinter.ts‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ export default class PrettyPrinter {
1010
* Used for debugging only. This dumps the TypeScript Compiler's abstract syntax tree.
1111
*/
1212
public static dumpTree(node: ts.Node, indent: string = ''): void {
13-
try {
14-
const jsdoc: string = TypeScriptHelpers.getJsDocComments(node, console.log);
15-
} catch (e) {} /* tslint:disable-line:no-empty */
16-
1713
const kindName: string = ts.SyntaxKind[node.kind];
1814
let trimmedText: string;
1915

0 commit comments

Comments
 (0)