-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add command line argument to specify target (#44)
- Loading branch information
Showing
18 changed files
with
665 additions
and
1,394 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
node_modules/ | ||
test/ts3.4/ | ||
test/ts*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
export class C { | ||
p: number; | ||
readonly q: string; | ||
r: boolean; | ||
} | ||
export namespace N { | ||
class D { | ||
p: number; | ||
readonly q: string; | ||
r: boolean; | ||
} | ||
} | ||
export { C as DetectiveComics }; | ||
export type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>; | ||
export interface E { | ||
a: number; | ||
b: number; | ||
} | ||
export type F = Omit<E, 'a'>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/// <reference path="./src/test.d.ts" /> | ||
/// <reference types="node" /> | ||
export class C { | ||
protected p: number; | ||
public readonly q: string; | ||
private r: boolean; | ||
} | ||
// hi, this should still be there | ||
export namespace N { | ||
abstract class D { | ||
/* | ||
* @readonly | ||
* @memberof BlobLeaseClient | ||
* @type {number} | ||
preserve this too */ | ||
p: number; | ||
readonly q: any; | ||
abstract r: boolean; | ||
} | ||
} | ||
/** is this a single-line comment? */ | ||
import { C as CD } from "./src/test"; | ||
import * as rex_1 from "./src/test"; | ||
//another comment | ||
export { rex_1 as rex } from "./src/test"; | ||
export interface E { | ||
a: number; | ||
b: number; | ||
} | ||
/// is this a single-line comment? | ||
export type F = Omit<E, 'a'>; | ||
export class G { | ||
private "G.#private"; | ||
} | ||
export class H extends G { | ||
private "H.#private"; | ||
} | ||
export interface I extends Omit<E, 'a'> { | ||
version: number; | ||
} | ||
declare function guardIsString(val: any): val is string; | ||
/** side-effects! */ | ||
declare function assertIsString(val: any, msg?: string): void; | ||
declare function assert(val: any, msg?: string): void; | ||
type J = [ | ||
/*foo*/ string, | ||
/*bar*/ number, | ||
/*arr*/ ...boolean[] | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
export class C { | ||
get p(): number; | ||
set p(value: number); | ||
get q(): string; | ||
set r(value: boolean); | ||
} | ||
export namespace N { | ||
class D { | ||
get p(): number; | ||
set p(value: number); | ||
get q(): string; | ||
set r(value: boolean); | ||
} | ||
} | ||
export { C as DetectiveComics }; | ||
export type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>; | ||
export interface E { | ||
a: number; | ||
b: number; | ||
} | ||
export type F = Omit<E, 'a'>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/// <reference path="./src/test.d.ts" /> | ||
/// <reference types="node" /> | ||
export class C { | ||
protected get p(): number; | ||
protected set p(value: number); | ||
public get q(): string; | ||
private set r(value: boolean); | ||
} | ||
// hi, this should still be there | ||
export namespace N { | ||
abstract class D { | ||
/** | ||
* @readonly | ||
* @memberof BlobLeaseClient | ||
* @type {number} | ||
*/ | ||
get p(): number; | ||
/** preserve this too */ | ||
set p(value: number); | ||
get q(); | ||
abstract set r(value: boolean); | ||
} | ||
} | ||
/** is this a single-line comment? */ | ||
import { C as CD } from "./src/test"; | ||
import * as rex_1 from "./src/test"; | ||
//another comment | ||
export { rex_1 as rex } from "./src/test"; | ||
export interface E { | ||
a: number; | ||
b: number; | ||
} | ||
/// is this a single-line comment? | ||
export type F = Omit<E, 'a'>; | ||
export class G { | ||
private "G.#private"; | ||
} | ||
export class H extends G { | ||
private "H.#private"; | ||
} | ||
export interface I extends Omit<E, 'a'> { | ||
version: number; | ||
} | ||
declare function guardIsString(val: any): val is string; | ||
/** side-effects! */ | ||
declare function assertIsString(val: any, msg?: string): void; | ||
declare function assert(val: any, msg?: string): void; | ||
type J = [ | ||
/*foo*/ string, | ||
/*bar*/ number, | ||
/*arr*/ ...boolean[] | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
export class C { | ||
get p(): number; | ||
set p(value: number); | ||
get q(): string; | ||
set r(value: boolean); | ||
} | ||
export namespace N { | ||
class D { | ||
get p(): number; | ||
set p(value: number); | ||
get q(): string; | ||
set r(value: boolean); | ||
} | ||
} | ||
export { C as DetectiveComics }; | ||
export type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>; | ||
export interface E { | ||
a: number; | ||
b: number; | ||
} | ||
export type F = Omit<E, 'a'>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/// <reference path="./src/test.d.ts" /> | ||
/// <reference types="node" /> | ||
export class C { | ||
protected get p(): number; | ||
protected set p(value: number); | ||
public get q(): string; | ||
private set r(value: boolean); | ||
} | ||
// hi, this should still be there | ||
export namespace N { | ||
abstract class D { | ||
/** | ||
* @readonly | ||
* @memberof BlobLeaseClient | ||
* @type {number} | ||
*/ | ||
get p(): number; | ||
/** preserve this too */ | ||
set p(value: number); | ||
get q(); | ||
abstract set r(value: boolean); | ||
} | ||
} | ||
/** is this a single-line comment? */ | ||
import { C as CD } from "./src/test"; | ||
import * as rex_1 from "./src/test"; | ||
//another comment | ||
export { rex_1 as rex } from "./src/test"; | ||
export interface E { | ||
a: number; | ||
b: number; | ||
} | ||
/// is this a single-line comment? | ||
export type F = Omit<E, 'a'>; | ||
export class G { | ||
private "G.#private"; | ||
} | ||
export class H extends G { | ||
private "H.#private"; | ||
} | ||
export interface I extends Omit<E, 'a'> { | ||
version: number; | ||
} | ||
declare function guardIsString(val: any): val is string; | ||
/** side-effects! */ | ||
declare function assertIsString(val: any, msg?: string): asserts val is string; | ||
declare function assert(val: any, msg?: string): asserts val; | ||
type J = [ | ||
/*foo*/ string, | ||
/*bar*/ number, | ||
/*arr*/ ...boolean[] | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
export class C { | ||
get p(): number; | ||
set p(value: number); | ||
get q(): string; | ||
set r(value: boolean); | ||
} | ||
export namespace N { | ||
class D { | ||
get p(): number; | ||
set p(value: number); | ||
get q(): string; | ||
set r(value: boolean); | ||
} | ||
} | ||
export type { C as DetectiveComics }; | ||
export type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>; | ||
export interface E { | ||
a: number; | ||
b: number; | ||
} | ||
export type F = Omit<E, 'a'>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/// <reference path="./src/test.d.ts" /> | ||
/// <reference types="node" /> | ||
export class C { | ||
protected get p(): number; | ||
protected set p(value: number); | ||
public get q(): string; | ||
private set r(value: boolean); | ||
} | ||
// hi, this should still be there | ||
export namespace N { | ||
abstract class D { | ||
/** | ||
* @readonly | ||
* @memberof BlobLeaseClient | ||
* @type {number} | ||
*/ | ||
get p(): number; | ||
/** preserve this too */ | ||
set p(value: number); | ||
get q(); | ||
abstract set r(value: boolean); | ||
} | ||
} | ||
/** is this a single-line comment? */ | ||
import type { C as CD } from "./src/test"; | ||
// another comment | ||
export * as rex from "./src/test"; | ||
export interface E { | ||
a: number; | ||
b: number; | ||
} | ||
/// is this a single-line comment? | ||
export type F = Omit<E, 'a'>; | ||
export class G { | ||
#private; | ||
} | ||
export class H extends G { | ||
#private; | ||
} | ||
export interface I extends Omit<E, 'a'> { | ||
version: number; | ||
} | ||
declare function guardIsString(val: any): val is string; | ||
/** side-effects! */ | ||
declare function assertIsString(val: any, msg?: string): asserts val is string; | ||
declare function assert(val: any, msg?: string): asserts val; | ||
type J = [ | ||
/*foo*/ string, | ||
/*bar*/ number, | ||
/*arr*/ ...boolean[] | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
export class C { | ||
get p(): number; | ||
set p(value: number); | ||
get q(): string; | ||
set r(value: boolean); | ||
} | ||
export namespace N { | ||
class D { | ||
get p(): number; | ||
set p(value: number); | ||
get q(): string; | ||
set r(value: boolean); | ||
} | ||
} | ||
export type { C as DetectiveComics }; | ||
export type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>; | ||
export interface E { | ||
a: number; | ||
b: number; | ||
} | ||
export type F = Omit<E, 'a'>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/// <reference path="./src/test.d.ts" /> | ||
/// <reference types="node" /> | ||
export class C { | ||
protected get p(): number; | ||
protected set p(value: number); | ||
public get q(): string; | ||
private set r(value: boolean); | ||
} | ||
// hi, this should still be there | ||
export namespace N { | ||
abstract class D { | ||
/** | ||
* @readonly | ||
* @memberof BlobLeaseClient | ||
* @type {number} | ||
*/ | ||
get p(): number; | ||
/** preserve this too */ | ||
set p(value: number); | ||
get q(); | ||
abstract set r(value: boolean); | ||
} | ||
} | ||
/** is this a single-line comment? */ | ||
import type { C as CD } from "./src/test"; | ||
// another comment | ||
export * as rex from "./src/test"; | ||
export interface E { | ||
a: number; | ||
b: number; | ||
} | ||
/// is this a single-line comment? | ||
export type F = Omit<E, 'a'>; | ||
export class G { | ||
#private; | ||
} | ||
export class H extends G { | ||
#private; | ||
} | ||
export interface I extends Omit<E, 'a'> { | ||
version: number; | ||
} | ||
declare function guardIsString(val: any): val is string; | ||
/** side-effects! */ | ||
declare function assertIsString(val: any, msg?: string): asserts val is string; | ||
declare function assert(val: any, msg?: string): asserts val; | ||
type J = [ | ||
/*foo*/ string, | ||
/*bar*/ number, | ||
/*arr*/ ...boolean[] | ||
]; |
Oops, something went wrong.