/third_party/typescript/tests/cases/fourslash/ |
D | completionsRecommended_contextualTypes.ts | 26 recommended("jsx2", { isNewIdentifierLocation: false, insertText: "{E}" }); 28 function recommended(marker: string, { insertText, isNewIdentifierLocation = true, enumName = "E" }… 36 insertText,
|
D | completionsJsxAttributeInitializer.ts | 11 { 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…
|
D | completionListInvalidMemberNames.ts | 33 { name: "foo ", insertText: '["foo "]', replacementSpan }, 37 { name: "#", insertText: '["#"]', replacementSpan }, 40 { name: "1b", insertText: '["1b"]', replacementSpan },
|
D | completionsThisProperties_globalSameName.ts | 23 insertText: undefined, 33 insertText: "this.foot", 41 insertText: "this.serve",
|
D | completionsThisType.ts | 17 …{ 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…
|
D | completionNoAutoInsertQuestionDotForThis.ts | 15 { name: "city", text: "(property) Address.city: string", insertText: undefined }, 16 …{ name: "postal code", text: "(property) Address[\"postal code\"]: string", insertText: "[\"postal…
|
D | completionsTuple.ts | 10 { name: "0", insertText: '[0]', replacementSpan }, 11 { name: "1", insertText: '[1]', replacementSpan },
|
D | completionAutoInsertQuestionDot.ts | 16 …{ name: "city", text: "(property) city: string", insertText: "?.city", replacementSpan: test.range… 17 …{ name: "postal code", text: "(property) \"postal code\": string", insertText: "?.[\"postal code\"…
|
D | completionsElementAccessNumeric.ts | 23 …{name: "0", insertText: "[0]", replacementSpan, documentation: "The first label", text: "(property… 24 …{name: "1", insertText: "[1]", replacementSpan, documentation: "The second label", text: "(propert…
|
D | completionsSymbolMembers.ts | 17 exact: { name: "s", insertText: "[s]", replacementSpan: test.ranges()[0] }, 22 exact: { name: "N", insertText: "[N]", replacementSpan: test.ranges()[1] },
|
D | completionListInvalidMemberNames_escapeQuote.ts | 9 exact: { name: `"'`, insertText: `["\\"'"]`, replacementSpan }, 15 exact: { name: `"'`, insertText: `['"\\'']`, replacementSpan },
|
D | completionListInvalidMemberNames_withExistingIdentifier.ts | 12 exact: [{ name: "foo ", insertText: '["foo "]', replacementSpan: r0 }], 17 exact: [{ name: "foo ", insertText: '["foo "]', replacementSpan: r1 }],
|
D | completionsECMAPrivateMember.ts | 17 insertText: undefined
|
D | completionsUniqueSymbol.ts | 20 exact: { name: "M", insertText: "[M]", replacementSpan: test.ranges()[0] },
|
D | completionForStringLiteral_quotePreference3.ts | 11 { name: "#", insertText: '["#"]', replacementSpan: test.ranges()[0] },
|
D | completionOfAwaitPromise2.ts | 13 { name: "foo", insertText: '(await x).foo', replacementSpan },
|
D | completionOfAwaitPromise1.ts | 12 { name: "trim", insertText: '(await x).trim', replacementSpan },
|
D | completionForComputedStringProperties.ts | 15 { name: "p2", insertText: '[p2]', replacementSpan: test.ranges()[0] },
|
D | completionOfAwaitPromise7.ts | 13 { name: "trim", insertText: ';(await x).trim', replacementSpan },
|
D | completionForStringLiteral_quotePreference2.ts | 11 { name: "#", insertText: "['#']", replacementSpan: test.ranges()[0] },
|
D | completionOfAwaitPromise3.ts | 13 { name: "foo-foo", insertText: '(await x)["foo-foo"]', replacementSpan, },
|
D | completionListInvalidMemberNames_startWithSpace.ts | 10 exact: [{ name: "foo ", insertText: '["foo "]', replacementSpan }],
|
D | completionOfAwaitPromise5.ts | 13 { name: "foo", insertText: '(await x(1)).foo', replacementSpan },
|
/third_party/typescript/src/services/codefixes/ |
D | fixAddVoidToPromise.ts | 44 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>");
|
D | fixImplicitThis.ts | 43 changes.insertText(sourceFile, body.pos, " =>"); 50 changes.insertText(sourceFile, name!.end, " = "); 51 changes.insertText(sourceFile, body.pos, " =>");
|