Type aliases cannot have breakpoints

This commit is contained in:
Sheetal Nandi 2014-11-06 15:40:28 -08:00
parent 1e4f0b81fa
commit 61c45816c4
2 changed files with 4 additions and 13 deletions

View file

@ -194,8 +194,9 @@ module ts.BreakpointResolver {
// span in statement
return spanInNode((<WithStatement>node).statement);
// No breakpoint in interface
// No breakpoint in interface, type alias
case SyntaxKind.InterfaceDeclaration:
case SyntaxKind.TypeAliasDeclaration:
return undefined;
// Tokens:

View file

@ -44,21 +44,11 @@
--------------------------------
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)
~~~~~~~~~~~~~~~~~~ => Pos: (68 to 85) SpanInfo: undefined
--------------------------------
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)
~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (86 to 110) SpanInfo: undefined
--------------------------------
8 > var x: a = new m.c();