Home
last modified time | relevance | path

Searched refs:selectionRange (Results 1 – 10 of 10) sorted by relevance

/third_party/typescript/src/testRunner/unittests/services/extract/
Dhelpers.ts79 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));
Dranges.ts6 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/
DsmartSelection.ts4 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/
DconvertToAsyncFunction.ts282 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/
Dsession.ts2357 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/
DfourslashImpl.ts1936 …let selectionRange: ts.SelectionRange | undefined = this.languageService.getSmartSelectionRange(th…
1937 while (selectionRange) {
1938 const { textSpan } = selectionRange;
1954 selectionRange = selectionRange.parent;
/third_party/typescript/lib/
Dtsserverlibrary.js130236 var selectionRange = { variable
130299 return selectionRange;
130304 if (!selectionRange || (
130306 !ts.textSpansEqual(textSpan, selectionRange.textSpan) &&
130309selectionRange = __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 …]
Dtsserver.js129667 var selectionRange = { variable
129730 return selectionRange;
129735 if (!selectionRange || (
129737 !ts.textSpansEqual(textSpan, selectionRange.textSpan) &&
129740selectionRange = __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 …]
DtypescriptServices.js130236 var selectionRange = { variable
130299 return selectionRange;
130304 if (!selectionRange || (
130306 !ts.textSpansEqual(textSpan, selectionRange.textSpan) &&
130309selectionRange = __assign({ textSpan: textSpan }, selectionRange && { parent: selectionRange });
Dtypescript.js130236 var selectionRange = { variable
130299 return selectionRange;
130304 if (!selectionRange || (
130306 !ts.textSpansEqual(textSpan, selectionRange.textSpan) &&
130309selectionRange = __assign({ textSpan: textSpan }, selectionRange && { parent: selectionRange });