@@ -38,25 +38,25 @@ module ts.BreakpointResolver {
3838 return spanInNode ( tokenAtLocation ) ;
3939
4040 function textSpan ( startNode : Node , endNode ?: Node ) {
41- return TypeScript . TextSpan . fromBounds ( startNode . getStart ( ) , ( endNode || startNode ) . getEnd ( ) ) ;
41+ return TextSpan . fromBounds ( startNode . getStart ( ) , ( endNode || startNode ) . getEnd ( ) ) ;
4242 }
4343
44- function spanInNodeIfStartsOnSameLine ( node : Node , otherwiseOnNode ?: Node ) : TypeScript . TextSpan {
44+ function spanInNodeIfStartsOnSameLine ( node : Node , otherwiseOnNode ?: Node ) : TextSpan {
4545 if ( node && lineOfPosition === sourceFile . getLineAndCharacterFromPosition ( node . getStart ( ) ) . line ) {
4646 return spanInNode ( node ) ;
4747 }
4848 return spanInNode ( otherwiseOnNode ) ;
4949 }
5050
51- function spanInPreviousNode ( node : Node ) : TypeScript . TextSpan {
51+ function spanInPreviousNode ( node : Node ) : TextSpan {
5252 return spanInNode ( findPrecedingToken ( node . pos , sourceFile ) ) ;
5353 }
5454
55- function spanInNextNode ( node : Node ) : TypeScript . TextSpan {
55+ function spanInNextNode ( node : Node ) : TextSpan {
5656 return spanInNode ( findNextToken ( node , node . parent ) ) ;
5757 }
5858
59- function spanInNode ( node : Node ) : TypeScript . TextSpan {
59+ function spanInNode ( node : Node ) : TextSpan {
6060 if ( node ) {
6161 if ( isExpression ( node ) ) {
6262 if ( node . parent . kind === SyntaxKind . DoStatement ) {
@@ -256,7 +256,7 @@ module ts.BreakpointResolver {
256256 }
257257 }
258258
259- function spanInVariableDeclaration ( variableDeclaration : VariableDeclaration ) : TypeScript . TextSpan {
259+ function spanInVariableDeclaration ( variableDeclaration : VariableDeclaration ) : TextSpan {
260260 // If declaration of for in statement, just set the span in parent
261261 if ( variableDeclaration . parent . kind === SyntaxKind . ForInStatement ) {
262262 return spanInNode ( variableDeclaration . parent ) ;
@@ -301,7 +301,7 @@ module ts.BreakpointResolver {
301301 ! ! ( parameter . flags & NodeFlags . Public ) || ! ! ( parameter . flags & NodeFlags . Private ) ;
302302 }
303303
304- function spanInParameterDeclaration ( parameter : ParameterDeclaration ) : TypeScript . TextSpan {
304+ function spanInParameterDeclaration ( parameter : ParameterDeclaration ) : TextSpan {
305305 if ( canHaveSpanInParameterDeclaration ( parameter ) ) {
306306 return textSpan ( parameter ) ;
307307 }
@@ -324,7 +324,7 @@ module ts.BreakpointResolver {
324324 ( functionDeclaration . parent . kind === SyntaxKind . ClassDeclaration && functionDeclaration . kind !== SyntaxKind . Constructor ) ;
325325 }
326326
327- function spanInFunctionDeclaration ( functionDeclaration : FunctionLikeDeclaration ) : TypeScript . TextSpan {
327+ function spanInFunctionDeclaration ( functionDeclaration : FunctionLikeDeclaration ) : TextSpan {
328328 // No breakpoints in the function signature
329329 if ( ! functionDeclaration . body ) {
330330 return undefined ;
@@ -339,7 +339,7 @@ module ts.BreakpointResolver {
339339 return spanInNode ( functionDeclaration . body ) ;
340340 }
341341
342- function spanInFunctionBlock ( block : Block ) : TypeScript . TextSpan {
342+ function spanInFunctionBlock ( block : Block ) : TextSpan {
343343 var nodeForSpanInBlock = block . statements . length ? block . statements [ 0 ] : block . getLastToken ( ) ;
344344 if ( canFunctionHaveSpanInWholeDeclaration ( < FunctionLikeDeclaration > block . parent ) ) {
345345 return spanInNodeIfStartsOnSameLine ( block . parent , nodeForSpanInBlock ) ;
@@ -348,7 +348,7 @@ module ts.BreakpointResolver {
348348 return spanInNode ( nodeForSpanInBlock ) ;
349349 }
350350
351- function spanInBlock ( block : Block ) : TypeScript . TextSpan {
351+ function spanInBlock ( block : Block ) : TextSpan {
352352 switch ( block . parent . kind ) {
353353 case SyntaxKind . ModuleDeclaration :
354354 if ( getModuleInstanceState ( block . parent ) !== ModuleInstanceState . Instantiated ) {
@@ -370,7 +370,7 @@ module ts.BreakpointResolver {
370370 return spanInNode ( block . statements [ 0 ] ) ;
371371 }
372372
373- function spanInForStatement ( forStatement : ForStatement ) : TypeScript . TextSpan {
373+ function spanInForStatement ( forStatement : ForStatement ) : TextSpan {
374374 if ( forStatement . declarations ) {
375375 return spanInNode ( forStatement . declarations [ 0 ] ) ;
376376 }
@@ -386,7 +386,7 @@ module ts.BreakpointResolver {
386386 }
387387
388388 // Tokens:
389- function spanInOpenBraceToken ( node : Node ) : TypeScript . TextSpan {
389+ function spanInOpenBraceToken ( node : Node ) : TextSpan {
390390 switch ( node . parent . kind ) {
391391 case SyntaxKind . EnumDeclaration :
392392 var enumDeclaration = < EnumDeclaration > node . parent ;
@@ -404,7 +404,7 @@ module ts.BreakpointResolver {
404404 return spanInNode ( node . parent ) ;
405405 }
406406
407- function spanInCloseBraceToken ( node : Node ) : TypeScript . TextSpan {
407+ function spanInCloseBraceToken ( node : Node ) : TextSpan {
408408 switch ( node . parent . kind ) {
409409 case SyntaxKind . ModuleBlock :
410410 // If this is not instantiated module block no bp span
@@ -439,7 +439,7 @@ module ts.BreakpointResolver {
439439 }
440440 }
441441
442- function spanInOpenParenToken ( node : Node ) : TypeScript . TextSpan {
442+ function spanInOpenParenToken ( node : Node ) : TextSpan {
443443 if ( node . parent . kind === SyntaxKind . DoStatement ) {
444444 // Go to while keyword and do action instead
445445 return spanInPreviousNode ( node ) ;
@@ -449,7 +449,7 @@ module ts.BreakpointResolver {
449449 return spanInNode ( node . parent ) ;
450450 }
451451
452- function spanInCloseParenToken ( node : Node ) : TypeScript . TextSpan {
452+ function spanInCloseParenToken ( node : Node ) : TextSpan {
453453 // Is this close paren token of parameter list, set span in previous token
454454 switch ( node . parent . kind ) {
455455 case SyntaxKind . FunctionExpression :
@@ -473,7 +473,7 @@ module ts.BreakpointResolver {
473473 return spanInNode ( node . parent ) ;
474474 }
475475
476- function spanInColonToken ( node : Node ) : TypeScript . TextSpan {
476+ function spanInColonToken ( node : Node ) : TextSpan {
477477 // Is this : specifying return annotation of the function declaration
478478 if ( isAnyFunction ( node . parent ) || node . parent . kind === SyntaxKind . PropertyAssignment ) {
479479 return spanInPreviousNode ( node ) ;
@@ -482,15 +482,15 @@ module ts.BreakpointResolver {
482482 return spanInNode ( node . parent ) ;
483483 }
484484
485- function spanInGreaterThanOrLessThanToken ( node : Node ) : TypeScript . TextSpan {
485+ function spanInGreaterThanOrLessThanToken ( node : Node ) : TextSpan {
486486 if ( node . parent . kind === SyntaxKind . TypeAssertion ) {
487487 return spanInNode ( ( < TypeAssertion > node . parent ) . operand ) ;
488488 }
489489
490490 return spanInNode ( node . parent ) ;
491491 }
492492
493- function spanInWhileKeyword ( node : Node ) : TypeScript . TextSpan {
493+ function spanInWhileKeyword ( node : Node ) : TextSpan {
494494 if ( node . parent . kind === SyntaxKind . DoStatement ) {
495495 // Set span on while expression
496496 return textSpan ( node , findNextToken ( ( < DoStatement > node . parent ) . expression , node . parent ) ) ;
0 commit comments