/third_party/typescript/tests/cases/fourslash/ |
D | jsxAttributeCompletionStyleBraces.ts | 29 insertText: "prop_a={$1}", 34 insertText: "prop_b={$1}", 39 insertText: "prop_c={$1}", 44 insertText: "prop_d={$1}", 49 insertText: "prop_e={$1}", 54 insertText: "prop_f={$1}", 59 insertText: "prop_g={$1}", 64 insertText: "prop_h={$1}", 70 insertText: "prop_i={$1}", 76 insertText: "prop_j={$1}",
|
D | jsxAttributeSnippetCompletionClosed.ts | 63 …{ marker: "1", preferences, includes: { name: "className", insertText: "className={$1}", text: "(p… 64 …{ marker: "2", preferences, includes: { name: "className", insertText: "className={$1}", text: "(p… 65 …{ marker: "3", preferences, includes: { name: "className", insertText: "className={$1}", text: "(p… 66 …{ marker: "4", preferences, includes: { name: "className", insertText: "className={$1}", text: "(p… 67 …{ marker: "5", preferences, includes: { name: "className", insertText: "className={$1}", text: "(p… 68 …{ marker: "6", preferences, includes: { name: "className", insertText: "className={$1}", text: "(p… 69 …{ marker: "7", preferences, includes: { name: "className", insertText: "className={$1}", text: "(p… 70 …{ marker: "8", preferences, includes: { name: "className", insertText: "className={$1}", text: "(p… 71 …{ marker: "9", preferences, includes: { name: "className", insertText: "className={$1}", text: "(p… 72 …{ marker: "10", preferences, includes: { name: "className", insertText: "className={$1}", text: "(… [all …]
|
D | jsxAttributeSnippetCompletionUnclosed.ts | 63 …{ marker: "1", preferences, includes: { name: "className", insertText: "className={$1}", text: "(p… 64 …{ marker: "2", preferences, includes: { name: "className", insertText: "className={$1}", text: "(p… 65 …{ marker: "3", preferences, includes: { name: "className", insertText: "className={$1}", text: "(p… 66 …{ marker: "4", preferences, includes: { name: "className", insertText: "className={$1}", text: "(p… 67 …{ marker: "5", preferences, includes: { name: "className", insertText: "className={$1}", text: "(p… 68 …{ marker: "6", preferences, includes: { name: "className", insertText: "className={$1}", text: "(p… 69 …{ marker: "7", preferences, includes: { name: "className", insertText: "className={$1}", text: "(p… 70 …{ marker: "8", preferences, includes: { name: "className", insertText: "className={$1}", text: "(p… 71 …{ marker: "9", preferences, includes: { name: "className", insertText: "className={$1}", text: "(p… 72 …{ marker: "10", preferences, includes: { name: "className", insertText: "className={$1}", text: "(… [all …]
|
D | completionsObjectLiteralMethod1.ts | 47 insertText: undefined, 54 insertText: "bar(x) {\n},", 73 insertText: undefined, 80 insertText: "bar(x) {\n},", 88 insertText: undefined, 95 insertText: "foo(x) {\n},", 114 insertText: undefined, 130 insertText: undefined, 137 insertText: "\"space bar\"() {\n},", 156 insertText: undefined, [all …]
|
D | completionsOverridingMethod.ts | 127 insertText: "foo(param1: string, param2: boolean): Promise<void> {\n}", 144 insertText: "foo(a: string, b: string): string {\n}", 161 insertText: "foo(a: string): string {\n}", 178 insertText: "foo(a: string): string {\n}", 195 insertText: "foo(a: string): string {\n}", 212 insertText: "foo(a: string): string {\n}", 229 insertText: 261 insertText: "static met(n: number): number {\n}", 278 insertText: "met<T>(t: T): T {\n}", 283 insertText: "metcons<T extends string | number>(t: T): T {\n}",
|
D | completionsObjectLiteralMethod3.ts | 48 insertText: undefined, 55 insertText: "M(x) {\n},", 73 insertText: undefined, 89 insertText: undefined, 106 insertText: undefined, 113 insertText: "M(x) {\n},", 121 insertText: undefined, 128 insertText: "N(x) {\n},", 136 insertText: undefined, 143 insertText: "O() {\n},",
|
D | jsxAttributeCompletionStyleAuto.ts | 33 insertText: "prop_b=\"$1\"", 38 insertText: "prop_c={$1}", 43 insertText: "prop_d={$1}", 48 insertText: "prop_e=\"$1\"", 57 insertText: "prop_g={$1}", 62 insertText: "prop_h=\"$1\"", 73 insertText: "prop_j={$1}",
|
D | completionsOverridingMethod5.ts | 32 insertText: "met(n: string): void {\n}", 37 insertText: "met2(n: number): void {\n}", 55 insertText: "abstract met(n: string): void;", 61 insertText: "abstract met2(n: number): void;", 79 insertText: "abstract met(n: string): void;", 85 insertText: "abstract met2(n: number): void;",
|
D | completionsRecommended_contextualTypes.ts | 26 recommended("jsx2", { isNewIdentifierLocation: false, insertText: "{E}" }); 28 function recommended(marker: string, { insertText, isNewIdentifierLocation = true, enumName = "E" }… 36 insertText,
|
D | completionsOverridingMethod2.ts | 30 insertText: "\"\\$usd\"(a: number): number {\n $0\n}", 36 insertText: "\\$cad(b: number): number {\n $0\n}", 42 insertText: "cla\\$\\$y(c: number): number {\n $0\n}", 48 insertText: "isDollarAmountString(s: string): s is `\\$\\${number}` {\n $0\n}"
|
D | completionsOverridingMethod10.ts | 29 insertText: "a: string;", 34 insertText: 41 insertText:
|
D | completionsOverridingMethod11.ts | 35 insertText: "a: string", 40 insertText: 47 insertText:
|
D | completionsJsxAttributeInitializer.ts | 11 { name: "x", text: "(parameter) x: number", kind: "parameter", insertText: "{x}" }, 12 …{ name: "p", text: "(property) p: number", kind: "property", insertText: "{this.p}", sortText: com… 13 …{ name: "a b", text: '(property) "a b": number', kind: "property", insertText: '{this["a b"]}', so…
|
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: "this.foot", 31 insertText: undefined, 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 | completionsOverridingMethod6.ts | 42 insertText: "public override method(): number {\n}", 60 insertText: "public abstract method(): number;", 78 insertText:
|
D | completionNoAutoInsertQuestionDotForThis.ts | 15 { name: "city", text: "(property) Address.city: string", insertText: undefined }, 17 …{ 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 | completionsOverridingMethod9.ts | 26 insertText: "a?: number;" 31 insertText: "b(x: number): void {\n}"
|
/third_party/typescript/src/services/codefixes/ |
D | fixAddVoidToPromise.ts | 45 changes.insertText(sourceFile, typeArgument.pos, "("); 47 changes.insertText(sourceFile, typeArgument.end, needsParens ? ") | void" : " | void"); 57 changes.insertText(sourceFile, decl.parent.parent.end, `)`); 58 …changes.insertText(sourceFile, skipTrivia(sourceFile.text, decl.parent.parent.pos), `/** @type {Pr… 64 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, " =>");
|