/third_party/typescript/tests/baselines/reference/ |
D | moduleExportsElementAccessAssignment.symbols | 2 const mod1 = require("./mod1"); 3 >mod1 : Symbol(mod1, Decl(mod2.js, 0, 5)) 5 >"./mod1" : Symbol(mod1, Decl(mod1.js, 0, 0)) 7 mod1.a; 8 >mod1.a : Symbol(mod1.a, Decl(mod1.js, 0, 0)) 9 >mod1 : Symbol(mod1, Decl(mod2.js, 0, 5)) 10 >a : Symbol(mod1.a, Decl(mod1.js, 0, 0)) 12 mod1.b; 13 >mod1.b : Symbol(mod1["b"], Decl(mod1.js, 0, 23)) 14 >mod1 : Symbol(mod1, Decl(mod2.js, 0, 5)) [all …]
|
D | moduleExportWithExportPropertyAssignment4.symbols | 3 var mod1 = require('./mod1') 4 >mod1 : Symbol(mod1, Decl(a.js, 1, 3)) 6 >'./mod1' : Symbol("tests/cases/conformance/salsa/mod1", Decl(mod1.js, 0, 0)) 8 mod1.justExport.toFixed() 9 >mod1.justExport.toFixed : Symbol(Number.toFixed, Decl(lib.es5.d.ts, --, --)) 10 >mod1.justExport : Symbol(mod1.justExport, Decl(mod1.js, 1, 36)) 11 >mod1 : Symbol(mod1, Decl(a.js, 1, 3)) 12 >justExport : Symbol(mod1.justExport, Decl(mod1.js, 1, 36)) 15 mod1.bothBefore.toFixed() // error 16 >mod1.bothBefore : Symbol(mod1.bothBefore, Decl(mod1.js, 2, 16), Decl(mod1.js, 0, 0)) [all …]
|
D | moduleExportWithExportPropertyAssignment3.symbols | 3 var mod1 = require('./mod1') 4 >mod1 : Symbol(mod1, Decl(a.js, 1, 3)) 6 >'./mod1' : Symbol("tests/cases/conformance/salsa/mod1", Decl(mod1.js, 0, 0)) 8 mod1.justExport.toFixed() 9 >mod1.justExport.toFixed : Symbol(Number.toFixed, Decl(lib.es5.d.ts, --, --)) 10 >mod1.justExport : Symbol(justExport, Decl(mod1.js, 2, 18)) 11 >mod1 : Symbol(mod1, Decl(a.js, 1, 3)) 12 >justExport : Symbol(justExport, Decl(mod1.js, 2, 18)) 15 mod1.bothBefore.toFixed() // error, 'toFixed' not on 'string | number' 16 >mod1.bothBefore : Symbol(bothBefore, Decl(mod1.js, 3, 18), Decl(mod1.js, 0, 0)) [all …]
|
D | moduleExportsElementAccessAssignment.types | 2 const mod1 = require("./mod1"); 3 >mod1 : typeof mod1 4 >require("./mod1") : typeof mod1 6 >"./mod1" : "./mod1" 8 mod1.a; 9 >mod1.a : { x: string; } 10 >mod1 : typeof mod1 13 mod1.b; 14 >mod1.b : { x: string; } 15 >mod1 : typeof mod1 [all …]
|
D | jsDeclarationsImportTypeBundled.types | 1 === tests/cases/conformance/jsdoc/declarations/folder/mod1.js === 22 /** @type {(typeof import("./folder/mod1"))[]} */ 24 >items : import("tests/cases/conformance/jsdoc/declarations/folder/mod1").Item[] 31 …mod1").Item; length: number; toString(): string; toLocaleString(): string; pop(): import("tests/ca… 32 …mod1").Item; length: number; toString(): string; toLocaleString(): string; pop(): import("tests/ca… 33 …mod1").Item; length: number; toString(): string; toLocaleString(): string; pop(): import("tests/ca… 34 …mod1").Item; length: number; toString(): string; toLocaleString(): string; pop(): import("tests/ca… 35 >items : import("tests/cases/conformance/jsdoc/declarations/folder/mod1").Item[]
|
D | typedefCrossModule2.symbols | 2 var mod = require('./mod1.js'); 5 >'./mod1.js' : Symbol("tests/cases/conformance/jsdoc/mod1", Decl(mod1.js, 0, 0)) 7 /** @type {import("./mod1.js").Baz} */ 19 === tests/cases/conformance/jsdoc/mod1.js === 24 >Foo : Symbol(Foo, Decl(mod1.js, 0, 0)) 28 >exports.Bar : Symbol(Bar, Decl(mod1.js, 3, 13), Decl(mod1.js, 5, 4)) 29 >exports : Symbol(Bar, Decl(mod1.js, 3, 13), Decl(mod1.js, 5, 4)) 30 >Bar : Symbol(Bar, Decl(mod1.js, 3, 13), Decl(mod1.js, 5, 4)) 34 >module.exports : Symbol(module.exports, Decl(mod1.js, 0, 0)) 35 >module : Symbol(export=, Decl(mod1.js, 6, 23), Decl(mod1.js, 19, 17)) [all …]
|
D | moduleExportWithExportPropertyAssignment.symbols | 3 var mod1 = require('./mod1') 4 >mod1 : Symbol(mod1, Decl(a.js, 1, 3)) 6 >'./mod1' : Symbol("tests/cases/conformance/salsa/mod1", Decl(mod1.js, 0, 0)) 8 mod1() 9 >mod1 : Symbol(mod1, Decl(a.js, 1, 3)) 11 mod1.f() // error, not enough arguments 12 >mod1.f : Symbol(mod1.f, Decl(mod1.js, 1, 32)) 13 >mod1 : Symbol(mod1, Decl(a.js, 1, 3)) 14 >f : Symbol(mod1.f, Decl(mod1.js, 1, 32)) 25 === tests/cases/conformance/salsa/mod1.js === [all …]
|
D | commonJSImportNestedClassTypeReference.symbols | 2 const { K } = require("./mod1"); 5 >"./mod1" : Symbol("tests/cases/conformance/salsa/mod1", Decl(mod1.js, 0, 0)) 13 >k.values : Symbol(K.values, Decl(mod1.js, 1, 13)) 15 >values : Symbol(K.values, Decl(mod1.js, 1, 13)) 18 === tests/cases/conformance/salsa/mod1.js === 20 >NS : Symbol(NS, Decl(mod1.js, 0, 3), Decl(mod1.js, 0, 11)) 23 >NS.K : Symbol(K, Decl(mod1.js, 0, 11)) 24 >NS : Symbol(NS, Decl(mod1.js, 0, 3), Decl(mod1.js, 0, 11)) 25 >K : Symbol(K, Decl(mod1.js, 0, 11)) 28 >values : Symbol(K.values, Decl(mod1.js, 1, 13)) [all …]
|
D | checkExportsObjectAssignPrototypeProperty.symbols | 4 import Person = require("./mod1"); 12 >m1.thing : Symbol(Person.thing, Decl(mod1.js, 9, 2)) 14 >thing : Symbol(Person.thing, Decl(mod1.js, 9, 2)) 17 >m1.readonlyProp : Symbol(Person.readonlyProp, Decl(mod1.js, 10, 80)) 19 >readonlyProp : Symbol(Person.readonlyProp, Decl(mod1.js, 10, 80)) 22 >m1.rwAccessors : Symbol(Person.rwAccessors, Decl(mod1.js, 11, 93)) 24 >rwAccessors : Symbol(Person.rwAccessors, Decl(mod1.js, 11, 93)) 27 >m1.readonlyAccessor : Symbol(Person.readonlyAccessor, Decl(mod1.js, 12, 106)) 29 >readonlyAccessor : Symbol(Person.readonlyAccessor, Decl(mod1.js, 12, 106)) 32 >m1.setonlyAccessor : Symbol(Person.setonlyAccessor, Decl(mod1.js, 13, 88)) [all …]
|
D | moduleExportWithExportPropertyAssignment4.types | 3 var mod1 = require('./mod1') 4 >mod1 : typeof mod1 5 >require('./mod1') : typeof mod1 7 >'./mod1' : "./mod1" 9 mod1.justExport.toFixed() 10 >mod1.justExport.toFixed() : string 11 >mod1.justExport.toFixed : (fractionDigits?: number) => string 12 >mod1.justExport : number 13 >mod1 : typeof mod1 17 mod1.bothBefore.toFixed() // error [all …]
|
D | checkOtherObjectAssignProperty.symbols | 2 const mod = require("./mod1"); 5 >"./mod1" : Symbol(mod, Decl(mod1.js, 0, 0)) 8 >mod.thing : Symbol(mod.thing, Decl(mod1.js, 0, 42)) 10 >thing : Symbol(mod.thing, Decl(mod1.js, 0, 42)) 19 >mod.bad1 : Symbol(mod.bad1, Decl(mod1.js, 10, 72)) 21 >bad1 : Symbol(mod.bad1, Decl(mod1.js, 10, 72)) 24 >mod.bad2 : Symbol(mod.bad2, Decl(mod1.js, 13, 44)) 26 >bad2 : Symbol(mod.bad2, Decl(mod1.js, 13, 44)) 29 >mod.bad3 : Symbol(mod.bad3, Decl(mod1.js, 14, 77)) 31 >bad3 : Symbol(mod.bad3, Decl(mod1.js, 14, 77)) [all …]
|
D | moduleExportWithExportPropertyAssignment2.symbols | 3 var mod1 = require('./mod1') 4 >mod1 : Symbol(mod1, Decl(a.js, 1, 3)) 6 >'./mod1' : Symbol("tests/cases/conformance/salsa/mod1", Decl(mod1.js, 0, 0)) 8 mod1.toFixed(12) 9 >mod1.toFixed : Symbol(Number.toFixed, Decl(lib.es5.d.ts, --, --)) 10 >mod1 : Symbol(mod1, Decl(a.js, 1, 3)) 13 mod1.f() // error, 'f' is not a property on 'number' 14 >mod1 : Symbol(mod1, Decl(a.js, 1, 3)) 25 === tests/cases/conformance/salsa/mod1.js === 28 >module.exports : Symbol(module.exports, Decl(mod1.js, 0, 0)) [all …]
|
D | nestedDestructuringOfRequire.symbols | 4 >chalk : Symbol(chalk, Decl(mod1.js, 2, 2)) 7 } = require('./mod1'); 9 >'./mod1' : Symbol("tests/cases/conformance/salsa/mod1", Decl(mod1.js, 0, 0)) 16 === tests/cases/conformance/salsa/mod1.js === 18 >chalk : Symbol(chalk, Decl(mod1.js, 0, 5)) 21 >grey : Symbol(grey, Decl(mod1.js, 0, 15)) 25 >module.exports.chalk : Symbol(chalk, Decl(mod1.js, 2, 2)) 26 >module.exports : Symbol(chalk, Decl(mod1.js, 2, 2)) 27 >module : Symbol(module, Decl(mod1.js, 2, 2)) 28 >exports : Symbol(module.exports, Decl(mod1.js, 0, 0)) [all …]
|
D | moduleExportWithExportPropertyAssignment2.types | 3 var mod1 = require('./mod1') 4 >mod1 : number 5 >require('./mod1') : number 7 >'./mod1' : "./mod1" 9 mod1.toFixed(12) 10 >mod1.toFixed(12) : string 11 >mod1.toFixed : (fractionDigits?: number) => string 12 >mod1 : number 16 mod1.f() // error, 'f' is not a property on 'number' 17 >mod1.f() : any [all …]
|
D | moduleExportWithExportPropertyAssignment3.types | 3 var mod1 = require('./mod1') 4 >mod1 : { justExport: number; bothBefore: string | number; bothAfter: string | number; justProperty… 5 >require('./mod1') : { justExport: number; bothBefore: string | number; bothAfter: string | number;… 7 >'./mod1' : "./mod1" 9 mod1.justExport.toFixed() 10 >mod1.justExport.toFixed() : string 11 >mod1.justExport.toFixed : (fractionDigits?: number) => string 12 >mod1.justExport : number 13 >mod1 : { justExport: number; bothBefore: string | number; bothAfter: string | number; justProperty… 17 mod1.bothBefore.toFixed() // error, 'toFixed' not on 'string | number' [all …]
|
D | jsdocImportType.symbols | 3 /** @typedef {import("./mod1")} C 9 >c.chunk : Symbol(D.chunk, Decl(mod1.js, 2, 19)) 11 >chunk : Symbol(D.chunk, Decl(mod1.js, 2, 19)) 13 const D = require("./mod1"); 16 >"./mod1" : Symbol("tests/cases/conformance/jsdoc/mod1", Decl(mod1.js, 0, 0)) 23 >d.chunk : Symbol(D.chunk, Decl(mod1.js, 2, 19)) 25 >chunk : Symbol(D.chunk, Decl(mod1.js, 2, 19)) 39 === tests/cases/conformance/jsdoc/mod1.js === 42 >Chunk : Symbol(Chunk, Decl(mod1.js, 0, 0)) 46 >this.chunk : Symbol(Chunk.chunk, Decl(mod1.js, 2, 19)) [all …]
|
D | commonJSImportClassTypeReference.symbols | 2 const { K } = require("./mod1"); 5 >"./mod1" : Symbol("tests/cases/conformance/salsa/mod1", Decl(mod1.js, 0, 0)) 13 >k.values : Symbol(K.values, Decl(mod1.js, 0, 9)) 15 >values : Symbol(K.values, Decl(mod1.js, 0, 9)) 18 === tests/cases/conformance/salsa/mod1.js === 20 >K : Symbol(K, Decl(mod1.js, 0, 0)) 23 >values : Symbol(K.values, Decl(mod1.js, 0, 9)) 26 >K : Symbol(K, Decl(mod1.js, 0, 0)) 30 >exports.K : Symbol(K, Decl(mod1.js, 4, 1)) 31 >exports : Symbol(K, Decl(mod1.js, 4, 1)) [all …]
|
D | typeReferenceDirectives12.symbols | 5 import "./mod1"; 13 >new Cls().foo : Symbol(Cls.foo, Decl(mod1.ts, 6, 19)) 15 >foo : Symbol(Cls.foo, Decl(mod1.ts, 6, 19)) 19 >Cls.bar : Symbol(Cls.bar, Decl(mod1.ts, 9, 19)) 21 >bar : Symbol(Cls.bar, Decl(mod1.ts, 9, 19)) 30 >Cls : Symbol(Cls, Decl(main.ts, 0, 0), Decl(mod1.ts, 5, 25), Decl(mod1.ts, 8, 5)) 36 === /mod1.ts === 40 >Cls : Symbol(Cls, Decl(mod1.ts, 2, 8)) 43 >Cls.prototype.foo : Symbol(Cls.foo, Decl(mod1.ts, 6, 19)) 45 >Cls : Symbol(Cls, Decl(mod1.ts, 2, 8)) [all …]
|
D | typeReferenceDirectives9.symbols | 5 import "./mod1"; 13 >new Cls().foo : Symbol(Cls.foo, Decl(mod1.ts, 6, 19)) 15 >foo : Symbol(Cls.foo, Decl(mod1.ts, 6, 19)) 19 >Cls.bar : Symbol(Cls.bar, Decl(mod1.ts, 9, 19)) 21 >bar : Symbol(Cls.bar, Decl(mod1.ts, 9, 19)) 30 >Cls : Symbol(Cls, Decl(main.ts, 0, 0), Decl(mod1.ts, 5, 25), Decl(mod1.ts, 8, 5)) 36 === /mod1.ts === 40 >Cls : Symbol(Cls, Decl(mod1.ts, 2, 8)) 43 >Cls.prototype.foo : Symbol(Cls.foo, Decl(mod1.ts, 6, 19)) 45 >Cls : Symbol(Cls, Decl(mod1.ts, 2, 8)) [all …]
|
D | jsdocImportType2.symbols | 3 /** @typedef {import("./mod1")} C 9 >c.chunk : Symbol(D.chunk, Decl(mod1.js, 2, 19)) 11 >chunk : Symbol(D.chunk, Decl(mod1.js, 2, 19)) 13 const D = require("./mod1"); 16 >"./mod1" : Symbol("tests/cases/conformance/jsdoc/mod1", Decl(mod1.js, 0, 0)) 23 >d.chunk : Symbol(D.chunk, Decl(mod1.js, 2, 19)) 25 >chunk : Symbol(D.chunk, Decl(mod1.js, 2, 19)) 39 === tests/cases/conformance/jsdoc/mod1.js === 42 >module.exports : Symbol(module.exports, Decl(mod1.js, 0, 0)) 43 >module : Symbol(export=, Decl(mod1.js, 0, 0)) [all …]
|
D | checkExportsObjectAssignProperty.symbols | 4 import m1 = require("./mod1"); 8 >m1.thing : Symbol(m1.thing, Decl(mod1.js, 0, 0)) 10 >thing : Symbol(m1.thing, Decl(mod1.js, 0, 0)) 13 >m1.readonlyProp : Symbol(m1.readonlyProp, Decl(mod1.js, 0, 71)) 15 >readonlyProp : Symbol(m1.readonlyProp, Decl(mod1.js, 0, 71)) 18 >m1.rwAccessors : Symbol(m1.rwAccessors, Decl(mod1.js, 1, 84)) 20 >rwAccessors : Symbol(m1.rwAccessors, Decl(mod1.js, 1, 84)) 23 >m1.readonlyAccessor : Symbol(m1.readonlyAccessor, Decl(mod1.js, 2, 97)) 25 >readonlyAccessor : Symbol(m1.readonlyAccessor, Decl(mod1.js, 2, 97)) 28 >m1.setonlyAccessor : Symbol(m1.setonlyAccessor, Decl(mod1.js, 3, 79)) [all …]
|
D | commonJSImportExportedClassExpression.symbols | 2 const { K } = require("./mod1"); 5 >"./mod1" : Symbol("tests/cases/conformance/salsa/mod1", Decl(mod1.js, 0, 0)) 13 >k.values : Symbol(K.values, Decl(mod1.js, 0, 21)) 15 >values : Symbol(K.values, Decl(mod1.js, 0, 21)) 18 === tests/cases/conformance/salsa/mod1.js === 20 >exports.K : Symbol(K, Decl(mod1.js, 0, 0)) 21 >exports : Symbol(K, Decl(mod1.js, 0, 0)) 22 >K : Symbol(K, Decl(mod1.js, 0, 0)) 23 >K : Symbol(K, Decl(mod1.js, 0, 11)) 26 >values : Symbol(K.values, Decl(mod1.js, 0, 21))
|
D | jsdocImportTypeReferenceToClassAlias.symbols | 1 === tests/cases/conformance/jsdoc/mod1.js === 3 >C : Symbol(C, Decl(mod1.js, 0, 0)) 6 >s : Symbol(C.s, Decl(mod1.js, 0, 9)) 9 >module.exports.C : Symbol(C, Decl(mod1.js, 2, 1)) 10 >module.exports : Symbol(C, Decl(mod1.js, 2, 1)) 11 >module : Symbol(module, Decl(mod1.js, 2, 1)) 12 >exports : Symbol(module.exports, Decl(mod1.js, 0, 0)) 13 >C : Symbol(C, Decl(mod1.js, 2, 1)) 14 >C : Symbol(C, Decl(mod1.js, 0, 0)) 17 /** @typedef {import('./mod1').C} X */ [all …]
|
D | moduleExportWithExportPropertyAssignment.types | 3 var mod1 = require('./mod1') 4 >mod1 : { (): void; f: (a: number) => void; } 5 >require('./mod1') : { (): void; f: (a: number) => void; } 7 >'./mod1' : "./mod1" 9 mod1() 10 >mod1() : void 11 >mod1 : { (): void; f: (a: number) => void; } 13 mod1.f() // error, not enough arguments 14 >mod1.f() : void 15 >mod1.f : (a: number) => void [all …]
|
D | enumTagImported.symbols | 2 /** @typedef {import("./mod1").TestEnum} TE */ 7 /** @type {import("./mod1").TestEnum} */ 12 import { TestEnum } from "./mod1" 18 >TestEnum.ADD : Symbol(ADD, Decl(mod1.js, 1, 25)) 20 >ADD : Symbol(ADD, Decl(mod1.js, 1, 25)) 23 === tests/cases/conformance/jsdoc/mod1.js === 26 >TestEnum : Symbol(TestEnum, Decl(mod1.js, 1, 12), Decl(mod1.js, 0, 4)) 29 >ADD : Symbol(ADD, Decl(mod1.js, 1, 25)) 32 >REMOVE : Symbol(REMOVE, Decl(mod1.js, 2, 15))
|