mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Modify interactive inlay hints API to be more backwards compatible (#55274)
This commit is contained in:
+10
-11
@@ -760,21 +760,20 @@ export class SessionClient implements LanguageService {
|
||||
const response = this.processResponse<protocol.InlayHintsResponse>(request);
|
||||
|
||||
return response.body!.map(item => {
|
||||
const { text, position } = item;
|
||||
const hint = typeof text === "string" ? text : text.map(({ text, span }) => ({
|
||||
text,
|
||||
span: span && {
|
||||
start: this.lineOffsetToPosition(span.file, span.start),
|
||||
length: this.lineOffsetToPosition(span.file, span.end) - this.lineOffsetToPosition(span.file, span.start),
|
||||
},
|
||||
file: span && span.file
|
||||
}));
|
||||
const { position, displayParts } = item;
|
||||
|
||||
return ({
|
||||
...item,
|
||||
position: this.lineOffsetToPosition(file, position),
|
||||
text: hint,
|
||||
kind: item.kind as InlayHintKind
|
||||
kind: item.kind as InlayHintKind,
|
||||
displayParts: displayParts?.map(({ text, span }) => ({
|
||||
text,
|
||||
span: span && {
|
||||
start: this.lineOffsetToPosition(span.file, span.start),
|
||||
length: this.lineOffsetToPosition(span.file, span.end) - this.lineOffsetToPosition(span.file, span.start),
|
||||
},
|
||||
file: span && span.file
|
||||
})),
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@@ -2675,11 +2675,13 @@ export interface InlayHintsRequest extends Request {
|
||||
}
|
||||
|
||||
export interface InlayHintItem {
|
||||
text: string | InlayHintItemDisplayPart[];
|
||||
/** This property will be the empty string when displayParts is set. */
|
||||
text: string;
|
||||
position: Location;
|
||||
kind: InlayHintKind;
|
||||
whitespaceBefore?: boolean;
|
||||
whitespaceAfter?: boolean;
|
||||
displayParts?: InlayHintItemDisplayPart[];
|
||||
}
|
||||
|
||||
export interface InlayHintItemDisplayPart {
|
||||
|
||||
+9
-10
@@ -1845,20 +1845,19 @@ export class Session<TMessage = string> implements EventSender {
|
||||
const hints = project.getLanguageService().provideInlayHints(file, args, this.getPreferences(file));
|
||||
|
||||
return hints.map(hint => {
|
||||
const { text, position } = hint;
|
||||
const hintText = typeof text === "string" ? text : text.map(({ text, span, file }) => ({
|
||||
text,
|
||||
span: span && {
|
||||
start: scriptInfo.positionToLineOffset(span.start),
|
||||
end: scriptInfo.positionToLineOffset(span.start + span.length),
|
||||
file: file!
|
||||
}
|
||||
}));
|
||||
const { position, displayParts } = hint;
|
||||
|
||||
return {
|
||||
...hint,
|
||||
position: scriptInfo.positionToLineOffset(position),
|
||||
text: hintText
|
||||
displayParts: displayParts?.map(({ text, span, file }) => ({
|
||||
text,
|
||||
span: span && {
|
||||
start: scriptInfo.positionToLineOffset(span.start),
|
||||
end: scriptInfo.positionToLineOffset(span.start + span.length),
|
||||
file: file!
|
||||
}
|
||||
})),
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
@@ -159,9 +159,11 @@ export function provideInlayHints(context: InlayHintsContext): InlayHint[] {
|
||||
}
|
||||
|
||||
function addParameterHints(text: string, parameter: Identifier, position: number, isFirstVariadicArgument: boolean, sourceFile: SourceFile | undefined) {
|
||||
let hintText: string | InlayHintDisplayPart[] = `${isFirstVariadicArgument ? "..." : ""}${text}`;
|
||||
let hintText = `${isFirstVariadicArgument ? "..." : ""}${text}`;
|
||||
let displayParts: InlayHintDisplayPart[] | undefined;
|
||||
if (shouldUseInteractiveInlayHints(preferences)) {
|
||||
hintText = [getNodeDisplayPart(hintText, parameter, sourceFile!), { text: ":" }];
|
||||
displayParts = [getNodeDisplayPart(hintText, parameter, sourceFile!), { text: ":" }];
|
||||
hintText = "";
|
||||
}
|
||||
else {
|
||||
hintText += ":";
|
||||
@@ -172,6 +174,7 @@ export function provideInlayHints(context: InlayHintsContext): InlayHint[] {
|
||||
position,
|
||||
kind: InlayHintKind.Parameter,
|
||||
whitespaceAfter: true,
|
||||
displayParts,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -866,11 +866,13 @@ export const enum InlayHintKind {
|
||||
}
|
||||
|
||||
export interface InlayHint {
|
||||
text: string | InlayHintDisplayPart[];
|
||||
/** This property will be the empty string when displayParts is set. */
|
||||
text: string;
|
||||
position: number;
|
||||
kind: InlayHintKind;
|
||||
whitespaceBefore?: boolean;
|
||||
whitespaceAfter?: boolean;
|
||||
displayParts?: InlayHintDisplayPart[];
|
||||
}
|
||||
|
||||
export interface InlayHintDisplayPart {
|
||||
|
||||
+6
-2
@@ -2124,11 +2124,13 @@ declare namespace ts {
|
||||
arguments: InlayHintsRequestArgs;
|
||||
}
|
||||
interface InlayHintItem {
|
||||
text: string | InlayHintItemDisplayPart[];
|
||||
/** This property will be the empty string when displayParts is set. */
|
||||
text: string;
|
||||
position: Location;
|
||||
kind: InlayHintKind;
|
||||
whitespaceBefore?: boolean;
|
||||
whitespaceAfter?: boolean;
|
||||
displayParts?: InlayHintItemDisplayPart[];
|
||||
}
|
||||
interface InlayHintItemDisplayPart {
|
||||
text: string;
|
||||
@@ -10390,11 +10392,13 @@ declare namespace ts {
|
||||
Enum = "Enum"
|
||||
}
|
||||
interface InlayHint {
|
||||
text: string | InlayHintDisplayPart[];
|
||||
/** This property will be the empty string when displayParts is set. */
|
||||
text: string;
|
||||
position: number;
|
||||
kind: InlayHintKind;
|
||||
whitespaceBefore?: boolean;
|
||||
whitespaceAfter?: boolean;
|
||||
displayParts?: InlayHintDisplayPart[];
|
||||
}
|
||||
interface InlayHintDisplayPart {
|
||||
text: string;
|
||||
|
||||
+3
-1
@@ -6416,11 +6416,13 @@ declare namespace ts {
|
||||
Enum = "Enum"
|
||||
}
|
||||
interface InlayHint {
|
||||
text: string | InlayHintDisplayPart[];
|
||||
/** This property will be the empty string when displayParts is set. */
|
||||
text: string;
|
||||
position: number;
|
||||
kind: InlayHintKind;
|
||||
whitespaceBefore?: boolean;
|
||||
whitespaceAfter?: boolean;
|
||||
displayParts?: InlayHintDisplayPart[];
|
||||
}
|
||||
interface InlayHintDisplayPart {
|
||||
text: string;
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
foo(1, 2);
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 43,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "a",
|
||||
"span": {
|
||||
@@ -13,16 +17,17 @@ foo(1, 2);
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 43,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo(1, 2);
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 46,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "b",
|
||||
"span": {
|
||||
@@ -34,8 +39,5 @@ foo(1, 2);
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 46,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
@@ -1,7 +1,11 @@
|
||||
foo(1)(2);
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 87,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "a",
|
||||
"span": {
|
||||
@@ -13,16 +17,17 @@ foo(1)(2);
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 87,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo(1)(2);
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 90,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "b",
|
||||
"span": {
|
||||
@@ -34,8 +39,5 @@ foo(1)(2);
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 90,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
@@ -1,7 +1,11 @@
|
||||
return a(1) + 2
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 54,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "b",
|
||||
"span": {
|
||||
@@ -13,16 +17,17 @@
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 54,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo((c: number) => c + 1);
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 67,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "a",
|
||||
"span": {
|
||||
@@ -34,8 +39,5 @@ foo((c: number) => c + 1);
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 67,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
@@ -1,7 +1,11 @@
|
||||
foo(a, 2);
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 66,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "b",
|
||||
"span": {
|
||||
@@ -13,8 +17,5 @@ foo(a, 2);
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 66,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
@@ -1,7 +1,11 @@
|
||||
foo(1, { c: 1 });
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 44,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "a",
|
||||
"span": {
|
||||
@@ -13,8 +17,5 @@ foo(1, { c: 1 });
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 44,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
@@ -1,7 +1,11 @@
|
||||
foo(1, 1, 1, 1);
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 48,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "a",
|
||||
"span": {
|
||||
@@ -13,16 +17,17 @@ foo(1, 1, 1, 1);
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 48,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo(1, 1, 1, 1);
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 51,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "...b",
|
||||
"span": {
|
||||
@@ -34,8 +39,5 @@ foo(1, 1, 1, 1);
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 51,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
@@ -1,7 +1,11 @@
|
||||
function c2 () { foo2(1, 2); }
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 293,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "c",
|
||||
"span": {
|
||||
@@ -13,16 +17,17 @@ function c2 () { foo2(1, 2); }
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 293,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
function c2 () { foo2(1, 2); }
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 296,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "d",
|
||||
"span": {
|
||||
@@ -34,16 +39,17 @@ function c2 () { foo2(1, 2); }
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 296,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
function c3 () { foo3(1, 2); }
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 324,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "e",
|
||||
"span": {
|
||||
@@ -55,16 +61,17 @@ function c3 () { foo3(1, 2); }
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 324,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
function c3 () { foo3(1, 2); }
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 327,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "f",
|
||||
"span": {
|
||||
@@ -76,16 +83,17 @@ function c3 () { foo3(1, 2); }
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 327,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
function c4 () { foo4(1, 2); }
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 355,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "g",
|
||||
"span": {
|
||||
@@ -97,16 +105,17 @@ function c4 () { foo4(1, 2); }
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 355,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
function c4 () { foo4(1, 2); }
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 358,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "h",
|
||||
"span": {
|
||||
@@ -118,8 +127,5 @@ function c4 () { foo4(1, 2); }
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 358,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
@@ -1,7 +1,11 @@
|
||||
foo2(1, 2);
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 257,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "c",
|
||||
"span": {
|
||||
@@ -13,16 +17,17 @@ foo2(1, 2);
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 257,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo2(1, 2);
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 260,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "d",
|
||||
"span": {
|
||||
@@ -34,16 +39,17 @@ foo2(1, 2);
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 260,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo3(1, 2);
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 269,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "e",
|
||||
"span": {
|
||||
@@ -55,16 +61,17 @@ foo3(1, 2);
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 269,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo3(1, 2);
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 272,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "f",
|
||||
"span": {
|
||||
@@ -76,16 +83,17 @@ foo3(1, 2);
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 272,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo4(1, 2);
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 281,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "g",
|
||||
"span": {
|
||||
@@ -97,16 +105,17 @@ foo4(1, 2);
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 281,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo4(1, 2);
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 284,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "h",
|
||||
"span": {
|
||||
@@ -118,8 +127,5 @@ foo4(1, 2);
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 284,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
@@ -1,7 +1,11 @@
|
||||
foo(1);
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 29,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "v",
|
||||
"span": {
|
||||
@@ -13,16 +17,17 @@ foo(1);
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 29,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo('');
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 37,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "v",
|
||||
"span": {
|
||||
@@ -34,16 +39,17 @@ foo('');
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 37,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo(true);
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 46,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "v",
|
||||
"span": {
|
||||
@@ -55,16 +61,17 @@ foo(true);
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 46,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo((1));
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 67,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "v",
|
||||
"span": {
|
||||
@@ -76,16 +83,17 @@ foo((1));
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 67,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo(foo(1));
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 81,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "v",
|
||||
"span": {
|
||||
@@ -97,8 +105,5 @@ foo(foo(1));
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 81,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
@@ -1,7 +1,11 @@
|
||||
foo(1);
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 29,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "v",
|
||||
"span": {
|
||||
@@ -13,16 +17,17 @@ foo(1);
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 29,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo('');
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 37,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "v",
|
||||
"span": {
|
||||
@@ -34,16 +39,17 @@ foo('');
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 37,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo(true);
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 46,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "v",
|
||||
"span": {
|
||||
@@ -55,16 +61,17 @@ foo(true);
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 46,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo(() => 1);
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 57,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "v",
|
||||
"span": {
|
||||
@@ -76,16 +83,17 @@ foo(() => 1);
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 57,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo(function () { return 1 });
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 71,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "v",
|
||||
"span": {
|
||||
@@ -97,16 +105,17 @@ foo(function () { return 1 });
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 71,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo({});
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 102,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "v",
|
||||
"span": {
|
||||
@@ -118,16 +127,17 @@ foo({});
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 102,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo({ a: 1 });
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 111,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "v",
|
||||
"span": {
|
||||
@@ -139,16 +149,17 @@ foo({ a: 1 });
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 111,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo([]);
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 126,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "v",
|
||||
"span": {
|
||||
@@ -160,16 +171,17 @@ foo([]);
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 126,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo([1]);
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 135,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "v",
|
||||
"span": {
|
||||
@@ -181,16 +193,17 @@ foo([1]);
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 135,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo(foo);
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 145,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "v",
|
||||
"span": {
|
||||
@@ -202,16 +215,17 @@ foo(foo);
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 145,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo((1));
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 155,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "v",
|
||||
"span": {
|
||||
@@ -223,16 +237,17 @@ foo((1));
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 155,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo(foo(1));
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 165,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "v",
|
||||
"span": {
|
||||
@@ -244,16 +259,17 @@ foo(foo(1));
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 165,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo(foo(1));
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 169,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "v",
|
||||
"span": {
|
||||
@@ -265,8 +281,5 @@ foo(foo(1));
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 169,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
@@ -1,7 +1,11 @@
|
||||
foo(a, 2);
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 63,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "a",
|
||||
"span": {
|
||||
@@ -13,16 +17,17 @@ foo(a, 2);
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 63,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo(a, 2);
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 66,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "b",
|
||||
"span": {
|
||||
@@ -34,8 +39,5 @@ foo(a, 2);
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 66,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
@@ -1,7 +1,11 @@
|
||||
foo(1)
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 166,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "w",
|
||||
"span": {
|
||||
@@ -13,16 +17,17 @@ foo(1)
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 166,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo(1, 2)
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 173,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "a",
|
||||
"span": {
|
||||
@@ -34,16 +39,17 @@ foo(1, 2)
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 173,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo(1, 2)
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 176,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "b",
|
||||
"span": {
|
||||
@@ -55,8 +61,5 @@ foo(1, 2)
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 176,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
@@ -1,7 +1,11 @@
|
||||
foo(1, 2, 3)
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 87,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "c",
|
||||
"span": {
|
||||
@@ -13,16 +17,17 @@ foo(1, 2, 3)
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 87,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo(1, 2, 3)
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 90,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "a",
|
||||
"span": {
|
||||
@@ -34,16 +39,17 @@ foo(1, 2, 3)
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 90,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo(1, 2, 3)
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 93,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "b",
|
||||
"span": {
|
||||
@@ -55,8 +61,5 @@ foo(1, 2, 3)
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 93,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
@@ -1,7 +1,11 @@
|
||||
foo(1, '', false, 1, 2)
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 161,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "f",
|
||||
"span": {
|
||||
@@ -13,16 +17,17 @@ foo(1, '', false, 1, 2)
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 161,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo(1, '', false, 1, 2)
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 164,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "a",
|
||||
"span": {
|
||||
@@ -34,16 +39,17 @@ foo(1, '', false, 1, 2)
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 164,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo(1, '', false, 1, 2)
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 168,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "b",
|
||||
"span": {
|
||||
@@ -55,16 +61,17 @@ foo(1, '', false, 1, 2)
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 168,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo(1, '', false, 1, 2)
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 175,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "...c",
|
||||
"span": {
|
||||
@@ -76,16 +83,17 @@ foo(1, '', false, 1, 2)
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 175,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo1(1, "", "")
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 186,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "f1",
|
||||
"span": {
|
||||
@@ -97,16 +105,17 @@ foo1(1, "", "")
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 186,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo1(1, "", "")
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 189,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "...args",
|
||||
"span": {
|
||||
@@ -118,8 +127,5 @@ foo1(1, "", "")
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 189,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
@@ -10,7 +10,11 @@ function foo (aParameter: number, bParameter: number, cParameter: number) { }
|
||||
2,
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 134,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "bParameter",
|
||||
"span": {
|
||||
@@ -22,16 +26,17 @@ function foo (aParameter: number, bParameter: number, cParameter: number) { }
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 134,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
3
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 338,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "cParameter",
|
||||
"span": {
|
||||
@@ -43,16 +48,17 @@ function foo (aParameter: number, bParameter: number, cParameter: number) { }
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 338,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
1,
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 373,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "aParameter",
|
||||
"span": {
|
||||
@@ -64,16 +70,17 @@ function foo (aParameter: number, bParameter: number, cParameter: number) { }
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 373,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
2,
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 380,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "bParameter",
|
||||
"span": {
|
||||
@@ -85,16 +92,17 @@ function foo (aParameter: number, bParameter: number, cParameter: number) { }
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 380,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
3
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 440,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "cParameter",
|
||||
"span": {
|
||||
@@ -106,8 +114,5 @@ function foo (aParameter: number, bParameter: number, cParameter: number) { }
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 440,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
@@ -1,7 +1,11 @@
|
||||
fn(/* nobody knows exactly what this param is */ 42);
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 76,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "x",
|
||||
"span": {
|
||||
@@ -13,8 +17,5 @@ fn(/* nobody knows exactly what this param is */ 42);
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 76,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
@@ -1,7 +1,11 @@
|
||||
foo(1, 2, 3)
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 81,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "c",
|
||||
"span": {
|
||||
@@ -13,8 +17,5 @@ foo(1, 2, 3)
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 81,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
@@ -1,7 +1,11 @@
|
||||
trace(`${1}`);
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 41,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "message",
|
||||
"span": {
|
||||
@@ -13,16 +17,17 @@ trace(`${1}`);
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 41,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
trace(``);
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 56,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "message",
|
||||
"span": {
|
||||
@@ -34,8 +39,5 @@ trace(``);
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 56,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
@@ -1,7 +1,11 @@
|
||||
foo(1, +1, -1, +"1");
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 64,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "a",
|
||||
"span": {
|
||||
@@ -13,16 +17,17 @@ foo(1, +1, -1, +"1");
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 64,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo(1, +1, -1, +"1");
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 67,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "b",
|
||||
"span": {
|
||||
@@ -34,16 +39,17 @@ foo(1, +1, -1, +"1");
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 67,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo(1, +1, -1, +"1");
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 71,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "c",
|
||||
"span": {
|
||||
@@ -55,16 +61,17 @@ foo(1, +1, -1, +"1");
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 71,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
foo(1, +1, -1, +"1");
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 75,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "d",
|
||||
"span": {
|
||||
@@ -76,8 +83,5 @@ foo(1, +1, -1, +"1");
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 75,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
@@ -1,7 +1,11 @@
|
||||
"hello",
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 183,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "a",
|
||||
"span": {
|
||||
@@ -13,16 +17,17 @@
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 183,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
undefined,
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 196,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "b",
|
||||
"span": {
|
||||
@@ -34,16 +39,17 @@
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 196,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
null,
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 211,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "c",
|
||||
"span": {
|
||||
@@ -55,16 +61,17 @@
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 211,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
true,
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 221,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "d",
|
||||
"span": {
|
||||
@@ -76,16 +83,17 @@
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 221,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
false,
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 231,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "e",
|
||||
"span": {
|
||||
@@ -97,16 +105,17 @@
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 231,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
Infinity,
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 242,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "f",
|
||||
"span": {
|
||||
@@ -118,16 +127,17 @@
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 242,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
-Infinity,
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 256,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "g",
|
||||
"span": {
|
||||
@@ -139,16 +149,17 @@
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 256,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
NaN,
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 271,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "h",
|
||||
"span": {
|
||||
@@ -160,16 +171,17 @@
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 271,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
/hello/g,
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 280,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "i",
|
||||
"span": {
|
||||
@@ -181,16 +193,17 @@
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 280,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
123n,
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 294,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "j",
|
||||
"span": {
|
||||
@@ -202,8 +215,5 @@
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 294,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
@@ -1,7 +1,11 @@
|
||||
const C1 = class extends foo(1) { }
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 63,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "a",
|
||||
"span": {
|
||||
@@ -13,16 +17,17 @@ const C1 = class extends foo(1) { }
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 63,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
class C2 extends foo(1) { }
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 91,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "a",
|
||||
"span": {
|
||||
@@ -34,8 +39,5 @@ class C2 extends foo(1) { }
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 91,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
@@ -1,7 +1,11 @@
|
||||
call(1);
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 105,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "a",
|
||||
"span": {
|
||||
@@ -13,16 +17,17 @@ call(1);
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 105,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
call(1, 2);
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 114,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "b",
|
||||
"span": {
|
||||
@@ -34,16 +39,17 @@ call(1, 2);
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 114,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
call(1, 2);
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 117,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "c",
|
||||
"span": {
|
||||
@@ -55,8 +61,5 @@ call(1, 2);
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 117,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
@@ -1,7 +1,11 @@
|
||||
new Class(1)
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 136,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "a",
|
||||
"span": {
|
||||
@@ -13,16 +17,17 @@ new Class(1)
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 136,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
new Class(1, 2)
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 149,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "b",
|
||||
"span": {
|
||||
@@ -34,16 +39,17 @@ new Class(1, 2)
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 149,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
new Class(1, 2)
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 152,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "c",
|
||||
"span": {
|
||||
@@ -55,8 +61,5 @@ new Class(1, 2)
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 152,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
@@ -1,7 +1,11 @@
|
||||
call(1);
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 131,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "a",
|
||||
"span": {
|
||||
@@ -13,16 +17,17 @@ call(1);
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 131,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
call(1, 2);
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 140,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "b",
|
||||
"span": {
|
||||
@@ -34,16 +39,17 @@ call(1, 2);
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 140,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
call(1, 2);
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 143,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "c",
|
||||
"span": {
|
||||
@@ -55,16 +61,17 @@ call(1, 2);
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 143,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
|
||||
new call(1);
|
||||
^
|
||||
{
|
||||
"text": [
|
||||
"text": "",
|
||||
"position": 156,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true,
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "d",
|
||||
"span": {
|
||||
@@ -76,8 +83,5 @@ new call(1);
|
||||
{
|
||||
"text": ":"
|
||||
}
|
||||
],
|
||||
"position": 156,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user