Home
last modified time | relevance | path

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

12345

/third_party/typescript/tests/cases/fourslash/
DjsxAttributeCompletionStyleBraces.ts29 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}",
DjsxAttributeSnippetCompletionClosed.ts63 …{ 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 …]
DjsxAttributeSnippetCompletionUnclosed.ts63 …{ 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 …]
DcompletionsObjectLiteralMethod1.ts47 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 …]
DcompletionsOverridingMethod.ts127 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}",
DcompletionsObjectLiteralMethod3.ts48 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},",
DjsxAttributeCompletionStyleAuto.ts33 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}",
DcompletionsOverridingMethod5.ts32 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;",
DcompletionsRecommended_contextualTypes.ts26 recommended("jsx2", { isNewIdentifierLocation: false, insertText: "{E}" });
28 function recommended(marker: string, { insertText, isNewIdentifierLocation = true, enumName = "E" }…
36 insertText,
DcompletionsOverridingMethod2.ts30 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}"
DcompletionsOverridingMethod10.ts29 insertText: "a: string;",
34 insertText:
41 insertText:
DcompletionsOverridingMethod11.ts35 insertText: "a: string",
40 insertText:
47 insertText:
DcompletionsJsxAttributeInitializer.ts11 { 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…
DcompletionListInvalidMemberNames.ts33 { name: "foo ", insertText: '["foo "]', replacementSpan },
37 { name: "#", insertText: '["#"]', replacementSpan },
40 { name: "1b", insertText: '["1b"]', replacementSpan },
DcompletionsThisProperties_globalSameName.ts23 insertText: "this.foot",
31 insertText: undefined,
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…
DcompletionsOverridingMethod6.ts42 insertText: "public override method(): number {\n}",
60 insertText: "public abstract method(): number;",
78 insertText:
DcompletionNoAutoInsertQuestionDotForThis.ts15 { name: "city", text: "(property) Address.city: string", insertText: undefined },
17 …{ 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] },
DcompletionsOverridingMethod9.ts26 insertText: "a?: number;"
31 insertText: "b(x: number): void {\n}"
/third_party/typescript/src/services/codefixes/
DfixAddVoidToPromise.ts45 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>");
DfixImplicitThis.ts43 changes.insertText(sourceFile, body.pos, " =>");
50 changes.insertText(sourceFile, name!.end, " = ");
51 changes.insertText(sourceFile, body.pos, " =>");

12345