Home
last modified time | relevance | path

Searched refs:createStringLiteral (Results 1 – 25 of 45) sorted by relevance

12

/third_party/typescript/src/testRunner/unittests/
Dfactory.ts19 …", /*questionOrExclamationToken*/ undefined, /*type*/ undefined, factory.createStringLiteral("1")),
29 …actory.createBinaryExpression(factory.createStringLiteral("a"), SyntaxKind.CommaToken, factory.cre…
30 …ession(factory.createCommaListExpression([factory.createStringLiteral("a"), factory.createStringLi…
52 …ckBody(factory.createCommaListExpression([factory.createStringLiteral("a"), factory.createStringLi…
53 …actory.createBinaryExpression(factory.createStringLiteral("a"), SyntaxKind.CommaToken, factory.cre…
DcustomTransforms.ts90 …if (isStringLiteral(node) && node.text === "change") return factory.createStringLiteral("changed");
Dtransform.ts296 /*moduleSpecifier*/ factory.createStringLiteral("./comp1"));
/third_party/typescript/src/services/codefixes/
DfixModuleAndTargetOptions.ts20 … setJsonCompilerOptionValue(changes, configFile, "module", factory.createStringLiteral("esnext"));
32 … const options: [string, Expression][] = [["target", factory.createStringLiteral("es2017")]];
35 options.push(["module", factory.createStringLiteral("commonjs")]);
DfixEnableJsxFlag.ts33 …setJsonCompilerOptionValue(changeTracker, configFile, "jsx", factory.createStringLiteral("react"));
DfixNoPropertyAccessFromIndexSignature.ts23 …const argumentsExpression = factory.createStringLiteral(node.name.text, quotePreference === QuoteP…
DcorrectQualifiedNameToIndexedAccessType.ts33 factory.createLiteralTypeNode(factory.createStringLiteral(rightText)));
DgenerateAccessors.ts78 …rn isIdentifier(originalName) ? factory.createIdentifier(name) : factory.createStringLiteral(name);
234 … changeTracker.replaceNode(file, node.argumentExpression, factory.createStringLiteral(fieldName));
DfixSpelling.ts94 …tory.createElementAccessExpression(node.parent.expression, factory.createStringLiteral(suggestion)…
DfixStrictClassInitialization.ts116 return factory.createStringLiteral(type.value);
Dhelpers.ts423 …[factory.createStringLiteral(text, /*isSingleQuote*/ quotePreference === QuotePreference.Single)])…
479 return factory.createPropertyAssignment(factory.createStringLiteral(name), initializer);
DconvertFunctionToEs6Class.ts263 …: isNoSubstitutionTemplateLiteral(propName) ? factory.createStringLiteral(propName.text, quotePref…
DfixAddMissingMember.ts390 …r = factory.createEnumMember(token, hasStringInitializer ? factory.createStringLiteral(token.text)…
/third_party/typescript/src/compiler/transformers/
Djsx.ts24 …vel), /*exclaimationToken*/ undefined, /*type*/ undefined, factory.createStringLiteral(currentSour…
88 …ateNamedImports(arrayFrom(importSpecifiersMap.values()))), factory.createStringLiteral(importSourc…
99 …createIdentifier("require"), /*typeArguments*/ undefined, [factory.createStringLiteral(importSourc…
397 …const literal = factory.createStringLiteral(tryDecodeEntities(node.text) || node.text, singleQuote…
413 return fixed === undefined ? undefined : factory.createStringLiteral(fixed);
509 return factory.createStringLiteral(idText(name));
529 return factory.createStringLiteral(text);
DtaggedTemplate.ts70 …return template.templateFlags ? factory.createVoidZero() : factory.createStringLiteral(template.te…
98 return setTextRange(factory.createStringLiteral(text), node);
Des2015.ts653 let returnExpression: Expression = factory.createStringLiteral(labelMarker);
1631 …: isIdentifier(propertyName) ? factory.createStringLiteral(unescapeLeadingUnderscores(propertyName…
3290 factory.createStringLiteral("break")
3344 … caseClauses.push(factory.createCaseClause(factory.createStringLiteral(labelMarker), statements));
4005 return setTextRange(factory.createStringLiteral(node.text), node);
4015 return setTextRange(factory.createStringLiteral(node.text), node);
4113 expressions.push(factory.createStringLiteral(node.head.text));
4131 expressions.push(factory.createStringLiteral(span.literal.text));
Dts.ts1717 …eateStrictInequality(factory.createTypeOfExpression(left), factory.createStringLiteral("undefined"…
1827 return factory.createStringLiteral(idText(name));
2485 …return typeof value === "string" ? factory.createStringLiteral(value) : factory.createNumericLiter…
3349 …const substitute = typeof constantValue === "string" ? factory.createStringLiteral(constantValue) …
3640 factory.createStringLiteral(constantValue) :
3655 factory.createStringLiteral(value) :
Ddeclarations.ts266 … factory.createStringLiteral(getResolvedExternalModuleName(context.getEmitHost(), sourceFile)),
676 return factory.createStringLiteral(newName);
1504 …onstValue !== undefined ? typeof constValue === "string" ? factory.createStringLiteral(constValue)…
/third_party/typescript/src/compiler/factory/
Dutilities.ts449 nodeFactory.createStringLiteral(externalHelpersModuleNameText)
531 return rename ? factory.createStringLiteral(rename) : undefined;
546 return factory.createStringLiteral(file.moduleName);
549 return factory.createStringLiteral(getExternalModuleNameFromPath(host, file.fileName));
DemitHelpers.ts112 factory.createStringLiteral(metadataKey),
214 factory.createAdd(temp, factory.createStringLiteral(""))
/third_party/typescript/src/compiler/transformers/module/
Dmodule.ts178 factory.createStringLiteral("require"),
179 factory.createStringLiteral("exports"),
286 factory.createStringLiteral("require"),
287 factory.createStringLiteral("exports"),
375 aliasedModuleNames.push(factory.createStringLiteral(amdDependency.path));
379 unaliasedModuleNames.push(factory.createStringLiteral(amdDependency.path));
1567 factory.createStringLiteral("__esModule"),
Dsystem.ts375 … condition: Expression = factory.createStrictInequality(n, factory.createStringLiteral("default"));
490 factory.createStringLiteral(idText(e.name)),
493 … factory.createStringLiteral(idText(e.propertyName || e.name))
516 … factory.createStringLiteral(idText(entry.exportClause.name)),
1064 …Name = hasSyntacticModifier(decl, ModifierFlags.Default) ? factory.createStringLiteral("default") …
/third_party/typescript/src/services/refactors/
DmoveToNewFile.ts127 …NodeInListAfter(cfg, last(filesProp.initializer.elements), factory.createStringLiteral(newFilePath…
199 …const newImportDeclaration = filterImport(importNode, factory.createStringLiteral(newModuleSpecifi…
255 const newModuleString = factory.createStringLiteral(newModuleSpecifier);
328 …rn(bindingElements), /*type*/ undefined, createRequireCall(factory.createStringLiteral(path))) as …
/third_party/typescript/src/services/
DgetEditsForFileRename.ts68 …NodeAfter(configFile, last(property.initializer.elements), factory.createStringLiteral(relativePat…
/third_party/typescript/src/deprecatedCompat/
Ddeprecations.ts32 …export const createStringLiteral = Debug.deprecate(factory.createStringLiteral, factoryDeprecation… constant
987 return factory.createStringLiteral(value, /*isSingleQuote*/ undefined);

12