File tree Expand file tree Collapse file tree
tests/baselines/reference/api Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4701,6 +4701,12 @@ declare namespace ts {
47014701 interface DocumentSpan {
47024702 textSpan : TextSpan ;
47034703 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 ;
47044710 }
47054711 interface RenameLocation extends DocumentSpan {
47064712 }
@@ -4798,9 +4804,7 @@ declare namespace ts {
47984804 insertSpaceBeforeTypeAnnotation ?: boolean ;
47994805 indentMultiLineObjectLiteralBeginningOnBlankLine ?: boolean ;
48004806 }
4801- interface DefinitionInfo {
4802- fileName : string ;
4803- textSpan : TextSpan ;
4807+ interface DefinitionInfo extends DocumentSpan {
48044808 kind : ScriptElementKind ;
48054809 name : string ;
48064810 containerKind : ScriptElementKind ;
@@ -8410,6 +8414,7 @@ declare namespace ts.server {
84108414 private getDefinition ;
84118415 private getDefinitionAndBoundSpan ;
84128416 private mapDefinitionInfo ;
8417+ private static mapToOriginalLocation ;
84138418 private toFileSpan ;
84148419 private getTypeDefinition ;
84158420 private getImplementation ;
Original file line number Diff line number Diff line change @@ -4701,6 +4701,12 @@ declare namespace ts {
47014701 interface DocumentSpan {
47024702 textSpan : TextSpan ;
47034703 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 ;
47044710 }
47054711 interface RenameLocation extends DocumentSpan {
47064712 }
@@ -4798,9 +4804,7 @@ declare namespace ts {
47984804 insertSpaceBeforeTypeAnnotation ?: boolean ;
47994805 indentMultiLineObjectLiteralBeginningOnBlankLine ?: boolean ;
48004806 }
4801- interface DefinitionInfo {
4802- fileName : string ;
4803- textSpan : TextSpan ;
4807+ interface DefinitionInfo extends DocumentSpan {
48044808 kind : ScriptElementKind ;
48054809 name : string ;
48064810 containerKind : ScriptElementKind ;
You can’t perform that action at this time.
0 commit comments