Skip to content

Commit 7135795

Browse files
committed
Rename DtsGenerator.ts --> PackageTypingsGenerator.ts
1 parent 99193e4 commit 7135795

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ interface IFollowAliasesResult {
3939
external: boolean;
4040
}
4141

42-
export default class DtsGenerator {
42+
export default class PackageTypingsGenerator {
4343
private _context: ExtractorContext;
4444
private _typeChecker: ts.TypeChecker;
4545
private _indentedWriter: IndentedWriter = new IndentedWriter();
@@ -87,7 +87,7 @@ export default class DtsGenerator {
8787
// Is it an export declaration?
8888
if (currentAlias.declarations) {
8989
const exportDeclaration: ts.ExportDeclaration | undefined
90-
= DtsGenerator._matchParent<ts.ExportDeclaration>(currentAlias.declarations[0],
90+
= PackageTypingsGenerator._matchParent<ts.ExportDeclaration>(currentAlias.declarations[0],
9191
[ts.SyntaxKind.ExportSpecifier, ts.SyntaxKind.NamedExports, ts.SyntaxKind.ExportDeclaration]);
9292

9393
if (exportDeclaration && exportDeclaration.moduleSpecifier) {
@@ -213,7 +213,7 @@ export default class DtsGenerator {
213213
// Since we are emitting a separate declaration for each one, we need to look upwards
214214
// in the ts.Node tree and write a copy of the enclosing VariableDeclarationList
215215
// content (e.g. "var" from "var x=1, y=2").
216-
const list: ts.VariableDeclarationList | undefined = DtsGenerator._matchParent(span.node,
216+
const list: ts.VariableDeclarationList | undefined = PackageTypingsGenerator._matchParent(span.node,
217217
[ts.SyntaxKind.VariableDeclaration, ts.SyntaxKind.VariableDeclarationList]);
218218
if (!list) {
219219
throw new Error('Unsupported variable declaration');
@@ -269,7 +269,7 @@ export default class DtsGenerator {
269269
}
270270

271271
private _fetchEntryForSymbol(symbol: ts.Symbol): Entry | undefined {
272-
const result: IFollowAliasesResult = DtsGenerator._followAliases(symbol, this._typeChecker);
272+
const result: IFollowAliasesResult = PackageTypingsGenerator._followAliases(symbol, this._typeChecker);
273273
if (result.external) {
274274
return; // external definition
275275
}

0 commit comments

Comments
 (0)