Home
last modified time | relevance | path

Searched refs:insertText (Results 1 – 25 of 71) sorted by relevance

123

/third_party/typescript/tests/cases/fourslash/
DcompletionsRecommended_contextualTypes.ts26 recommended("jsx2", { isNewIdentifierLocation: false, insertText: "{E}" });
28 function recommended(marker: string, { insertText, isNewIdentifierLocation = true, enumName = "E" }…
36 insertText,
DcompletionsJsxAttributeInitializer.ts11 { name: "x", text: "(parameter) x: number", kind: "parameter", insertText: "{x}" },
12 …{ name: "p", text: "(JSX attribute) p: number", kind: "JSX attribute", insertText: "{this.p}", sor…
13 …{ name: "a b", text: '(JSX attribute) "a b": number', kind: "JSX attribute", insertText: '{this["a…
DcompletionListInvalidMemberNames.ts33 { name: "foo ", insertText: '["foo "]', replacementSpan },
37 { name: "#", insertText: '["#"]', replacementSpan },
40 { name: "1b", insertText: '["1b"]', replacementSpan },
DcompletionsThisProperties_globalSameName.ts23 insertText: undefined,
33 insertText: "this.foot",
41 insertText: "this.serve",
DcompletionsThisType.ts17 …{ name: "xyz", text: "(method) C.xyz(): any", kind: "method", insertText: "this.xyz", sortText: co…
18 … "foo bar", text: '(property) C["foo bar"]: number', kind: "property", insertText: 'this["foo bar"…
25 …includes: { name: "x", text: "(property) x: number", kind: "property", insertText: "this.x", sortT…
DcompletionNoAutoInsertQuestionDotForThis.ts15 { name: "city", text: "(property) Address.city: string", insertText: undefined },
16 …{ name: "postal code", text: "(property) Address[\"postal code\"]: string", insertText: "[\"postal…
DcompletionsTuple.ts10 { name: "0", insertText: '[0]', replacementSpan },
11 { name: "1", insertText: '[1]', replacementSpan },
DcompletionAutoInsertQuestionDot.ts16 …{ name: "city", text: "(property) city: string", insertText: "?.city", replacementSpan: test.range…
17 …{ name: "postal code", text: "(property) \"postal code\": string", insertText: "?.[\"postal code\"…
DcompletionsElementAccessNumeric.ts23 …{name: "0", insertText: "[0]", replacementSpan, documentation: "The first label", text: "(property…
24 …{name: "1", insertText: "[1]", replacementSpan, documentation: "The second label", text: "(propert…
DcompletionsSymbolMembers.ts17 exact: { name: "s", insertText: "[s]", replacementSpan: test.ranges()[0] },
22 exact: { name: "N", insertText: "[N]", replacementSpan: test.ranges()[1] },
DcompletionListInvalidMemberNames_escapeQuote.ts9 exact: { name: `"'`, insertText: `["\\"'"]`, replacementSpan },
15 exact: { name: `"'`, insertText: `['"\\'']`, replacementSpan },
DcompletionListInvalidMemberNames_withExistingIdentifier.ts12 exact: [{ name: "foo ", insertText: '["foo "]', replacementSpan: r0 }],
17 exact: [{ name: "foo ", insertText: '["foo "]', replacementSpan: r1 }],
DcompletionsECMAPrivateMember.ts17 insertText: undefined
DcompletionsUniqueSymbol.ts20 exact: { name: "M", insertText: "[M]", replacementSpan: test.ranges()[0] },
DcompletionForStringLiteral_quotePreference3.ts11 { name: "#", insertText: '["#"]', replacementSpan: test.ranges()[0] },
DcompletionOfAwaitPromise2.ts13 { name: "foo", insertText: '(await x).foo', replacementSpan },
DcompletionOfAwaitPromise1.ts12 { name: "trim", insertText: '(await x).trim', replacementSpan },
DcompletionForComputedStringProperties.ts15 { name: "p2", insertText: '[p2]', replacementSpan: test.ranges()[0] },
DcompletionOfAwaitPromise7.ts13 { name: "trim", insertText: ';(await x).trim', replacementSpan },
DcompletionForStringLiteral_quotePreference2.ts11 { name: "#", insertText: "['#']", replacementSpan: test.ranges()[0] },
DcompletionOfAwaitPromise3.ts13 { name: "foo-foo", insertText: '(await x)["foo-foo"]', replacementSpan, },
DcompletionListInvalidMemberNames_startWithSpace.ts10 exact: [{ name: "foo ", insertText: '["foo "]', replacementSpan }],
DcompletionOfAwaitPromise5.ts13 { name: "foo", insertText: '(await x(1)).foo', replacementSpan },
/third_party/typescript/src/services/codefixes/
DfixAddVoidToPromise.ts44 changes.insertText(sourceFile, typeArgument.pos, "(");
46 changes.insertText(sourceFile, typeArgument.end, needsParens ? ") | void" : " | void");
56 changes.insertText(sourceFile, decl.parent.parent.end, `)`);
57 …changes.insertText(sourceFile, skipTrivia(sourceFile.text, decl.parent.parent.pos), `/** @type {Pr…
63 changes.insertText(sourceFile, decl.parent.parent.expression.end, "<void>");
DfixImplicitThis.ts43 changes.insertText(sourceFile, body.pos, " =>");
50 changes.insertText(sourceFile, name!.end, " = ");
51 changes.insertText(sourceFile, body.pos, " =>");

123