Skip to content

Commit 4d52e58

Browse files
authored
Merge pull request microsoft#947 from Microsoft/ianc/rsc
Create rush-stack-compiler projects for several versions of TypeScript.
2 parents 138e943 + be295cd commit 4d52e58

254 files changed

Lines changed: 2599 additions & 801 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎apps/api-documenter/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"js-yaml": "~3.9.1"
2323
},
2424
"devDependencies": {
25-
"@microsoft/rush-stack-compiler": "0.5.6",
25+
"@microsoft/rush-stack-compiler-3.0": "0.0.0",
2626
"@microsoft/node-library-build": "6.0.14",
2727
"@types/js-yaml": "3.9.1",
2828
"@types/node": "8.5.8",

‎apps/api-documenter/tsconfig.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "./node_modules/@microsoft/rush-stack-compiler/includes/tsconfig-node.json",
2+
"extends": "./node_modules/@microsoft/rush-stack-compiler-3.0/includes/tsconfig-node.json",
33
"compilerOptions": {
44
"types": [
55
"jest"

‎apps/api-documenter/tslint.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"extends": "@microsoft/rush-stack-compiler/includes/tslint.json"
2+
"extends": "@microsoft/rush-stack-compiler-3.0/includes/tslint.json"
33
}

‎apps/api-extractor/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@
4444
"resolve": "1.8.1"
4545
},
4646
"devDependencies": {
47-
"@microsoft/rush-stack-compiler": "0.4.3",
47+
"@microsoft/rush-stack-compiler": "0.5.6",
4848
"tslint-microsoft-contrib": "~5.2.1",
4949
"@types/lodash": "4.14.116",
5050
"gulp": "~3.9.1",
51-
"@microsoft/node-library-build": "6.0.6",
51+
"@microsoft/node-library-build": "6.0.14",
5252
"@types/jest": "21.1.10"
5353
}
5454
}

‎apps/api-extractor/src/ast/AstNamespace.ts‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,10 @@ export class AstNamespace extends AstModule {
105105
// the JSDoc comment Node can be found.
106106
// If there is no parent or grandparent of this VariableDeclaration then
107107
// we do not know how to obtain the JSDoc comment.
108-
let jsdocNode: ts.Node | undefined = undefined;
109108
if (!declaration.parent || !declaration.parent.parent ||
110109
declaration.parent.parent.kind !== ts.SyntaxKind.VariableStatement) {
111110
this.reportWarning(`Unable to locate the documentation node for "${exportSymbol.name}"; `
112111
+ `this may be an API Extractor bug`);
113-
} else {
114-
jsdocNode = declaration.parent.parent;
115112
}
116113

117114
const exportMemberOptions: IAstItemOptions = {

‎apps/api-extractor/src/ast/AstStructuredType.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { ReleaseTag } from '../aedoc/ReleaseTag';
1010
import { Markup } from '../markup/Markup';
1111
import { AstMethod } from './AstMethod';
1212
import { AstProperty } from './AstProperty';
13-
import { AstItem, AstItemKind, IAstItemOptions } from './AstItem';
13+
import { AstItemKind, IAstItemOptions } from './AstItem';
1414
import { AstItemContainer } from './AstItemContainer';
1515
import { TypeScriptHelpers } from '../utils/TypeScriptHelpers';
1616
import { PrettyPrinter } from '../utils/PrettyPrinter';

‎apps/api-extractor/src/cli/RunAction.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import { ApiExtractorCommandLine } from './ApiExtractorCommandLine';
2424
const AE_CONFIG_FILENAME: string = 'api-extractor.json';
2525

2626
export class RunAction extends CommandLineAction {
27-
private _parser: ApiExtractorCommandLine;
2827
private _configFileParameter: CommandLineStringParameter;
2928
private _localParameter: CommandLineFlagParameter;
3029
private _typescriptCompilerFolder: CommandLineStringParameter;
@@ -36,7 +35,6 @@ export class RunAction extends CommandLineAction {
3635
summary: 'Invoke API Extractor on a project',
3736
documentation: 'Invoke API Extractor on a project'
3837
});
39-
this._parser = parser;
4038
}
4139

4240
protected onDefineParameters(): void { // override

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import { AstFunction } from '../ast/AstFunction';
1414
import { AstItem, AstItemKind } from '../ast/AstItem';
1515
import { AstItemVisitor } from './AstItemVisitor';
1616
import { AstPackage } from '../ast/AstPackage';
17-
import { AstParameter } from '../ast/AstParameter';
1817
import { AstProperty } from '../ast/AstProperty';
1918
import { AstMember, ApiAccessModifier } from '../ast/AstMember';
2019
import { AstNamespace } from '../ast/AstNamespace';
@@ -38,7 +37,6 @@ import { ApiJsonFile } from '../api/ApiJsonFile';
3837
* @public
3938
*/
4039
export class ApiJsonGenerator extends AstItemVisitor {
41-
private static _methodCounter: number = 0;
4240
private static _MEMBERS_KEY: string = 'members';
4341
private static _EXPORTS_KEY: string = 'exports';
4442

@@ -109,8 +107,6 @@ export class ApiJsonGenerator extends AstItemVisitor {
109107

110108
refObject![astStructuredType.name] = structureNode;
111109

112-
ApiJsonGenerator._methodCounter = 0;
113-
114110
const members: AstItem[] = astStructuredType.getSortedMemberItems();
115111

116112
if (members && members.length) {

‎apps/api-extractor/src/generators/dtsRollup/AstSymbolTable.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import { ILogger } from '../../extractor/ILogger';
2525
export class AstSymbolTable {
2626
private readonly _program: ts.Program;
2727
private readonly _typeChecker: ts.TypeChecker;
28-
private readonly _packageJsonLookup: PackageJsonLookup;
2928
private readonly _packageMetadataManager: PackageMetadataManager;
3029

3130
/**
@@ -61,7 +60,6 @@ export class AstSymbolTable {
6160

6261
this._program = program;
6362
this._typeChecker = typeChecker;
64-
this._packageJsonLookup = packageJsonLookup;
6563
this._packageMetadataManager = new PackageMetadataManager(packageJsonLookup, logger);
6664
}
6765

‎apps/api-extractor/src/generators/dtsRollup/DtsRollupGenerator.ts‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,6 @@ export class DtsRollupGenerator {
133133
});
134134
}
135135

136-
private get astEntryPoint(): AstEntryPoint {
137-
if (!this._astEntryPoint) {
138-
throw new Error('DtsRollupGenerator.analyze() was not called');
139-
}
140-
return this._astEntryPoint;
141-
}
142-
143136
private _createDtsEntryForSymbol(astSymbol: AstSymbol, exportedName: string | undefined): void {
144137
let dtsEntry: DtsEntry | undefined = this._dtsEntriesByAstSymbol.get(astSymbol);
145138

0 commit comments

Comments
 (0)