/third_party/typescript/tests/baselines/reference/ |
D | jsxAndTypeAssertion.types | 5 class foo {} 6 >foo : foo 12 …foo>hello {<foo>{}} </foo>;x = <foo test={<foo>{}}>hello</foo>;x = <foo test={<foo>{}}>hello{<foo>… 14 …foo>hello {<foo>{}} </foo>;x = <foo test={<foo>{}}>hello</foo>;x = <foo test={<foo>{}}>hello{<foo>… 22 …foo>hello {<foo>{}} </foo>;x = <foo test={<foo>{}}>hello</foo>;x = <foo test={<foo>{}}>hello{<foo>… 28 x = <foo>hello {<foo>{}} </foo>; 29 …foo>hello {<foo>{}} </foo>;x = <foo test={<foo>{}}>hello</foo>;x = <foo test={<foo>{}}>hello{<foo>… 30 >foo : typeof foo 31 ><foo>{}} </foo> : any 32 >foo : typeof foo [all …]
|
D | jsDeclarationsFunctionKeywordPropExhaustive.types | 2 function foo() {} 3 >foo : typeof foo 6 foo.x = 1; 7 >foo.x = 1 : 1 8 >foo.x : number 9 >foo : typeof foo 13 foo.y = 1; 14 >foo.y = 1 : 1 15 >foo.y : number 16 >foo : typeof foo [all …]
|
D | nullPropertyName.types | 2 function foo() {} 3 >foo : typeof foo 6 foo.x = 1; 7 >foo.x = 1 : 1 8 >foo.x : number 9 >foo : typeof foo 13 foo.y = 1; 14 >foo.y = 1 : 1 15 >foo.y : number 16 >foo : typeof foo [all …]
|
D | exportDefaultParenthesize.types | 3 …foo'+'']: 42, ['foo'+'']: 42, ['foo'+'']: 42, ['foo'+'']: 42, ['foo'+'']: 42, ['foo… 5 ['foo'+'']: 42, 6 >['foo'+''] : number 7 >'foo'+'' : string 8 >'foo' : "foo" 12 ['foo'+'']: 42, 13 >['foo'+''] : number 14 >'foo'+'' : string 15 >'foo' : "foo" 19 ['foo'+'']: 42, [all …]
|
D | destructuringSameNames.types | 4 let { foo, foo: bar } = { foo: 1 }; 5 >foo : number 6 >foo : any 8 >{ foo: 1 } : { foo: number; } 9 >foo : number 12 ({ foo, foo } = { foo: 2 }); 13 >({ foo, foo } = { foo: 2 }) : { foo: number; } 14 >{ foo, foo } = { foo: 2 } : { foo: number; } 15 >{ foo, foo } : { foo: number; } 16 >foo : number [all …]
|
D | convertClassExpressionToFunctionFromObjectProperty1.symbols | 2 const foo: any = {}; 3 >foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) 6 foo.x = class { 7 >foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) 11 foo.y = class { 12 >foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) 18 foo.break = class { 19 >foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) 23 foo.case = class { 24 >foo : Symbol(foo, Decl(convertClassExpressionToFunctionFromObjectProperty1.ts, 0, 5)) [all …]
|
D | convertClassExpressionToFunctionFromObjectProperty1.js | 2 const foo: any = {}; constant 5 foo.x = class { 8 foo.y = class { 13 foo.break = class { 16 foo.case = class { 19 foo.catch = class { class 22 foo.class = class { 25 foo.const = class { 28 foo.continue = class { 31 foo.debugger = class { [all …]
|
D | jsDeclarationsFunctionKeywordPropExhaustive.js | 2 function foo() {} function 4 foo.x = 1; 5 foo.y = 1; 8 foo.break = 1; 9 foo.case = 1; 10 foo.catch = 1; 11 foo.class = 1; 12 foo.const = 1; 13 foo.continue = 1; 14 foo.debugger = 1; [all …]
|
D | nullPropertyName.js | 2 function foo() {} function 4 foo.x = 1; 5 foo.y = 1; 8 foo.break = 1; 9 foo.case = 1; 10 foo.catch = 1; 11 foo.class = 1; 12 foo.const = 1; 13 foo.continue = 1; 14 foo.debugger = 1; [all …]
|
D | assignmentToExpandingArrayType.types | 7 x[0] = { foo: 'hi' } 8 >x[0] = { foo: 'hi' } : { foo: string; } 12 >{ foo: 'hi' } : { foo: string; } 13 >foo : string 16 x[0] = { foo: 'hi' } 17 >x[0] = { foo: 'hi' } : { foo: string; } 21 >{ foo: 'hi' } : { foo: string; } 22 >foo : string 25 x[0] = { foo: 'hi' } 26 >x[0] = { foo: 'hi' } : { foo: string; } [all …]
|
D | convertClassExpressionToFunctionFromObjectProperty1.types | 2 const foo: any = {}; 3 >foo : any 7 foo.x = class { 8 >foo.x = class { constructor () {}} : typeof x 9 >foo.x : any 10 >foo : any 16 foo.y = class { 17 >foo.y = class { constructor () {}} : typeof y 18 >foo.y : any 19 >foo : any [all …]
|
D | spreadOfObjectLiteralAssignableToIndexSignature.types | 2 const foo: Record<never, never> = {} // OK 3 >foo : Record<never, never> 11 recordOfRecords.propA = {...(foo !== undefined ? {foo} : {})} // OK 12 >recordOfRecords.propA = {...(foo !== undefined ? {foo} : {})} : { foo?: Record<never, never> | und… 16 >{...(foo !== undefined ? {foo} : {})} : { foo?: Record<never, never> | undefined; } 17 >(foo !== undefined ? {foo} : {}) : { foo: Record<never, never>; } | {} 18 >foo !== undefined ? {foo} : {} : { foo: Record<never, never>; } | {} 19 >foo !== undefined : boolean 20 >foo : Record<never, never> 22 >{foo} : { foo: Record<never, never>; } [all …]
|
D | nullPropertyName.symbols | 2 function foo() {} 3 >foo : Symbol(foo, Decl(nullPropertyName.ts, 0, 0), Decl(nullPropertyName.ts, 0, 17), Decl(nullProp… 6 foo.x = 1; 7 >foo.x : Symbol(foo.x, Decl(nullPropertyName.ts, 0, 17)) 8 >foo : Symbol(foo, Decl(nullPropertyName.ts, 0, 0), Decl(nullPropertyName.ts, 0, 17), Decl(nullProp… 9 >x : Symbol(foo.x, Decl(nullPropertyName.ts, 0, 17)) 11 foo.y = 1; 12 >foo.y : Symbol(foo.y, Decl(nullPropertyName.ts, 2, 10)) 13 >foo : Symbol(foo, Decl(nullPropertyName.ts, 0, 0), Decl(nullPropertyName.ts, 0, 17), Decl(nullProp… 14 >y : Symbol(foo.y, Decl(nullPropertyName.ts, 2, 10)) [all …]
|
D | jsDeclarationsFunctionKeywordPropExhaustive.symbols | 2 function foo() {} 3 >foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(sour… 6 foo.x = 1; 7 >foo.x : Symbol(foo.x, Decl(source.js, 0, 17)) 8 >foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(sour… 9 >x : Symbol(foo.x, Decl(source.js, 0, 17)) 11 foo.y = 1; 12 >foo.y : Symbol(foo.y, Decl(source.js, 2, 10)) 13 >foo : Symbol(foo, Decl(source.js, 0, 0), Decl(source.js, 0, 17), Decl(source.js, 2, 10), Decl(sour… 14 >y : Symbol(foo.y, Decl(source.js, 2, 10)) [all …]
|
D | deeplyDependentLargeArrayMutation2.symbols | 1 === tests/cases/compiler/foo.js === 8 >build : Symbol(build, Decl(foo.js, 0, 0)) 11 >i : Symbol(i, Decl(foo.js, 6, 7)) 14 >arr : Symbol(arr, Decl(foo.js, 7, 9)) 17 >arr : Symbol(arr, Decl(foo.js, 7, 9)) 18 >i : Symbol(i, Decl(foo.js, 6, 7)) 19 >arr : Symbol(arr, Decl(foo.js, 7, 9)) 20 >i : Symbol(i, Decl(foo.js, 6, 7)) 23 >arr : Symbol(arr, Decl(foo.js, 7, 9)) 24 >i : Symbol(i, Decl(foo.js, 6, 7)) [all …]
|
D | exportDefaultParenthesize.symbols | 3 ['foo'+'']: 42, 4 >['foo'+''] : Symbol(['foo'+''], Decl(commalist.ts, 0, 16)) 6 ['foo'+'']: 42, 7 >['foo'+''] : Symbol(['foo'+''], Decl(commalist.ts, 1, 19)) 9 ['foo'+'']: 42, 10 >['foo'+''] : Symbol(['foo'+''], Decl(commalist.ts, 2, 19)) 12 ['foo'+'']: 42, 13 >['foo'+''] : Symbol(['foo'+''], Decl(commalist.ts, 3, 19)) 15 ['foo'+'']: 42, 16 >['foo'+''] : Symbol(['foo'+''], Decl(commalist.ts, 4, 19)) [all …]
|
D | emitCompoundExponentiationAssignmentWithIndexingOnLHS2.types | 6 function foo() { 7 >foo : () => { 0: number; } 19 foo()[0] **= foo()[0]; 20 >foo()[0] **= foo()[0] : number 21 >foo()[0] : number 22 >foo() : { 0: number; } 23 >foo : () => { 0: number; } 25 >foo()[0] : number 26 >foo() : { 0: number; } 27 >foo : () => { 0: number; } [all …]
|
D | destructuringSameNames.js | 4 let { foo, foo: bar } = { foo: 1 }; property 5 ({ foo, foo } = { foo: 2 }); property 6 ({ foo, foo: bar } = { foo: 3 }); property 7 ({ foo: bar, foo } = { foo: 4 }); property 8 ({ foo, bar: foo } = { foo: 3, bar: 33 }); property 9 ({ bar: foo, foo } = { foo: 4, bar: 44 }); property 10 ({ foo: bar, foo: bar } = { foo: 5 }); property 11 ({ foo: bar, bar: foo } = { foo: 6, bar: 66 }); property 12 ({ foo: bar, foo: bar } = { foo: 7 }); property 14 [foo, foo] = [111, 1111]; [all …]
|
D | jsxAndTypeAssertion.js | 4 class foo {} class 11 x = <foo>hello {<foo>{}} </foo>; 13 x = <foo test={<foo>{}}>hello</foo>; 15 x = <foo test={<foo>{}}>hello{<foo>{}}</foo>; 17 x = <foo>x</foo>, x = <foo/>; 19 <foo>{<foo><foo>{/foo/.test(x) ? <foo><foo></foo> : <foo><foo></foo>}</foo>}</foo> 25 var foo = /** @class */ (function () { 26 function foo() { function 28 return foo; 35 x = <foo>hello {<foo>} </foo>}; [all …]
|
D | destructuringSameNames.symbols | 4 let { foo, foo: bar } = { foo: 1 }; 5 >foo : Symbol(foo, Decl(destructuringSameNames.ts, 2, 5)) 6 >foo : Symbol(foo, Decl(destructuringSameNames.ts, 2, 25)) 8 >foo : Symbol(foo, Decl(destructuringSameNames.ts, 2, 25)) 10 ({ foo, foo } = { foo: 2 }); 11 >foo : Symbol(foo, Decl(destructuringSameNames.ts, 3, 2), Decl(destructuringSameNames.ts, 3, 7)) 12 >foo : Symbol(foo, Decl(destructuringSameNames.ts, 3, 2), Decl(destructuringSameNames.ts, 3, 7)) 13 >foo : Symbol(foo, Decl(destructuringSameNames.ts, 3, 17)) 15 ({ foo, foo: bar } = { foo: 3 }); 16 >foo : Symbol(foo, Decl(destructuringSameNames.ts, 4, 2), Decl(destructuringSameNames.ts, 4, 7)) [all …]
|
D | callWithSpread.symbols | 5 foo(x: number, y: number, ...z: string[]): X; 6 >foo : Symbol(X.foo, Decl(callWithSpread.ts, 0, 13)) 13 function foo(x: number, y: number, ...z: string[]) { 14 >foo : Symbol(foo, Decl(callWithSpread.ts, 2, 1)) 34 foo(1, 2, "abc"); 35 >foo : Symbol(foo, Decl(callWithSpread.ts, 2, 1)) 37 foo(1, 2, ...a); 38 >foo : Symbol(foo, Decl(callWithSpread.ts, 2, 1)) 41 foo(1, 2, ...a, "abc"); 42 >foo : Symbol(foo, Decl(callWithSpread.ts, 2, 1)) [all …]
|
D | stringLiteralTypesAsTypeParameterConstraint01.types | 2 function foo<T extends "foo">(f: (x: T) => T) { 3 >foo : <T extends "foo">(f: (x: T) => T) => (x: T) => T 11 function bar<T extends "foo" | "bar">(f: (x: T) => T) { 12 >bar : <T extends "foo" | "bar">(f: (x: T) => T) => (x: T) => T 20 let f = foo(x => x); 21 >f : (x: "foo") => "foo" 22 >foo(x => x) : (x: "foo") => "foo" 23 >foo : <T extends "foo">(f: (x: T) => T) => (x: T) => T 24 >x => x : (x: "foo") => "foo" 25 >x : "foo" [all …]
|
/third_party/typescript/tests/cases/conformance/declarationEmit/ |
D | nullPropertyName.ts | 3 function foo() {} function 5 foo.x = 1; 6 foo.y = 1; 9 foo.break = 1; 10 foo.case = 1; 11 foo.catch = 1; 12 foo.class = 1; 13 foo.const = 1; 14 foo.continue = 1; 15 foo.debugger = 1; [all …]
|
/third_party/typescript/tests/cases/conformance/jsdoc/declarations/ |
D | jsDeclarationsFunctionKeywordPropExhaustive.ts | 7 function foo() {} function 9 foo.x = 1; 10 foo.y = 1; 13 foo.break = 1; 14 foo.case = 1; 15 foo.catch = 1; 16 foo.class = 1; 17 foo.const = 1; 18 foo.continue = 1; 19 foo.debugger = 1; [all …]
|
/third_party/typescript/tests/cases/compiler/ |
D | convertClassExpressionToFunctionFromObjectProperty1.ts | 3 const foo: any = {}; constant 6 foo.x = class { 9 foo.y = class { 14 foo.break = class { 17 foo.case = class { 20 foo.catch = class { 23 foo.class = class { 26 foo.const = class { 29 foo.continue = class { 32 foo.debugger = class { [all …]
|