mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
Verify breakpoints in type alias syntax
This commit is contained in:
parent
da314a3774
commit
1e4f0b81fa
88
tests/baselines/reference/bpSpan_typealias.baseline
Normal file
88
tests/baselines/reference/bpSpan_typealias.baseline
Normal file
@ -0,0 +1,88 @@
|
||||
|
||||
1 >module m2 {
|
||||
|
||||
~~~~~~~~~~~~ => Pos: (0 to 11) SpanInfo: {"start":0,"length":164}
|
||||
>module m2 {
|
||||
> module m {
|
||||
> export class c {
|
||||
> }
|
||||
> }
|
||||
> type a = m.c;
|
||||
> export type b = m.c;
|
||||
> var x: a = new m.c();
|
||||
> var y: b = new m.c();
|
||||
>}
|
||||
>:=> (line 1, col 0) to (line 10, col 1)
|
||||
--------------------------------
|
||||
2 > module m {
|
||||
|
||||
~~~~~~~~~~~~~~~ => Pos: (12 to 26) SpanInfo: {"start":16,"length":51}
|
||||
>module m {
|
||||
> export class c {
|
||||
> }
|
||||
> }
|
||||
>:=> (line 2, col 4) to (line 5, col 5)
|
||||
--------------------------------
|
||||
3 > export class c {
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (27 to 51) SpanInfo: {"start":35,"length":26}
|
||||
>export class c {
|
||||
> }
|
||||
>:=> (line 3, col 8) to (line 4, col 9)
|
||||
--------------------------------
|
||||
4 > }
|
||||
|
||||
~~~~~~~~~~ => Pos: (52 to 61) SpanInfo: {"start":60,"length":1}
|
||||
>}
|
||||
>:=> (line 4, col 8) to (line 4, col 9)
|
||||
--------------------------------
|
||||
5 > }
|
||||
|
||||
~~~~~~ => Pos: (62 to 67) SpanInfo: {"start":66,"length":1}
|
||||
>}
|
||||
>:=> (line 5, col 4) to (line 5, col 5)
|
||||
--------------------------------
|
||||
6 > type a = m.c;
|
||||
|
||||
~~~~~~~~~~~~~~~~~~ => Pos: (68 to 85) SpanInfo: {"start":16,"length":51}
|
||||
>module m {
|
||||
> export class c {
|
||||
> }
|
||||
> }
|
||||
>:=> (line 2, col 4) to (line 5, col 5)
|
||||
--------------------------------
|
||||
7 > export type b = m.c;
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (86 to 110) SpanInfo: {"start":16,"length":51}
|
||||
>module m {
|
||||
> export class c {
|
||||
> }
|
||||
> }
|
||||
>:=> (line 2, col 4) to (line 5, col 5)
|
||||
--------------------------------
|
||||
8 > var x: a = new m.c();
|
||||
|
||||
~~~~~~~~~~~~~~ => Pos: (111 to 124) SpanInfo: {"start":115,"length":20}
|
||||
>var x: a = new m.c()
|
||||
>:=> (line 8, col 4) to (line 8, col 24)
|
||||
8 > var x: a = new m.c();
|
||||
|
||||
~~~~~~~~~~~~ => Pos: (125 to 136) SpanInfo: {"start":126,"length":9}
|
||||
>new m.c()
|
||||
>:=> (line 8, col 15) to (line 8, col 24)
|
||||
--------------------------------
|
||||
9 > var y: b = new m.c();
|
||||
|
||||
~~~~~~~~~~~~~~ => Pos: (137 to 150) SpanInfo: {"start":141,"length":20}
|
||||
>var y: b = new m.c()
|
||||
>:=> (line 9, col 4) to (line 9, col 24)
|
||||
9 > var y: b = new m.c();
|
||||
|
||||
~~~~~~~~~~~~ => Pos: (151 to 162) SpanInfo: {"start":152,"length":9}
|
||||
>new m.c()
|
||||
>:=> (line 9, col 15) to (line 9, col 24)
|
||||
--------------------------------
|
||||
10 >}
|
||||
~ => Pos: (163 to 163) SpanInfo: {"start":163,"length":1}
|
||||
>}
|
||||
>:=> (line 10, col 0) to (line 10, col 1)
|
||||
15
tests/cases/fourslash/breakpointValidationTypeAlias.ts
Normal file
15
tests/cases/fourslash/breakpointValidationTypeAlias.ts
Normal file
@ -0,0 +1,15 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
// @BaselineFile: bpSpan_typealias.baseline
|
||||
// @Filename: bpSpan_typealias.ts
|
||||
////module m2 {
|
||||
//// module m {
|
||||
//// export class c {
|
||||
//// }
|
||||
//// }
|
||||
//// type a = m.c;
|
||||
//// export type b = m.c;
|
||||
//// var x: a = new m.c();
|
||||
//// var y: b = new m.c();
|
||||
////}
|
||||
verify.baselineCurrentFileBreakpointLocations();
|
||||
Loading…
x
Reference in New Issue
Block a user