/third_party/typescript/tests/baselines/reference/ |
D | typedefCrossModule2.types | 3 >mod : { Baz: typeof Baz; Bar: typeof mod.Bar; Quid: number; } | { Quack: number; Bar: typeof mod.B… 4 …uire('./mod1.js') : { Baz: typeof Baz; Bar: typeof mod.Bar; Quid: number; } | { Quack: number; Bar… 20 >mod : { Baz: typeof Baz; Bar: typeof mod.Bar; Quid: number; } | { Quack: number; Bar: typeof mod.B… 30 /** @typedef {number} Bar */ 31 exports.Bar = class { } 32 >exports.Bar = class { } : typeof Bar 33 >exports.Bar : typeof Bar 34 >exports : { Baz: typeof Baz; Bar: typeof Bar; Quid: number; } | { Quack: number; Bar: typeof Bar; … 35 >Bar : typeof Bar 36 >class { } : typeof Bar [all …]
|
D | ambientModuleWithTemplateLiterals.types | 5 enum Bar { 6 >Bar : Bar 9 >a : Bar.a 13 >b : Bar.b 17 >c : Bar.c 29 export const c = Bar.a; 30 >c : Bar.a 31 >Bar.a : Bar.a 32 >Bar : typeof Bar 33 >a : Bar.a [all …]
|
D | moduleAndInterfaceWithSameName.js | 3 export module Bar { 7 export interface Bar { 13 module Bar { 17 export interface Bar { 22 var z2 = Foo2.Bar.y; // Error for using interface name as a value. 25 export module Bar { 29 interface Bar { 37 var Bar; 38 (function (Bar) { argument 39 Bar.x = 42; [all …]
|
D | didYouMeanElaborationsForExpressionsWhichCouldBeCalled.types | 2 class Bar { 3 >Bar : Bar 12 declare function foo(arg: { x: Bar, y: Date }, item: number, items?: [number, number, number]): voi… 13 >foo : (arg: { x: Bar; y: Date;}, item: number, items?: [number, number, number]) => void 14 >arg : { x: Bar; y: Date; } 15 >x : Bar 21 >foo({ x: Bar, y: Date}, getNum()) : void 22 >foo : (arg: { x: Bar; y: Date; }, item: number, items?: [number, number, number]) => void 23 >{ x: Bar, y: Date} : { x: typeof Bar; y: DateConstructor; } 25 x: Bar, [all …]
|
D | tsxReactEmit3.types | 6 declare var Foo, Bar, baz; 8 >Bar : any 11 <Foo> <Bar> q </Bar> <Bar/> s <Bar/><Bar/></Foo>; 12 ><Foo> <Bar> q </Bar> <Bar/> s <Bar/><Bar/></Foo> : JSX.Element 14 ><Bar> q </Bar> : JSX.Element 15 >Bar : any 16 >Bar : any 17 ><Bar/> : JSX.Element 18 >Bar : any 19 ><Bar/> : JSX.Element [all …]
|
D | tsxEmit3.types | 16 export class Bar { } 17 >Bar : Bar 44 // Emit S.Bar 45 Bar, <Bar />; 46 >Bar, <Bar /> : JSX.Element 47 >Bar : typeof Bar 48 ><Bar /> : JSX.Element 49 >Bar : typeof Bar 57 // Emit M.S.Bar 58 S.Bar, <S.Bar />; [all …]
|
D | interfaceClassMerging2.types | 25 interface Bar { 33 class Bar extends Foo { 34 >Bar : Bar 49 var bar = new Bar(); 50 >bar : Bar 51 >new Bar() : Bar 52 >Bar : typeof Bar 55 >bar.interfaceBarMethod().interfaceFooMethod().classBarMethod().classFooMethod() : Bar 56 >bar.interfaceBarMethod().interfaceFooMethod().classBarMethod().classFooMethod : () => Bar 57 >bar.interfaceBarMethod().interfaceFooMethod().classBarMethod() : Bar [all …]
|
D | genericCloneReturnTypes.types | 2 class Bar<T> { 3 >Bar : Bar<T> 24 >clone : () => Bar<T> 26 return new Bar<T>(this.size); 27 >new Bar<T>(this.size) : Bar<T> 28 >Bar : typeof Bar 37 var b: Bar<number>; 38 >b : Bar<number> 41 >b2 : Bar<number> 42 >b.clone() : Bar<number> [all …]
|
D | generatorTypeCheck25.types | 6 class Bar extends Foo { y: string } 7 >Bar : Bar 17 …ion* () { yield; yield new Bar; yield new Baz; yield *[new Bar]; yield *[new Baz];}… 22 yield new Bar; 23 >yield new Bar : undefined 24 >new Bar : Bar 25 >Bar : typeof Bar 32 yield *[new Bar]; 33 >yield *[new Bar] : any 34 >[new Bar] : Bar[] [all …]
|
D | moduleAndInterfaceWithSameName.symbols | 5 export module Bar { 6 >Bar : Symbol(Bar, Decl(moduleAndInterfaceWithSameName.ts, 0, 13), Decl(moduleAndInterfaceWithSameN… 12 export interface Bar { 13 >Bar : Symbol(Bar, Decl(moduleAndInterfaceWithSameName.ts, 0, 13), Decl(moduleAndInterfaceWithSameN… 16 >y : Symbol(Bar.y, Decl(moduleAndInterfaceWithSameName.ts, 5, 26)) 23 module Bar { 24 >Bar : Symbol(Bar, Decl(moduleAndInterfaceWithSameName.ts, 10, 13), Decl(moduleAndInterfaceWithSame… 30 export interface Bar { 31 >Bar : Symbol(Bar, Decl(moduleAndInterfaceWithSameName.ts, 13, 5)) 34 >y : Symbol(Foo2.Bar.y, Decl(moduleAndInterfaceWithSameName.ts, 15, 26)) [all …]
|
D | genericCloneReturnTypes.symbols | 2 class Bar<T> { 3 >Bar : Symbol(Bar, Decl(genericCloneReturnTypes.ts, 0, 0)) 7 >size : Symbol(Bar.size, Decl(genericCloneReturnTypes.ts, 0, 14)) 10 >t : Symbol(Bar.t, Decl(genericCloneReturnTypes.ts, 2, 24)) 17 >this.size : Symbol(Bar.size, Decl(genericCloneReturnTypes.ts, 0, 14)) 18 >this : Symbol(Bar, Decl(genericCloneReturnTypes.ts, 0, 0)) 19 >size : Symbol(Bar.size, Decl(genericCloneReturnTypes.ts, 0, 14)) 25 >clone : Symbol(Bar.clone, Decl(genericCloneReturnTypes.ts, 9, 5)) 27 return new Bar<T>(this.size); 28 >Bar : Symbol(Bar, Decl(genericCloneReturnTypes.ts, 0, 0)) [all …]
|
D | noErrorsInCallback.types | 2 class Bar { 3 >Bar : Bar 8 var one = new Bar({}); // Error 9 >one : Bar 10 >new Bar({}) : Bar 11 >Bar : typeof Bar 15 >[].forEach(() => { var two = new Bar({}); // No error?}) : void 19 >() => { var two = new Bar({}); // No error?} : () => void 21 var two = new Bar({}); // No error? 22 >two : Bar [all …]
|
D | generatorTypeCheck22.types | 6 class Bar extends Foo { y: string } 7 >Bar : Bar 16 >g3 : () => Generator<Bar | Baz, void, undefined> 21 yield new Bar; 22 >yield new Bar : any 23 >new Bar : Bar 24 >Bar : typeof Bar 31 yield *[new Bar]; 32 >yield *[new Bar] : any 33 >[new Bar] : Bar[] [all …]
|
D | tsxReactEmit3.symbols | 9 declare var Foo, Bar, baz; 11 >Bar : Symbol(Bar, Decl(test.tsx, 3, 16)) 14 <Foo> <Bar> q </Bar> <Bar/> s <Bar/><Bar/></Foo>; 16 >Bar : Symbol(Bar, Decl(test.tsx, 3, 16)) 17 >Bar : Symbol(Bar, Decl(test.tsx, 3, 16)) 18 >Bar : Symbol(Bar, Decl(test.tsx, 3, 16)) 19 >Bar : Symbol(Bar, Decl(test.tsx, 3, 16)) 20 >Bar : Symbol(Bar, Decl(test.tsx, 3, 16))
|
D | importTypeLocalMissing.js | 11 namespace Bar { 25 class Bar { 26 item: Bar.I; 29 export { Bar } 33 export let y: import("./fo2").Bar.I = { a: "", b: 0 }; 34 export let z: import("./foo2").Bar.Q = { a: "", b: 0 }; 42 Bar: Bar2 property 52 exports.Bar = void 0; 53 var Bar = /** @class */ (function () { class 54 function Bar(input) { class in Bar [all …]
|
D | optionalMethods.symbols | 68 class Bar { 69 >Bar : Symbol(Bar, Decl(optionalMethods.ts, 15, 1)) 72 >a : Symbol(Bar.a, Decl(optionalMethods.ts, 17, 11)) 75 >b : Symbol(Bar.b, Decl(optionalMethods.ts, 18, 14)) 78 >c : Symbol(Bar.c, Decl(optionalMethods.ts, 19, 15)) 81 >d : Symbol(Bar.d, Decl(optionalMethods.ts, 21, 16)) 82 >e : Symbol(Bar.e, Decl(optionalMethods.ts, 21, 34)) 85 >f : Symbol(Bar.f, Decl(optionalMethods.ts, 21, 52)) 90 >g : Symbol(Bar.g, Decl(optionalMethods.ts, 24, 5)) 93 >h : Symbol(Bar.h, Decl(optionalMethods.ts, 25, 17)) [all …]
|
D | generatorTypeCheck23.types | 6 class Bar extends Foo { y: string } 7 >Bar : Bar 26 yield new Bar; 27 >yield new Bar : any 28 >new Bar : Bar 29 >Bar : typeof Bar 36 yield *[new Bar]; 37 >yield *[new Bar] : any 38 >[new Bar] : Bar[] 39 >new Bar : Bar [all …]
|
D | importTypeLocal.js | 11 namespace Bar { 25 class Bar { 26 item: Bar.I; 29 export { Bar } 33 export let y: import("./foo2").Bar.I = { a: "", b: 0 }; 41 Bar: Bar2 property 51 exports.Bar = void 0; 52 var Bar = /** @class */ (function () { class 53 function Bar(input) { class in Bar 55 return Bar; [all …]
|
D | generatorTypeCheck24.types | 6 class Bar extends Foo { y: string } 7 >Bar : Bar 27 yield new Bar; 28 >yield new Bar : any 29 >new Bar : Bar 30 >Bar : typeof Bar 37 yield *[new Bar]; 38 >yield *[new Bar] : any 39 >[new Bar] : Bar[] 40 >new Bar : Bar [all …]
|
D | moduleAndInterfaceWithSameName.types | 5 export module Bar { 6 >Bar : typeof Bar 13 export interface Bar { 22 module Bar { 23 >Bar : typeof Bar 30 export interface Bar { 36 var z2 = Foo2.Bar.y; // Error for using interface name as a value. 38 >Foo2.Bar.y : any 39 >Foo2.Bar : any 41 >Bar : any [all …]
|
D | jsDeclarationsClassExtendsVisibility.types | 2 const Bar = require("./bar"); 3 >Bar : typeof Bar 4 >require("./bar") : typeof Bar 21 class Foo extends Bar {} 23 >Bar : Bar 42 class Bar {} 43 >Bar : Bar 45 module.exports = Bar; 46 >module.exports = Bar : typeof Bar 47 >module.exports : typeof Bar [all …]
|
D | optionalParameterRetainsNull.types | 2 interface Bar { bar: number; foo: object | null; } 8 >a : { test<K extends keyof Bar>(a: K, b?: Bar[K] | null | undefined): void; } 9 >{ test<K extends keyof Bar> (a: K, b?: Bar[K] | null) { }} : { test<K extends keyof Bar>(a: K… 11 test<K extends keyof Bar> (a: K, b?: Bar[K] | null) { } 12 >test : <K extends keyof Bar>(a: K, b?: Bar[K] | null | undefined) => void 14 >b : Bar[K] | null | undefined 20 >a.test : <K extends keyof Bar>(a: K, b?: Bar[K] | null | undefined) => void 21 >a : { test<K extends keyof Bar>(a: K, b?: Bar[K] | null | undefined): void; } 22 >test : <K extends keyof Bar>(a: K, b?: Bar[K] | null | undefined) => void
|
D | typedefCrossModule4.types | 3 class Bar { } 4 >Bar : Bar 6 module.exports = { Foo: Bar }; 7 >module.exports = { Foo: Bar } : { Foo: typeof Bar; } 8 >module.exports : { Foo: typeof Bar; } 9 >module : { exports: { Foo: typeof Bar; }; } 10 >exports : { Foo: typeof Bar; } 11 >{ Foo: Bar } : { Foo: typeof Bar; } 12 >Foo : typeof Bar 13 >Bar : typeof Bar
|
D | tsxEmit3.symbols | 21 export class Bar { } 22 >Bar : Symbol(Bar, Decl(file.tsx, 7, 18)) 45 // Emit S.Bar 46 Bar, <Bar />; 47 >Bar : Symbol(Bar, Decl(file.tsx, 7, 18)) 48 >Bar : Symbol(Bar, Decl(file.tsx, 7, 18)) 56 // Emit M.S.Bar 57 S.Bar, <S.Bar />; 58 >S.Bar : Symbol(S.Bar, Decl(file.tsx, 7, 18)) 60 >Bar : Symbol(S.Bar, Decl(file.tsx, 7, 18)) [all …]
|
D | importTypeGenericTypes.js | 12 namespace Bar { 28 class Bar<T> { 29 item: Bar.I<T>; 32 export { Bar } 36 export let y: import("./foo2").Bar.I<{x: number}> = { a: "", b: 0, data: {x: 12} }; 44 Bar: Bar2 property 54 exports.Bar = void 0; 55 var Bar = /** @class */ (function () { class 56 function Bar(input) { class in Bar 58 return Bar; [all …]
|