Lines Matching full:ts
19 import * as ts from 'typescript'
29 const node = ts.factory.createIdentifier('name');
33 const node = ts.factory.createIdentifier('name');
34 … const parent = ts.factory.createPropertyAssignment(node, ts.factory.createNumericLiteral('1'));
35 (node as Mutable<ts.Node>).parent = parent;
39 const node = ts.factory.createIdentifier('name');
40 const parent = ts.factory.createComputedPropertyName(node);
41 (node as Mutable<ts.Node>).parent = parent;
45 const node = ts.factory.createIdentifier('name');
46 const parent = ts.factory.createBindingElement(undefined, node, 'bindingElement');
47 (node as Mutable<ts.Node>).parent = parent;
51 const node = ts.factory.createIdentifier('name');
52 …const parent = ts.factory.createPropertySignature(undefined, node, undefined, ts.factory.createKey…
53 (node as Mutable<ts.Node>).parent = parent;
57 const node = ts.factory.createIdentifier('name');
58 …const parent = ts.factory.createMethodSignature(undefined, node, undefined, undefined, [], undefin…
59 (node as Mutable<ts.Node>).parent = parent;
63 const node = ts.factory.createIdentifier('name');
64 const parent = ts.factory.createEnumMember(node);
65 (node as Mutable<ts.Node>).parent = parent;
69 const node = ts.factory.createIdentifier('name');
70 …const parent = ts.factory.createPropertyDeclaration(undefined, undefined, node, undefined, undefin…
71 (node as Mutable<ts.Node>).parent = parent;
75 const node = ts.factory.createIdentifier('name');
76 …const parent = ts.factory.createMethodDeclaration(undefined, undefined, undefined, node, undefined…
77 (node as Mutable<ts.Node>).parent = parent;
81 const node = ts.factory.createIdentifier('name');
82 … const parent = ts.factory.createSetAccessorDeclaration(undefined, undefined, node, [], undefined);
83 (node as Mutable<ts.Node>).parent = parent;
87 const node = ts.factory.createIdentifier('name');
88 …const parent = ts.factory.createGetAccessorDeclaration(undefined, undefined, node, [], undefined, …
89 (node as Mutable<ts.Node>).parent = parent;
108 const node = ts.factory.createIdentifier('name');
113 const node = ts.factory.createIdentifier('name');
118 const node = ts.factory.createIdentifier('name');
137 const node = ts.factory.createIdentifier('name');
141 const node = ts.factory.createIdentifier('name');
142 const parent = ts.factory.createPropertyAccessExpression(node, node);
143 (node as Mutable<ts.Node>).parent = parent;
147 const node = ts.factory.createPrivateIdentifier("#name");
148 const parent = ts.factory.createIdentifier('parent');
149 (node as Mutable<ts.Node>).parent = parent;
157 const node = ts.factory.createIdentifier('name');
158 const parent = ts.factory.createQualifiedName(node, node);
159 (node as Mutable<ts.Node>).parent = parent;
168 …const node = ts.factory.createClassDeclaration(undefined, undefined, undefined, undefined, undefin…
172 …const node = ts.factory.createClassExpression(undefined, undefined, undefined, undefined, undefine…
176 const node = ts.factory.createIdentifier('name');
177 …const parent = ts.factory.createClassExpression(undefined, undefined, undefined, undefined, undefi…
178 (node as Mutable<ts.Node>).parent = parent;
187 …const node = ts.factory.createClassDeclaration(undefined, undefined, undefined, undefined, undefin…
191 …const node = ts.factory.createClassExpression(undefined, undefined, undefined, undefined, undefine…
195 const node = ts.factory.createIdentifier('name');
196 …const parent = ts.factory.createClassExpression(undefined, undefined, undefined, undefined, undefi…
197 (node as Mutable<ts.Node>).parent = parent;
207 const node = ts.factory.createIdentifier('name');
216 const name = ts.factory.createIdentifier('name');
217 const node = ts.factory.createBinaryExpression(name, ts.SyntaxKind.InKeyword, name);
221 const node = ts.factory.createIdentifier('name');
225 const name = ts.factory.createIdentifier('name');
226 … const node = ts.factory.createBinaryExpression(name, ts.SyntaxKind.PlusEqualsToken, name);
233 const node = ts.factory.createIdentifier('name');
237 const node = ts.factory.createIdentifier('name');
238 const parent = ts.factory.createElementAccessExpression(node, node);
239 (node as Mutable<ts.Node>).parent = parent;
246 const node = ts.factory.createIdentifier('name');
250 const node1 = ts.factory.createLiteralTypeNode(ts.factory.createStringLiteral("name"));
251 const node2 = ts.factory.createLiteralTypeNode(ts.factory.createNumericLiteral(1));
252 const parent = ts.factory.createIndexedAccessTypeNode(node2, node2);
253 (node1 as Mutable<ts.Node>).parent = parent;
254 (node2 as Mutable<ts.Node>).parent = parent;
259 const node1 = ts.factory.createLiteralTypeNode(ts.factory.createStringLiteral("name"));
260 const node2 = ts.factory.createLiteralTypeNode(ts.factory.createNumericLiteral(1));
261 const parent1 = ts.factory.createIndexedAccessTypeNode(node1, node1);
262 const parent2 = ts.factory.createIndexedAccessTypeNode(node2, node2);
263 (node1 as Mutable<ts.Node>).parent = parent1;
264 (node2 as Mutable<ts.Node>).parent = parent2;
272 const node = ts.factory.createRegularExpressionLiteral('name');
276 const node = ts.factory.createIdentifier('name');
280 const node = ts.factory.createIdentifier('name');
281 const parent = ts.factory.createElementAccessExpression(node, node);
282 (node as Mutable<ts.Node>).parent = parent;
286 const node = ts.factory.createIdentifier('name');
287 …const parent = ts.factory.createParameterDeclaration([], undefined, node, undefined, undefined, un…
288 (node as Mutable<ts.Node>).parent = parent;
292 const node = ts.factory.createIdentifier('name');
293 …const parent = ts.factory.createParameterDeclaration([ts.factory.createModifier(ts.SyntaxKind.Abst…
294 (node as Mutable<ts.Node>).parent = parent;
298 const node = ts.factory.createIdentifier('name');
299 …const parent = ts.factory.createParameterDeclaration([ts.factory.createModifier(ts.SyntaxKind.Publ…
300 …const parentParent = ts.factory.createConstructorDeclaration(undefined, [ts.factory.createModifier…
301 (parent as Mutable<ts.Node>).parent = parentParent;
302 (node as Mutable<ts.Node>).parent = parent;
309 const node = ts.factory.createRegularExpressionLiteral('name');
313 const node = ts.factory.createIdentifier('name');
316 …const parent = ts.factory.createConstructorDeclaration(undefined, [ts.factory.createModifier(ts.Sy…
317 (node as Mutable<ts.Node>).parent = parent;
321 const node = ts.factory.createIdentifier('name');
324 const parent = ts.factory.createElementAccessExpression(node, node);
325 (node as Mutable<ts.Node>).parent = parent;
332 const node = ts.factory.createIdentifier('name');
333 const parent = ts.factory.createElementAccessExpression(node, node);
334 (node as Mutable<ts.Node>).parent = parent;
338 const node = ts.factory.createIdentifier('name');
339 const parent = ts.factory.createPropertyAssignment(node, node);
340 (node as Mutable<ts.Node>).parent = parent;
344 const node = ts.factory.createLiteralTypeNode(ts.factory.createStringLiteral("name"));
345 const parent = ts.factory.createIndexedAccessTypeNode(node, node);
346 (node as Mutable<ts.Node>).parent = parent;
353 const node = ts.factory.createObjectBindingPattern([]);
354 …const parent = ts.factory.createParameterDeclaration(undefined, undefined, undefined, node, undefi…
355 (node as Mutable<ts.Node>).parent = parent;
359 const node = ts.factory.createObjectBindingPattern([]);
360 … const parent = ts.factory.createVariableDeclaration(node, undefined, undefined, undefined);
361 …const initializer = ts.factory.createCallExpression(ts.factory.createIdentifier('name'), undefined…
362 (parent as Mutable<ts.VariableDeclaration>).initializer = initializer;
363 (node as Mutable<ts.Node>).parent = parent;
370 const endOfFileToken = ts.factory.createToken(ts.SyntaxKind.EndOfFileToken);
371 … const sourceFile = ts.factory.createSourceFile([], endOfFileToken, ts.NodeFlags.AwaitContext);
378 const node = ts.factory.createIdentifier('name');
379 const kind = ts.SyntaxKind.SourceFile;
380 (node as Mutable<ts.Node>).kind = kind;
384 const node = ts.factory.createIdentifier('name');
385 const kind = ts.SyntaxKind.SymbolKeyword;
386 (node as Mutable<ts.Node>).kind = kind;
387 const endOfFileToken = ts.factory.createToken(ts.SyntaxKind.EndOfFileToken);
388 … const parent = ts.factory.createSourceFile([], endOfFileToken, ts.NodeFlags.AwaitContext);
389 (node as Mutable<ts.Node>).parent = parent;
396 const node = ts.factory.createIdentifier('name');
397 const kind = ts.SyntaxKind.SourceFile;
398 (node as Mutable<ts.Node>).kind = kind;
407 const node = ts.factory.createIdentifier('target');
408 const parent = ts.factory.createMetaProperty(ts.SyntaxKind.NewKeyword, node);
409 (node as Mutable<ts.Identifier>).parent = parent;
413 const node = ts.factory.createIdentifier('name');
414 const parent = ts.factory.createMetaProperty(ts.SyntaxKind.ImportKeyword, node);
415 (node as Mutable<ts.Identifier>).parent = parent;
432 const result: ts.TranspileOutput = ts.transpileModule(ENUM_TEST1, {
434 "target": ts.ScriptTarget.ES2021
436 fileName: "enum.ts",
455 const result: ts.TranspileOutput = ts.transpileModule(ENUM_TEST2, {
457 "target": ts.ScriptTarget.ES2021
459 fileName: "enum.ts",
480 const result: ts.TranspileOutput = ts.transpileModule(ENUM_TEST3, {
482 "target": ts.ScriptTarget.ES2021
484 fileName: "enum.ts",
497 const result: ts.TranspileOutput = ts.transpileModule(ENUM_TEST3, {
499 "target": ts.ScriptTarget.ES2021
529 const result: ts.TranspileOutput = ts.transpileModule(STRUCT_TEST1, {
531 "target": ts.ScriptTarget.ES2021
533 fileName: "enum.ts",
549 const result: ts.TranspileOutput = ts.transpileModule(STRUCT_TEST1, {
551 "target": ts.ScriptTarget.ES2021
553 fileName: "enum.ts",
566 …const sourceFile: ts.SourceFile = ts.createSourceFile('demo.ts', fileContent, ts.ScriptTarget.ES20…
573 …const sourceFile: ts.SourceFile = ts.createSourceFile('demo.ts', fileContent, ts.ScriptTarget.ES20…
580 …const sourceFile: ts.SourceFile = ts.createSourceFile('demo.ts', fileContent, ts.ScriptTarget.ES20…