Searched refs:createStringLiteral (Results 1 – 25 of 45) sorted by relevance
12
/third_party/typescript/src/testRunner/unittests/ |
D | factory.ts | 19 …", /*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…
|
D | customTransforms.ts | 90 …if (isStringLiteral(node) && node.text === "change") return factory.createStringLiteral("changed");
|
D | transform.ts | 296 /*moduleSpecifier*/ factory.createStringLiteral("./comp1"));
|
/third_party/typescript/src/services/codefixes/ |
D | fixModuleAndTargetOptions.ts | 20 … setJsonCompilerOptionValue(changes, configFile, "module", factory.createStringLiteral("esnext")); 32 … const options: [string, Expression][] = [["target", factory.createStringLiteral("es2017")]]; 35 options.push(["module", factory.createStringLiteral("commonjs")]);
|
D | fixEnableJsxFlag.ts | 33 …setJsonCompilerOptionValue(changeTracker, configFile, "jsx", factory.createStringLiteral("react"));
|
D | fixNoPropertyAccessFromIndexSignature.ts | 23 …const argumentsExpression = factory.createStringLiteral(node.name.text, quotePreference === QuoteP…
|
D | correctQualifiedNameToIndexedAccessType.ts | 33 factory.createLiteralTypeNode(factory.createStringLiteral(rightText)));
|
D | generateAccessors.ts | 78 …rn isIdentifier(originalName) ? factory.createIdentifier(name) : factory.createStringLiteral(name); 234 … changeTracker.replaceNode(file, node.argumentExpression, factory.createStringLiteral(fieldName));
|
D | fixSpelling.ts | 94 …tory.createElementAccessExpression(node.parent.expression, factory.createStringLiteral(suggestion)…
|
D | fixStrictClassInitialization.ts | 116 return factory.createStringLiteral(type.value);
|
D | helpers.ts | 423 …[factory.createStringLiteral(text, /*isSingleQuote*/ quotePreference === QuotePreference.Single)])… 479 return factory.createPropertyAssignment(factory.createStringLiteral(name), initializer);
|
D | convertFunctionToEs6Class.ts | 263 …: isNoSubstitutionTemplateLiteral(propName) ? factory.createStringLiteral(propName.text, quotePref…
|
D | fixAddMissingMember.ts | 390 …r = factory.createEnumMember(token, hasStringInitializer ? factory.createStringLiteral(token.text)…
|
/third_party/typescript/src/compiler/transformers/ |
D | jsx.ts | 24 …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);
|
D | taggedTemplate.ts | 70 …return template.templateFlags ? factory.createVoidZero() : factory.createStringLiteral(template.te… 98 return setTextRange(factory.createStringLiteral(text), node);
|
D | es2015.ts | 653 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));
|
D | ts.ts | 1717 …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) :
|
D | declarations.ts | 266 … 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/ |
D | utilities.ts | 449 nodeFactory.createStringLiteral(externalHelpersModuleNameText) 531 return rename ? factory.createStringLiteral(rename) : undefined; 546 return factory.createStringLiteral(file.moduleName); 549 return factory.createStringLiteral(getExternalModuleNameFromPath(host, file.fileName));
|
D | emitHelpers.ts | 112 factory.createStringLiteral(metadataKey), 214 factory.createAdd(temp, factory.createStringLiteral(""))
|
/third_party/typescript/src/compiler/transformers/module/ |
D | module.ts | 178 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"),
|
D | system.ts | 375 … 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/ |
D | moveToNewFile.ts | 127 …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/ |
D | getEditsForFileRename.ts | 68 …NodeAfter(configFile, last(property.initializer.elements), factory.createStringLiteral(relativePat…
|
/third_party/typescript/src/deprecatedCompat/ |
D | deprecations.ts | 32 …export const createStringLiteral = Debug.deprecate(factory.createStringLiteral, factoryDeprecation… constant 987 return factory.createStringLiteral(value, /*isSingleQuote*/ undefined);
|
12