File: bpSpan_functionExpressions.baseline

package info (click to toggle)
node-typescript 2.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 203,952 kB
  • ctags: 52,987
  • sloc: sh: 11; makefile: 5
file content (174 lines) | stat: -rw-r--r-- 6,706 bytes parent folder | download | duplicates (7)
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174

1  >var greetings = 0;

    ~~~~~~~~~~~~~~~~~~~                           => Pos: (0 to 18)  SpanInfo: {"start":0,"length":17}
    >var greetings = 0
    >:=> (line 1, col 0) to (line 1, col 17)
--------------------------------
2  >var greet = (greeting: string): number => {

    ~~~~~~~~~~~                                   => Pos: (19 to 29)  SpanInfo: {"start":19,"length":84}
    >var greet = (greeting: string): number => {
    >    greetings++;
    >    return greetings;
    >}
    >:=> (line 2, col 0) to (line 5, col 1)
2  >var greet = (greeting: string): number => {

               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  => Pos: (30 to 62)  SpanInfo: {"start":67,"length":11}
    >greetings++
    >:=> (line 3, col 4) to (line 3, col 15)
--------------------------------
3  >    greetings++;

    ~~~~~~~~~~~~~~~~~                             => Pos: (63 to 79)  SpanInfo: {"start":67,"length":11}
    >greetings++
    >:=> (line 3, col 4) to (line 3, col 15)
--------------------------------
4  >    return greetings;

    ~~~~~~~~~~~~~~~~~~~~~~                        => Pos: (80 to 101)  SpanInfo: {"start":84,"length":16}
    >return greetings
    >:=> (line 4, col 4) to (line 4, col 20)
--------------------------------
5  >}

    ~~                                            => Pos: (102 to 103)  SpanInfo: {"start":102,"length":1}
    >}
    >:=> (line 5, col 0) to (line 5, col 1)
--------------------------------
6  >greet("Hello");

    ~~~~~~~~~~~~~~~~                              => Pos: (104 to 119)  SpanInfo: {"start":104,"length":14}
    >greet("Hello")
    >:=> (line 6, col 0) to (line 6, col 14)
--------------------------------
7  >var incrGreetings = () => greetings++;

    ~~~~~~~~~~~~~~~~~~~                           => Pos: (120 to 138)  SpanInfo: {"start":120,"length":37}
    >var incrGreetings = () => greetings++
    >:=> (line 7, col 0) to (line 7, col 37)
7  >var incrGreetings = () => greetings++;

                       ~~~~~~~~~~~~~~~~~~~~       => Pos: (139 to 158)  SpanInfo: {"start":146,"length":11}
    >greetings++
    >:=> (line 7, col 26) to (line 7, col 37)
--------------------------------
8  >var greetNewMsg = msg => greet(msg);

    ~~~~~~~~~~~~~~~~~                             => Pos: (159 to 175)  SpanInfo: {"start":159,"length":35}
    >var greetNewMsg = msg => greet(msg)
    >:=> (line 8, col 0) to (line 8, col 35)
8  >var greetNewMsg = msg => greet(msg);

                     ~~~~~~~~~~~~~~~~~~~~         => Pos: (176 to 195)  SpanInfo: {"start":184,"length":10}
    >greet(msg)
    >:=> (line 8, col 25) to (line 8, col 35)
--------------------------------
9  >greetNewMsg = function (msg: string) {

    ~~~~~~~~~~~~~                                 => Pos: (196 to 208)  SpanInfo: {"start":196,"length":63}
    >greetNewMsg = function (msg: string) {
    >    return greet(msg);
    >}
    >:=> (line 9, col 0) to (line 11, col 1)
9  >greetNewMsg = function (msg: string) {

                 ~~~~~~~~~~~~~~~~~~~~~~~~~~       => Pos: (209 to 234)  SpanInfo: {"start":239,"length":17}
    >return greet(msg)
    >:=> (line 10, col 4) to (line 10, col 21)
--------------------------------
10 >    return greet(msg);

    ~~~~~~~~~~~~~~~~~~~~~~~                       => Pos: (235 to 257)  SpanInfo: {"start":239,"length":17}
    >return greet(msg)
    >:=> (line 10, col 4) to (line 10, col 21)
--------------------------------
11 >};

    ~~~                                           => Pos: (258 to 260)  SpanInfo: {"start":258,"length":1}
    >}
    >:=> (line 11, col 0) to (line 11, col 1)
--------------------------------
12 >function bar(a = function foo() {

    ~~~~~~~~~~~~~                                 => Pos: (261 to 273)  SpanInfo: {"start":326,"length":9}
    >if (!a())
    >:=> (line 15, col 4) to (line 15, col 13)
12 >function bar(a = function foo() {

                 ~~~                              => Pos: (274 to 276)  SpanInfo: {"start":274,"length":44}
    >a = function foo() {
    >    return greetings;
    >}
    >:=> (line 12, col 13) to (line 14, col 1)
12 >function bar(a = function foo() {

                    ~~~~~~~~~~~~~~~~~~            => Pos: (277 to 294)  SpanInfo: {"start":299,"length":16}
    >return greetings
    >:=> (line 13, col 4) to (line 13, col 20)
--------------------------------
13 >    return greetings;

    ~~~~~~~~~~~~~~~~~~~~~~                        => Pos: (295 to 316)  SpanInfo: {"start":299,"length":16}
    >return greetings
    >:=> (line 13, col 4) to (line 13, col 20)
--------------------------------
14 >}) {

    ~~                                            => Pos: (317 to 318)  SpanInfo: {"start":317,"length":1}
    >}
    >:=> (line 14, col 0) to (line 14, col 1)
14 >}) {

      ~~~                                         => Pos: (319 to 321)  SpanInfo: {"start":326,"length":9}
    >if (!a())
    >:=> (line 15, col 4) to (line 15, col 13)
--------------------------------
15 >    if (!a()) {

    ~~~~~~~~~~~~~~~~                              => Pos: (322 to 337)  SpanInfo: {"start":326,"length":9}
    >if (!a())
    >:=> (line 15, col 4) to (line 15, col 13)
--------------------------------
16 >        return a;

    ~~~~~~~~~~~~~~~~~~                            => Pos: (338 to 355)  SpanInfo: {"start":346,"length":8}
    >return a
    >:=> (line 16, col 8) to (line 16, col 16)
--------------------------------
17 >    }

    ~~~~~~                                        => Pos: (356 to 361)  SpanInfo: {"start":346,"length":8}
    >return a
    >:=> (line 16, col 8) to (line 16, col 16)
--------------------------------
18 >    return function bar() {

    ~~~~~~~~~~                                    => Pos: (362 to 371)  SpanInfo: {"start":366,"length":56}
    >return function bar() {
    >        return -greetings;
    >    }
    >:=> (line 18, col 4) to (line 20, col 5)
18 >    return function bar() {

              ~~~~~~~~~~~~~~~~~~                  => Pos: (372 to 389)  SpanInfo: {"start":398,"length":17}
    >return -greetings
    >:=> (line 19, col 8) to (line 19, col 25)
--------------------------------
19 >        return -greetings;

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~                   => Pos: (390 to 416)  SpanInfo: {"start":398,"length":17}
    >return -greetings
    >:=> (line 19, col 8) to (line 19, col 25)
--------------------------------
20 >    };

    ~~~~~~~                                       => Pos: (417 to 423)  SpanInfo: {"start":421,"length":1}
    >}
    >:=> (line 20, col 4) to (line 20, col 5)
--------------------------------
21 >}
    ~                                             => Pos: (424 to 424)  SpanInfo: {"start":424,"length":1}
    >}
    >:=> (line 21, col 0) to (line 21, col 1)