TypeScript/tests/baselines/reference/bpSpan_functions.baseline
2014-10-21 14:02:47 -07:00

372 lines
16 KiB
Plaintext

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 >function greet(greeting: string): number {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (19 to 61) SpanInfo: {"start":66,"length":11}
>greetings++
>:=> (line 3, col 4) to (line 3, col 15)
--------------------------------
3 > greetings++;
~~~~~~~~~~~~~~~~~ => Pos: (62 to 78) SpanInfo: {"start":66,"length":11}
>greetings++
>:=> (line 3, col 4) to (line 3, col 15)
--------------------------------
4 > return greetings;
~~~~~~~~~~~~~~~~~~~~~~ => Pos: (79 to 100) SpanInfo: {"start":83,"length":16}
>return greetings
>:=> (line 4, col 4) to (line 4, col 20)
--------------------------------
5 >}
~~ => Pos: (101 to 102) SpanInfo: {"start":101,"length":1}
>}
>:=> (line 5, col 0) to (line 5, col 1)
--------------------------------
6 >function greet2(greeting: string, n = 10, x?: string, ...restParams: string[]): number {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (103 to 135) SpanInfo: {"start":196,"length":11}
>greetings++
>:=> (line 7, col 4) to (line 7, col 15)
6 >function greet2(greeting: string, n = 10, x?: string, ...restParams: string[]): number {
~~~~~~~~~~~~~~~~~~~~=> Pos: (136 to 155) SpanInfo: {"start":137,"length":6}
>n = 10
>:=> (line 6, col 34) to (line 6, col 40)
6 >function greet2(greeting: string, n = 10, x?: string, ...restParams: string[]): number {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (156 to 188) SpanInfo: {"start":157,"length":23}
>...restParams: string[]
>:=> (line 6, col 54) to (line 6, col 77)
6 >function greet2(greeting: string, n = 10, x?: string, ...restParams: string[]): number {
~~~=> Pos: (189 to 191) SpanInfo: {"start":196,"length":11}
>greetings++
>:=> (line 7, col 4) to (line 7, col 15)
--------------------------------
7 > greetings++;
~~~~~~~~~~~~~~~~~ => Pos: (192 to 208) SpanInfo: {"start":196,"length":11}
>greetings++
>:=> (line 7, col 4) to (line 7, col 15)
--------------------------------
8 > return greetings;
~~~~~~~~~~~~~~~~~~~~~~ => Pos: (209 to 230) SpanInfo: {"start":213,"length":16}
>return greetings
>:=> (line 8, col 4) to (line 8, col 20)
--------------------------------
9 >}
~~ => Pos: (231 to 232) SpanInfo: {"start":231,"length":1}
>}
>:=> (line 9, col 0) to (line 9, col 1)
--------------------------------
10 >function foo(greeting: string, n = 10, x?: string, ...restParams: string[])
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (233 to 262) SpanInfo: {"start":315,"length":6}
>return
>:=> (line 12, col 4) to (line 12, col 10)
10 >function foo(greeting: string, n = 10, x?: string, ...restParams: string[])
~~~~~~~~~~~~~~~~~~~~=> Pos: (263 to 282) SpanInfo: {"start":264,"length":6}
>n = 10
>:=> (line 10, col 31) to (line 10, col 37)
10 >function foo(greeting: string, n = 10, x?: string, ...restParams: string[])
~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (283 to 308) SpanInfo: {"start":284,"length":23}
>...restParams: string[]
>:=> (line 10, col 51) to (line 10, col 74)
--------------------------------
11 >{
~~ => Pos: (309 to 310) SpanInfo: {"start":315,"length":6}
>return
>:=> (line 12, col 4) to (line 12, col 10)
--------------------------------
12 > return;
~~~~~~~~~~~~ => Pos: (311 to 322) SpanInfo: {"start":315,"length":6}
>return
>:=> (line 12, col 4) to (line 12, col 10)
--------------------------------
13 >}
~~ => Pos: (323 to 324) SpanInfo: {"start":323,"length":1}
>}
>:=> (line 13, col 0) to (line 13, col 1)
--------------------------------
14 >module m {
~~~~~~~~~~~ => Pos: (325 to 335) SpanInfo: {"start":325,"length":389}
>module m {
> var greetings = 0;
> function greet(greeting: string): number {
> greetings++;
> return greetings;
> }
> function greet2(greeting: string, n = 10, x?: string, ...restParams: string[]): number {
> greetings++;
> return greetings;
> }
> function foo(greeting: string, n = 10, x?: string, ...restParams: string[])
> {
> return;
> }
>}
>:=> (line 14, col 0) to (line 28, col 1)
--------------------------------
15 > var greetings = 0;
~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (336 to 358) SpanInfo: {"start":340,"length":17}
>var greetings = 0
>:=> (line 15, col 4) to (line 15, col 21)
--------------------------------
16 > function greet(greeting: string): number {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (359 to 405) SpanInfo: {"start":414,"length":11}
>greetings++
>:=> (line 17, col 8) to (line 17, col 19)
--------------------------------
17 > greetings++;
~~~~~~~~~~~~~~~~~~~~~ => Pos: (406 to 426) SpanInfo: {"start":414,"length":11}
>greetings++
>:=> (line 17, col 8) to (line 17, col 19)
--------------------------------
18 > return greetings;
~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (427 to 452) SpanInfo: {"start":435,"length":16}
>return greetings
>:=> (line 18, col 8) to (line 18, col 24)
--------------------------------
19 > }
~~~~~~ => Pos: (453 to 458) SpanInfo: {"start":457,"length":1}
>}
>:=> (line 19, col 4) to (line 19, col 5)
--------------------------------
20 > function greet2(greeting: string, n = 10, x?: string, ...restParams: string[]): number {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (459 to 495) SpanInfo: {"start":560,"length":11}
>greetings++
>:=> (line 21, col 8) to (line 21, col 19)
20 > function greet2(greeting: string, n = 10, x?: string, ...restParams: string[]): number {
~~~~~~~~~~~~~~~~~~~~=> Pos: (496 to 515) SpanInfo: {"start":497,"length":6}
>n = 10
>:=> (line 20, col 38) to (line 20, col 44)
20 > function greet2(greeting: string, n = 10, x?: string, ...restParams: string[]): number {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (516 to 548) SpanInfo: {"start":517,"length":23}
>...restParams: string[]
>:=> (line 20, col 58) to (line 20, col 81)
20 > function greet2(greeting: string, n = 10, x?: string, ...restParams: string[]): number {
~~~=> Pos: (549 to 551) SpanInfo: {"start":560,"length":11}
>greetings++
>:=> (line 21, col 8) to (line 21, col 19)
--------------------------------
21 > greetings++;
~~~~~~~~~~~~~~~~~~~~~ => Pos: (552 to 572) SpanInfo: {"start":560,"length":11}
>greetings++
>:=> (line 21, col 8) to (line 21, col 19)
--------------------------------
22 > return greetings;
~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (573 to 598) SpanInfo: {"start":581,"length":16}
>return greetings
>:=> (line 22, col 8) to (line 22, col 24)
--------------------------------
23 > }
~~~~~~ => Pos: (599 to 604) SpanInfo: {"start":603,"length":1}
>}
>:=> (line 23, col 4) to (line 23, col 5)
--------------------------------
24 > function foo(greeting: string, n = 10, x?: string, ...restParams: string[])
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (605 to 638) SpanInfo: {"start":699,"length":6}
>return
>:=> (line 26, col 8) to (line 26, col 14)
24 > function foo(greeting: string, n = 10, x?: string, ...restParams: string[])
~~~~~~~~~~~~~~~~~~~~=> Pos: (639 to 658) SpanInfo: {"start":640,"length":6}
>n = 10
>:=> (line 24, col 35) to (line 24, col 41)
24 > function foo(greeting: string, n = 10, x?: string, ...restParams: string[])
~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (659 to 684) SpanInfo: {"start":660,"length":23}
>...restParams: string[]
>:=> (line 24, col 55) to (line 24, col 78)
--------------------------------
25 > {
~~~~~~ => Pos: (685 to 690) SpanInfo: {"start":699,"length":6}
>return
>:=> (line 26, col 8) to (line 26, col 14)
--------------------------------
26 > return;
~~~~~~~~~~~~~~~~ => Pos: (691 to 706) SpanInfo: {"start":699,"length":6}
>return
>:=> (line 26, col 8) to (line 26, col 14)
--------------------------------
27 > }
~~~~~~ => Pos: (707 to 712) SpanInfo: {"start":711,"length":1}
>}
>:=> (line 27, col 4) to (line 27, col 5)
--------------------------------
28 >}
~~ => Pos: (713 to 714) SpanInfo: {"start":713,"length":1}
>}
>:=> (line 28, col 0) to (line 28, col 1)
--------------------------------
29 >module m1 {
~~~~~~~~~~~~ => Pos: (715 to 726) SpanInfo: {"start":715,"length":411}
>module m1 {
> var greetings = 0;
> export function greet(greeting: string): number {
> greetings++;
> return greetings;
> }
> export function greet2(greeting: string, n = 10, x?: string, ...restParams: string[]): number {
> greetings++;
> return greetings;
> }
> export function foo(greeting: string, n = 10, x?: string, ...restParams: string[])
> {
> return;
> }
>}
>:=> (line 29, col 0) to (line 43, col 1)
--------------------------------
30 > var greetings = 0;
~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (727 to 749) SpanInfo: {"start":731,"length":17}
>var greetings = 0
>:=> (line 30, col 4) to (line 30, col 21)
--------------------------------
31 > export function greet(greeting: string): number {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (750 to 803) SpanInfo: {"start":754,"length":102}
>export function greet(greeting: string): number {
> greetings++;
> return greetings;
> }
>:=> (line 31, col 4) to (line 34, col 5)
--------------------------------
32 > greetings++;
~~~~~~~~~~~~~~~~~~~~~ => Pos: (804 to 824) SpanInfo: {"start":812,"length":11}
>greetings++
>:=> (line 32, col 8) to (line 32, col 19)
--------------------------------
33 > return greetings;
~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (825 to 850) SpanInfo: {"start":833,"length":16}
>return greetings
>:=> (line 33, col 8) to (line 33, col 24)
--------------------------------
34 > }
~~~~~~ => Pos: (851 to 856) SpanInfo: {"start":855,"length":1}
>}
>:=> (line 34, col 4) to (line 34, col 5)
--------------------------------
35 > export function greet2(greeting: string, n = 10, x?: string, ...restParams: string[]): number {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (857 to 900) SpanInfo: {"start":861,"length":148}
>export function greet2(greeting: string, n = 10, x?: string, ...restParams: string[]): number {
> greetings++;
> return greetings;
> }
>:=> (line 35, col 4) to (line 38, col 5)
35 > export function greet2(greeting: string, n = 10, x?: string, ...restParams: string[]): number {
~~~~~~~~~~~~~~~~~~~~=> Pos: (901 to 920) SpanInfo: {"start":902,"length":6}
>n = 10
>:=> (line 35, col 45) to (line 35, col 51)
35 > export function greet2(greeting: string, n = 10, x?: string, ...restParams: string[]): number {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (921 to 953) SpanInfo: {"start":922,"length":23}
>...restParams: string[]
>:=> (line 35, col 65) to (line 35, col 88)
35 > export function greet2(greeting: string, n = 10, x?: string, ...restParams: string[]): number {
~~~=> Pos: (954 to 956) SpanInfo: {"start":861,"length":148}
>export function greet2(greeting: string, n = 10, x?: string, ...restParams: string[]): number {
> greetings++;
> return greetings;
> }
>:=> (line 35, col 4) to (line 38, col 5)
--------------------------------
36 > greetings++;
~~~~~~~~~~~~~~~~~~~~~ => Pos: (957 to 977) SpanInfo: {"start":965,"length":11}
>greetings++
>:=> (line 36, col 8) to (line 36, col 19)
--------------------------------
37 > return greetings;
~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (978 to 1003) SpanInfo: {"start":986,"length":16}
>return greetings
>:=> (line 37, col 8) to (line 37, col 24)
--------------------------------
38 > }
~~~~~~ => Pos: (1004 to 1009) SpanInfo: {"start":1008,"length":1}
>}
>:=> (line 38, col 4) to (line 38, col 5)
--------------------------------
39 > export function foo(greeting: string, n = 10, x?: string, ...restParams: string[])
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1010 to 1050) SpanInfo: {"start":1014,"length":110}
>export function foo(greeting: string, n = 10, x?: string, ...restParams: string[])
> {
> return;
> }
>:=> (line 39, col 4) to (line 42, col 5)
39 > export function foo(greeting: string, n = 10, x?: string, ...restParams: string[])
~~~~~~~~~~~~~~~~~~~~=> Pos: (1051 to 1070) SpanInfo: {"start":1052,"length":6}
>n = 10
>:=> (line 39, col 42) to (line 39, col 48)
39 > export function foo(greeting: string, n = 10, x?: string, ...restParams: string[])
~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (1071 to 1096) SpanInfo: {"start":1072,"length":23}
>...restParams: string[]
>:=> (line 39, col 62) to (line 39, col 85)
--------------------------------
40 > {
~~~~~~ => Pos: (1097 to 1102) SpanInfo: {"start":1111,"length":6}
>return
>:=> (line 41, col 8) to (line 41, col 14)
--------------------------------
41 > return;
~~~~~~~~~~~~~~~~ => Pos: (1103 to 1118) SpanInfo: {"start":1111,"length":6}
>return
>:=> (line 41, col 8) to (line 41, col 14)
--------------------------------
42 > }
~~~~~~ => Pos: (1119 to 1124) SpanInfo: {"start":1123,"length":1}
>}
>:=> (line 42, col 4) to (line 42, col 5)
--------------------------------
43 >}
~ => Pos: (1125 to 1125) SpanInfo: {"start":1125,"length":1}
>}
>:=> (line 43, col 0) to (line 43, col 1)