File tree 2 files changed +15
-6
lines changed
tests/baselines/reference/api 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -4701,6 +4701,12 @@ declare namespace ts {
4701
4701
interface DocumentSpan {
4702
4702
textSpan : TextSpan ;
4703
4703
fileName : string ;
4704
+ /**
4705
+ * If the span represents a location that was remapped (e.g. via a .d.ts.map file),
4706
+ * then the original filename and span will be specified here
4707
+ */
4708
+ originalTextSpan ?: TextSpan ;
4709
+ originalFileName ?: string ;
4704
4710
}
4705
4711
interface RenameLocation extends DocumentSpan {
4706
4712
}
@@ -4798,9 +4804,7 @@ declare namespace ts {
4798
4804
insertSpaceBeforeTypeAnnotation ?: boolean ;
4799
4805
indentMultiLineObjectLiteralBeginningOnBlankLine ?: boolean ;
4800
4806
}
4801
- interface DefinitionInfo {
4802
- fileName : string ;
4803
- textSpan : TextSpan ;
4807
+ interface DefinitionInfo extends DocumentSpan {
4804
4808
kind : ScriptElementKind ;
4805
4809
name : string ;
4806
4810
containerKind : ScriptElementKind ;
@@ -8410,6 +8414,7 @@ declare namespace ts.server {
8410
8414
private getDefinition ;
8411
8415
private getDefinitionAndBoundSpan ;
8412
8416
private mapDefinitionInfo ;
8417
+ private static mapToOriginalLocation ;
8413
8418
private toFileSpan ;
8414
8419
private getTypeDefinition ;
8415
8420
private getImplementation ;
Original file line number Diff line number Diff line change @@ -4701,6 +4701,12 @@ declare namespace ts {
4701
4701
interface DocumentSpan {
4702
4702
textSpan : TextSpan ;
4703
4703
fileName : string ;
4704
+ /**
4705
+ * If the span represents a location that was remapped (e.g. via a .d.ts.map file),
4706
+ * then the original filename and span will be specified here
4707
+ */
4708
+ originalTextSpan ?: TextSpan ;
4709
+ originalFileName ?: string ;
4704
4710
}
4705
4711
interface RenameLocation extends DocumentSpan {
4706
4712
}
@@ -4798,9 +4804,7 @@ declare namespace ts {
4798
4804
insertSpaceBeforeTypeAnnotation ?: boolean ;
4799
4805
indentMultiLineObjectLiteralBeginningOnBlankLine ?: boolean ;
4800
4806
}
4801
- interface DefinitionInfo {
4802
- fileName : string ;
4803
- textSpan : TextSpan ;
4807
+ interface DefinitionInfo extends DocumentSpan {
4804
4808
kind : ScriptElementKind ;
4805
4809
name : string ;
4806
4810
containerKind : ScriptElementKind ;
You can’t perform that action at this time.
0 commit comments