diff --git a/tests/baselines/reference/bpSpan_typealias.baseline b/tests/baselines/reference/bpSpan_typealias.baseline new file mode 100644 index 00000000000..51030bfb0a5 --- /dev/null +++ b/tests/baselines/reference/bpSpan_typealias.baseline @@ -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) \ No newline at end of file diff --git a/tests/cases/fourslash/breakpointValidationTypeAlias.ts b/tests/cases/fourslash/breakpointValidationTypeAlias.ts new file mode 100644 index 00000000000..f2319c1f8d6 --- /dev/null +++ b/tests/cases/fourslash/breakpointValidationTypeAlias.ts @@ -0,0 +1,15 @@ +/// + +// @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(); \ No newline at end of file