Type aliases cannot have breakpoints
This commit is contained in:
parent
1e4f0b81fa
commit
61c45816c4
|
@ -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:
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue