/third_party/typescript/src/testRunner/unittests/services/extract/ |
D | helpers.ts | 79 const selectionRange = t.ranges.get("selection")!; constant 80 if (!selectionRange) { 102 startPosition: selectionRange.pos, 103 endPosition: selectionRange.end, 108 …ct = refactor.extractSymbol.getRangeToExtract(sourceFile, createTextSpanFromRange(selectionRange)); 148 const selectionRange = t.ranges.get("selection"); constant 149 if (!selectionRange) { 165 startPosition: selectionRange.pos, 166 endPosition: selectionRange.end, 171 …ct = refactor.extractSymbol.getRangeToExtract(sourceFile, createTextSpanFromRange(selectionRange));
|
D | ranges.ts | 6 const selectionRange = t.ranges.get("selection"); constant 7 if (!selectionRange) { 10 …factor.extractSymbol.getRangeToExtract(file, createTextSpanFromRange(selectionRange), /*userReques… 19 const selectionRange = t.ranges.get("selection"); constant 20 if (!selectionRange) { 23 …onst result = refactor.extractSymbol.getRangeToExtract(f, createTextSpanFromRange(selectionRange));
|
/third_party/typescript/src/services/ |
D | smartSelection.ts | 4 let selectionRange: SelectionRange = { 76 return selectionRange; 82 if (!selectionRange || ( 84 !textSpansEqual(textSpan, selectionRange.textSpan) && 88 selectionRange = { textSpan, ...selectionRange && { parent: selectionRange } };
|
/third_party/typescript/src/testRunner/unittests/services/ |
D | convertToAsyncFunction.ts | 282 const selectionRange = t.ranges.get("selection")!; constant 283 if (!selectionRange) { 311 … span: { start: selectionRange.pos, length: selectionRange.end - selectionRange.pos }, constant
|
/third_party/typescript/src/server/ |
D | session.ts | 2357 const selectionRange = languageService.getSmartSelectionRange(file, pos); constant 2358 … return simplifiedResult ? this.mapSelectionRange(selectionRange, scriptInfo) : selectionRange; 2426 …private mapSelectionRange(selectionRange: SelectionRange, scriptInfo: ScriptInfo): protocol.Select… 2428 textSpan: toProtocolTextSpan(selectionRange.textSpan, scriptInfo), 2430 if (selectionRange.parent) { 2431 result.parent = this.mapSelectionRange(selectionRange.parent, scriptInfo);
|
/third_party/typescript/src/harness/ |
D | fourslashImpl.ts | 1936 …let selectionRange: ts.SelectionRange | undefined = this.languageService.getSmartSelectionRange(th… 1937 while (selectionRange) { 1938 const { textSpan } = selectionRange; 1954 selectionRange = selectionRange.parent;
|
/third_party/typescript/lib/ |
D | tsserverlibrary.js | 130236 var selectionRange = { variable 130299 return selectionRange; 130304 if (!selectionRange || ( 130306 !ts.textSpansEqual(textSpan, selectionRange.textSpan) && 130309 … selectionRange = __assign({ textSpan: textSpan }, selectionRange && { parent: selectionRange }); 161497 var selectionRange = languageService.getSmartSelectionRange(file, pos); 161498 … return simplifiedResult ? _this.mapSelectionRange(selectionRange, scriptInfo) : selectionRange; 161549 Session.prototype.mapSelectionRange = function (selectionRange, scriptInfo) { argument 161551 textSpan: toProtocolTextSpan(selectionRange.textSpan, scriptInfo), 161553 if (selectionRange.parent) { [all …]
|
D | tsserver.js | 129667 var selectionRange = { variable 129730 return selectionRange; 129735 if (!selectionRange || ( 129737 !ts.textSpansEqual(textSpan, selectionRange.textSpan) && 129740 … selectionRange = __assign({ textSpan: textSpan }, selectionRange && { parent: selectionRange }); 161303 var selectionRange = languageService.getSmartSelectionRange(file, pos); 161304 … return simplifiedResult ? _this.mapSelectionRange(selectionRange, scriptInfo) : selectionRange; 161355 Session.prototype.mapSelectionRange = function (selectionRange, scriptInfo) { argument 161357 textSpan: toProtocolTextSpan(selectionRange.textSpan, scriptInfo), 161359 if (selectionRange.parent) { [all …]
|
D | typescriptServices.js | 130236 var selectionRange = { variable 130299 return selectionRange; 130304 if (!selectionRange || ( 130306 !ts.textSpansEqual(textSpan, selectionRange.textSpan) && 130309 … selectionRange = __assign({ textSpan: textSpan }, selectionRange && { parent: selectionRange });
|
D | typescript.js | 130236 var selectionRange = { variable 130299 return selectionRange; 130304 if (!selectionRange || ( 130306 !ts.textSpansEqual(textSpan, selectionRange.textSpan) && 130309 … selectionRange = __assign({ textSpan: textSpan }, selectionRange && { parent: selectionRange });
|