mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-19 10:41:56 -05:00
Breakpoints in import declaration
This commit is contained in:
@@ -122,6 +122,9 @@ module ts.BreakpointResolver {
|
||||
case SyntaxKind.ExportAssignment:
|
||||
return spanInExportAssignment(<ExportAssignment>node);
|
||||
|
||||
case SyntaxKind.ImportDeclaration:
|
||||
return spanInImportDeclaration(<ImportDeclaration>node);
|
||||
|
||||
case SyntaxKind.BinaryExpression:
|
||||
case SyntaxKind.PostfixOperator:
|
||||
case SyntaxKind.PrefixOperator:
|
||||
@@ -358,6 +361,10 @@ module ts.BreakpointResolver {
|
||||
return textSpan(exportAssignment, exportAssignment.exportName);
|
||||
}
|
||||
|
||||
function spanInImportDeclaration(importDeclaration: ImportDeclaration): TypeScript.TextSpan {
|
||||
return textSpan(importDeclaration, importDeclaration.entityName || importDeclaration.externalModuleName);
|
||||
}
|
||||
|
||||
function spanInExpression(expression: Expression): TypeScript.TextSpan {
|
||||
//TODO (pick this up later) for now lets fix do-while baseline
|
||||
if (node.parent.kind === SyntaxKind.DoStatement) {
|
||||
|
||||
Reference in New Issue
Block a user