File: regexpExecAndMatchTypeUsages%28strict%3Dtrue%29.types

package info (click to toggle)
node-typescript 4.9.5%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 533,908 kB
  • sloc: javascript: 2,018,330; makefile: 7; sh: 1
file content (113 lines) | stat: -rw-r--r-- 3,186 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
=== tests/cases/compiler/regexpExecAndMatchTypeUsages.ts ===
export function foo(matchResult: RegExpMatchArray, execResult: RegExpExecArray) {
>foo : (matchResult: RegExpMatchArray, execResult: RegExpExecArray) => void
>matchResult : RegExpMatchArray
>execResult : RegExpExecArray

    matchResult[0].length;
>matchResult[0].length : number
>matchResult[0] : string
>matchResult : RegExpMatchArray
>0 : 0
>length : number

    matchResult[999].length;
>matchResult[999].length : number
>matchResult[999] : string | undefined
>matchResult : RegExpMatchArray
>999 : 999
>length : number

    matchResult.index + 0;
>matchResult.index + 0 : number
>matchResult.index : number | undefined
>matchResult : RegExpMatchArray
>index : number | undefined
>0 : 0

    matchResult.input.length;
>matchResult.input.length : number
>matchResult.input : string | undefined
>matchResult : RegExpMatchArray
>input : string | undefined
>length : number

    matchResult.groups["someVariable"].length;
>matchResult.groups["someVariable"].length : number
>matchResult.groups["someVariable"] : string | undefined
>matchResult.groups : { [key: string]: string; } | undefined
>matchResult : RegExpMatchArray
>groups : { [key: string]: string; } | undefined
>"someVariable" : "someVariable"
>length : number

    matchResult.groups = undefined;
>matchResult.groups = undefined : undefined
>matchResult.groups : { [key: string]: string; }
>matchResult : RegExpMatchArray
>groups : { [key: string]: string; }
>undefined : undefined

    execResult[0].length;
>execResult[0].length : number
>execResult[0] : string
>execResult : RegExpExecArray
>0 : 0
>length : number

    execResult[999].length;
>execResult[999].length : number
>execResult[999] : string | undefined
>execResult : RegExpExecArray
>999 : 999
>length : number

    execResult.index + 0;
>execResult.index + 0 : number
>execResult.index : number
>execResult : RegExpExecArray
>index : number
>0 : 0

    execResult.input.length;
>execResult.input.length : number
>execResult.input : string
>execResult : RegExpExecArray
>input : string
>length : number

    execResult.groups["someVariable"].length;
>execResult.groups["someVariable"].length : number
>execResult.groups["someVariable"] : string | undefined
>execResult.groups : { [key: string]: string; } | undefined
>execResult : RegExpExecArray
>groups : { [key: string]: string; } | undefined
>"someVariable" : "someVariable"
>length : number

    execResult.groups = undefined;
>execResult.groups = undefined : undefined
>execResult.groups : { [key: string]: string; }
>execResult : RegExpExecArray
>groups : { [key: string]: string; }
>undefined : undefined

    if (Math.random()) {
>Math.random() : number
>Math.random : () => number
>Math : Math
>random : () => number

        matchResult = execResult;
>matchResult = execResult : RegExpExecArray
>matchResult : RegExpMatchArray
>execResult : RegExpExecArray
    }
    else {
        execResult = matchResult
>execResult = matchResult : RegExpMatchArray
>execResult : RegExpExecArray
>matchResult : RegExpMatchArray
    }
}