Home
last modified time | relevance | path

Searched refs:var2 (Results 1 – 25 of 122) sorted by relevance

12345

/third_party/typescript/tests/baselines/reference/
DtypeGuardsInClassAccessors.js16 var var2: string | number;
17 num = typeof var2 === "string" && var2.length; // string
30 var var2: string | number;
31 num = typeof var2 === "string" && var2.length; // string
39 var var2: string | number;
40 num = typeof var2 === "string" && var2.length; // string
53 var var2: string | number;
54 num = typeof var2 === "string" && var2.length; // string
62 var var2: string | number;
63 num = typeof var2 === "string" && var2.length; // string
[all …]
DtypeGuardsInClassMethods.js14 var var2: string | number;
15 num = typeof var2 === "string" && var2.length; // string
26 var var2: string | number;
27 num = typeof var2 === "string" && var2.length; // string
38 var var2: string | number;
39 num = typeof var2 === "string" && var2.length; // string
50 var var2: string | number;
51 num = typeof var2 === "string" && var2.length; // string
62 var var2: string | number;
63 num = typeof var2 === "string" && var2.length; // string
[all …]
DtypeGuardConstructorPrimitiveTypes.js24 let var2: String | Number | Boolean | Symbol | BigInt; variable
25 if (var2.constructor === String) {
26 var2; // String
28 if (var2.constructor === Number) {
29 var2; // Number
31 if (var2.constructor === Boolean) {
32 var2; // Boolean
34 if (var2.constructor === Symbol) {
35 var2; // Symbol
37 if (var2.constructor === BigInt) {
[all …]
DtypeGuardsInClassAccessors.types36 var var2: string | number;
37 >var2 : string | number
39 num = typeof var2 === "string" && var2.length; // string
40 >num = typeof var2 === "string" && var2.length : number
42 >typeof var2 === "string" && var2.length : number
43 >typeof var2 === "string" : boolean
44 >typeof var2 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "fu…
45 >var2 : string | number
47 >var2.length : number
48 >var2 : string
[all …]
DtypeGuardsInFunction.js14 var var2: string | number;
15 num = typeof var2 === "string" && var2.length; // string
22 var var2: string | number;
28 num = typeof var2 === "string" && var2.length; // string
42 var var2: string | number;
49 num = typeof var2 === "string" && var2.length; // string
63 var var2: string | number;
70 num = typeof var2 === "string" && var2.length; // string
85 var var2: string | number = strOrNum;
86 return var2;
[all …]
DtypeGuardConstructorPrimitiveTypes.types68 let var2: String | Number | Boolean | Symbol | BigInt;
69 >var2 : String | Number | Boolean | BigInt | Symbol
71 if (var2.constructor === String) {
72 >var2.constructor === String : boolean
73 >var2.constructor : Function
74 >var2 : String | Number | Boolean | BigInt | Symbol
78 var2; // String
79 >var2 : String
81 if (var2.constructor === Number) {
82 >var2.constructor === Number : boolean
[all …]
DtypeGuardsInClassMethods.types32 var var2: string | number;
33 >var2 : string | number
35 num = typeof var2 === "string" && var2.length; // string
36 >num = typeof var2 === "string" && var2.length : number
38 >typeof var2 === "string" && var2.length : number
39 >typeof var2 === "string" : boolean
40 >typeof var2 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "fu…
41 >var2 : string | number
43 >var2.length : number
44 >var2 : string
[all …]
DtypeGuardsInModule.js15 var var2: string | number; variable
16 if (typeof var2 === "string") {
17 num = var2.length; // string
20 num = var2; // number
34 var var2: string | number; variable
41 num = typeof var2 === "string" && var2.length; // string
71 var var2: string | number; variable
72 if (typeof var2 === "string") {
73 num = var2.length; // string
76 num = var2; // number
[all …]
DtypeGuardsObjectMethods.js16 var var2: string | number;
17 num = typeof var2 === "string" && var2.length; // string
29 var var2: string | number;
30 num = typeof var2 === "string" && var2.length; // string
39 var var2: string | number;
40 num = typeof var2 === "string" && var2.length; // string
65 var var2;
66 num = typeof var2 === "string" && var2.length; // string
75 var var2;
76 num = typeof var2 === "string" && var2.length; // string
[all …]
DtypeGuardsInClassAccessors.symbols31 var var2: string | number;
32 >var2 : Symbol(var2, Decl(typeGuardsInClassAccessors.ts, 14, 11))
34 num = typeof var2 === "string" && var2.length; // string
36 >var2 : Symbol(var2, Decl(typeGuardsInClassAccessors.ts, 14, 11))
37 >var2.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --))
38 >var2 : Symbol(var2, Decl(typeGuardsInClassAccessors.ts, 14, 11))
66 var var2: string | number;
67 >var2 : Symbol(var2, Decl(typeGuardsInClassAccessors.ts, 28, 11))
69 num = typeof var2 === "string" && var2.length; // string
71 >var2 : Symbol(var2, Decl(typeGuardsInClassAccessors.ts, 28, 11))
[all …]
DtypeGuardsObjectMethods.types17var2: string | number; num = typeof var2 === "string" && var2.length; // string // p…
38 var var2: string | number;
39 >var2 : string | number
41 num = typeof var2 === "string" && var2.length; // string
42 >num = typeof var2 === "string" && var2.length : number
44 >typeof var2 === "string" && var2.length : number
45 >typeof var2 === "string" : boolean
46 >typeof var2 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "fu…
47 >var2 : string | number
49 >var2.length : number
[all …]
DtypeGuardsInModule.types33 var var2: string | number;
34 >var2 : string | number
36 if (typeof var2 === "string") {
37 >typeof var2 === "string" : boolean
38 >typeof var2 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "fu…
39 >var2 : string | number
42 num = var2.length; // string
43 >num = var2.length : number
45 >var2.length : number
46 >var2 : string
[all …]
DtypeGuardsInClassMethods.symbols27 var var2: string | number;
28 >var2 : Symbol(var2, Decl(typeGuardsInClassMethods.ts, 12, 11))
30 num = typeof var2 === "string" && var2.length; // string
32 >var2 : Symbol(var2, Decl(typeGuardsInClassMethods.ts, 12, 11))
33 >var2.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --))
34 >var2 : Symbol(var2, Decl(typeGuardsInClassMethods.ts, 12, 11))
59 var var2: string | number;
60 >var2 : Symbol(var2, Decl(typeGuardsInClassMethods.ts, 24, 11))
62 num = typeof var2 === "string" && var2.length; // string
64 >var2 : Symbol(var2, Decl(typeGuardsInClassMethods.ts, 24, 11))
[all …]
DtypeGuardsInFunction.types31 var var2: string | number;
32 >var2 : string | number
34 num = typeof var2 === "string" && var2.length; // string
35 >num = typeof var2 === "string" && var2.length : number
37 >typeof var2 === "string" && var2.length : number
38 >typeof var2 === "string" : boolean
39 >typeof var2 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "fu…
40 >var2 : string | number
42 >var2.length : number
43 >var2 : string
[all …]
DtypeGuardsInModule.symbols28 var var2: string | number;
29 >var2 : Symbol(var2, Decl(typeGuardsInModule.ts, 13, 7))
31 if (typeof var2 === "string") {
32 >var2 : Symbol(var2, Decl(typeGuardsInModule.ts, 13, 7))
34 num = var2.length; // string
36 >var2.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --))
37 >var2 : Symbol(var2, Decl(typeGuardsInModule.ts, 13, 7))
41 num = var2; // number
43 >var2 : Symbol(var2, Decl(typeGuardsInModule.ts, 13, 7))
67 var var2: string | number;
[all …]
DtypeGuardConstructorPrimitiveTypes.symbols62 let var2: String | Number | Boolean | Symbol | BigInt;
63 >var2 : Symbol(var2, Decl(typeGuardConstructorPrimitiveTypes.ts, 22, 3))
70 if (var2.constructor === String) {
71 >var2.constructor : Symbol(Object.constructor, Decl(lib.es5.d.ts, --, --))
72 >var2 : Symbol(var2, Decl(typeGuardConstructorPrimitiveTypes.ts, 22, 3))
76 var2; // String
77 >var2 : Symbol(var2, Decl(typeGuardConstructorPrimitiveTypes.ts, 22, 3))
79 if (var2.constructor === Number) {
80 >var2.constructor : Symbol(Object.constructor, Decl(lib.es5.d.ts, --, --))
81 >var2 : Symbol(var2, Decl(typeGuardConstructorPrimitiveTypes.ts, 22, 3))
[all …]
DtypeGuardsObjectMethods.symbols32 var var2: string | number;
33 >var2 : Symbol(var2, Decl(typeGuardsObjectMethods.ts, 14, 11))
35 num = typeof var2 === "string" && var2.length; // string
37 >var2 : Symbol(var2, Decl(typeGuardsObjectMethods.ts, 14, 11))
38 >var2.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --))
39 >var2 : Symbol(var2, Decl(typeGuardsObjectMethods.ts, 14, 11))
66 var var2: string | number;
67 >var2 : Symbol(var2, Decl(typeGuardsObjectMethods.ts, 27, 11))
69 num = typeof var2 === "string" && var2.length; // string
71 >var2 : Symbol(var2, Decl(typeGuardsObjectMethods.ts, 27, 11))
[all …]
DtypeGuardsInFunction.symbols26 var var2: string | number;
27 >var2 : Symbol(var2, Decl(typeGuardsInFunction.ts, 12, 7))
29 num = typeof var2 === "string" && var2.length; // string
31 >var2 : Symbol(var2, Decl(typeGuardsInFunction.ts, 12, 7))
32 >var2.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --))
33 >var2 : Symbol(var2, Decl(typeGuardsInFunction.ts, 12, 7))
49 var var2: string | number;
50 >var2 : Symbol(var2, Decl(typeGuardsInFunction.ts, 20, 7))
65 num = typeof var2 === "string" && var2.length; // string
67 >var2 : Symbol(var2, Decl(typeGuardsInFunction.ts, 20, 7))
[all …]
DtypeGuardsInExternalModule.js17 export var var2: string | number; variable
18 if (typeof var2 === "string") {
20 strOrNum = var2; // string | number
23 strOrNum = var2; // number | string
31 exports.var2 = void 0;
43 if (typeof exports.var2 === "string") {
45 strOrNum = exports.var2; // string | number
48 strOrNum = exports.var2; // number | string
/third_party/typescript/tests/cases/conformance/expressions/typeGuards/
DtypeGuardsInClassAccessors.ts17 var var2: string | number;
18 num = typeof var2 === "string" && var2.length; // string
31 var var2: string | number;
32 num = typeof var2 === "string" && var2.length; // string
40 var var2: string | number;
41 num = typeof var2 === "string" && var2.length; // string
54 var var2: string | number;
55 num = typeof var2 === "string" && var2.length; // string
63 var var2: string | number;
64 num = typeof var2 === "string" && var2.length; // string
[all …]
DtypeGuardsInClassMethods.ts13 var var2: string | number;
14 num = typeof var2 === "string" && var2.length; // string
25 var var2: string | number;
26 num = typeof var2 === "string" && var2.length; // string
37 var var2: string | number;
38 num = typeof var2 === "string" && var2.length; // string
49 var var2: string | number;
50 num = typeof var2 === "string" && var2.length; // string
61 var var2: string | number;
62 num = typeof var2 === "string" && var2.length; // string
DtypeGuardsInFunction.ts13 var var2: string | number;
14 num = typeof var2 === "string" && var2.length; // string
21 var var2: string | number;
27 num = typeof var2 === "string" && var2.length; // string
41 var var2: string | number;
48 num = typeof var2 === "string" && var2.length; // string
62 var var2: string | number;
69 num = typeof var2 === "string" && var2.length; // string
84 var var2: string | number = strOrNum;
85 return var2;
DtypeGuardsInModule.ts14 var var2: string | number; variable
15 if (typeof var2 === "string") {
16 num = var2.length; // string
19 num = var2; // number
33 var var2: string | number; variable
40 num = typeof var2 === "string" && var2.length; // string
70 var var2: string | number; variable
71 if (typeof var2 === "string") {
72 num = var2.length; // string
75 num = var2; // number
DtypeGuardsObjectMethods.ts17 var var2: string | number;
18 num = typeof var2 === "string" && var2.length; // string
30 var var2: string | number;
31 num = typeof var2 === "string" && var2.length; // string
40 var var2: string | number;
41 num = typeof var2 === "string" && var2.length; // string
/third_party/typescript/tests/cases/compiler/
DtypeGuardConstructorPrimitiveTypes.ts25 let var2: String | Number | Boolean | Symbol | BigInt; variable
26 if (var2.constructor === String) {
27 var2; // String
29 if (var2.constructor === Number) {
30 var2; // Number
32 if (var2.constructor === Boolean) {
33 var2; // Boolean
35 if (var2.constructor === Symbol) {
36 var2; // Symbol
38 if (var2.constructor === BigInt) {
[all …]

12345