Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion integration/typings_test_ts36/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@angular/router": "file:../../dist/packages-dist/router",
"@angular/service-worker": "file:../../dist/packages-dist/service-worker",
"@angular/upgrade": "file:../../dist/packages-dist/upgrade",
"@types/jasmine": "2.5.41",
"@types/jasmine": "file:../../node_modules/@types/jasmine",
"rxjs": "file:../../node_modules/rxjs",
"typescript": "3.6.4",
"zone.js": "file:../../dist/zone.js-dist/zone.js"
Expand Down
3 changes: 2 additions & 1 deletion integration/typings_test_ts36/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"compilerOptions": {
"strict": true,
"skipLibCheck": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"module": "commonjs",
Expand All @@ -15,7 +17,6 @@
"es2015.promise"
],
"types": [],
"strictNullChecks": true
},
"files": [
"include-all.ts",
Expand Down
6 changes: 2 additions & 4 deletions integration/typings_test_ts36/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,8 @@
"@angular/upgrade@file:../../dist/packages-dist/upgrade":
version "9.0.0-rc.1"

"@types/jasmine@2.5.41":
version "2.5.41"
resolved "https://registry.yarnpkg.com/@types/jasmine/-/jasmine-2.5.41.tgz#d5e86161a0af80d52062b310a33ed65b051a0713"
integrity sha1-1ehhYaCvgNUgYrMQoz7WWwUaBxM=
"@types/jasmine@file:../../node_modules/@types/jasmine":
version "2.8.8"

abbrev@1:
version "1.1.1"
Expand Down
2 changes: 1 addition & 1 deletion integration/typings_test_ts37/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@angular/router": "file:../../dist/packages-dist/router",
"@angular/service-worker": "file:../../dist/packages-dist/service-worker",
"@angular/upgrade": "file:../../dist/packages-dist/upgrade",
"@types/jasmine": "2.5.41",
"@types/jasmine": "file:../../node_modules/@types/jasmine",
"rxjs": "file:../../node_modules/rxjs",
"typescript": "3.7.4",
"zone.js": "file:../../dist/zone.js-dist/zone.js"
Expand Down
3 changes: 2 additions & 1 deletion integration/typings_test_ts37/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"compilerOptions": {
"strict": true,
"skipLibCheck": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"module": "commonjs",
Expand All @@ -15,7 +17,6 @@
"es2015.promise"
],
"types": [],
"strictNullChecks": true
},
"files": [
"include-all.ts",
Expand Down
6 changes: 2 additions & 4 deletions integration/typings_test_ts37/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,8 @@
"@angular/upgrade@file:../../dist/packages-dist/upgrade":
version "9.0.0-rc.1"

"@types/jasmine@2.5.41":
version "2.5.41"
resolved "https://registry.yarnpkg.com/@types/jasmine/-/jasmine-2.5.41.tgz#d5e86161a0af80d52062b310a33ed65b051a0713"
integrity sha1-1ehhYaCvgNUgYrMQoz7WWwUaBxM=
"@types/jasmine@file:../../node_modules/@types/jasmine":
version "2.8.8"

ansi-regex@^2.0.0:
version "2.1.1"
Expand Down
8 changes: 8 additions & 0 deletions packages/compiler/src/output/abstract_emitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ export class EmitterVisitorContext {

constructor(private _indent: number) { this._lines = [new _EmittedLine(_indent)]; }

/**
* @internal strip this from published d.ts files due to
* https://github.com/microsoft/TypeScript/issues/36216
*/
private get _currentLine(): _EmittedLine { return this._lines[this._lines.length - 1]; }

println(from?: {sourceSpan: ParseSourceSpan | null}|null, lastPart: string = ''): void {
Expand Down Expand Up @@ -169,6 +173,10 @@ export class EmitterVisitorContext {
return null;
}

/**
* @internal strip this from published d.ts files due to
* https://github.com/microsoft/TypeScript/issues/36216
*/
private get sourceLines(): _EmittedLine[] {
if (this._lines.length && this._lines[this._lines.length - 1].parts.length === 0) {
return this._lines.slice(0, -1);
Expand Down
4 changes: 4 additions & 0 deletions packages/compiler/src/output/source_map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ export class SourceMapGenerator {
return this;
}

/**
* @internal strip this from published d.ts files due to
* https://github.com/microsoft/TypeScript/issues/36216
*/
private get currentLine(): Segment[]|null { return this.lines.slice(-1)[0]; }

toJSON(): SourceMap|null {
Expand Down
8 changes: 8 additions & 0 deletions packages/core/testing/src/r3_test_bed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,13 +351,21 @@ export class TestBedRender3 implements TestBed {
return fixture;
}

/**
* @internal strip this from published d.ts files due to
* https://github.com/microsoft/TypeScript/issues/36216
*/
private get compiler(): R3TestBedCompiler {
if (this._compiler === null) {
throw new Error(`Need to call TestBed.initTestEnvironment() first`);
}
return this._compiler;
}

/**
* @internal strip this from published d.ts files due to
* https://github.com/microsoft/TypeScript/issues/36216
*/
private get testModuleRef(): NgModuleRef<any> {
if (this._testModuleRef === null) {
this._testModuleRef = this.compiler.finalize();
Expand Down