/third_party/typescript/src/services/refactors/ |
D | convertStringOrTemplateLiteral.ts | 200 const templateSpans: TemplateSpan[] = []; constant 213 const spans = map(currentNode.templateSpans, (span, index) => { 215 const isLastSpan = index === currentNode.templateSpans.length - 1; 222 templateSpans.push(...spans); 229 templateSpans.push(factory.createTemplateSpan(currentNode, templatePart)); 233 return factory.createTemplateExpression(templateHead, templateSpans);
|
/third_party/typescript/src/compiler/transformers/ |
D | taggedTemplate.ts | 38 for (const templateSpan of template.templateSpans) {
|
D | es2015.ts | 4170 for (const span of node.templateSpans) {
|
/third_party/typescript/src/services/ |
D | signatureHelp.ts | 257 const spanIndex = templateSpan.parent.templateSpans.indexOf(templateSpan); 427 …utionTemplateLiteral(tagExpression.template) ? 1 : tagExpression.template.templateSpans.length + 1; 468 const lastSpan = last(template.templateSpans);
|
D | utilities.ts | 662 const lastSpan = lastOrUndefined((n as TemplateExpression).templateSpans);
|
/third_party/typescript/src/compiler/factory/ |
D | nodeFactory.ts | 2107 …function createTemplateLiteralType(head: TemplateHead, templateSpans: readonly TemplateLiteralType… 2110 node.templateSpans = createNodeArray(templateSpans); 2116 …emplateLiteralType(node: TemplateLiteralTypeNode, head: TemplateHead, templateSpans: readonly Temp… 2118 || node.templateSpans !== templateSpans 2119 ? update(createTemplateLiteralType(head, templateSpans), node) 3008 … function createTemplateExpression(head: TemplateHead, templateSpans: readonly TemplateSpan[]) { 3011 node.templateSpans = createNodeArray(templateSpans); 3014 propagateChildrenFlags(node.templateSpans) | 3020 …pdateTemplateExpression(node: TemplateExpression, head: TemplateHead, templateSpans: readonly Temp… 3022 || node.templateSpans !== templateSpans [all …]
|
/third_party/typescript/src/compiler/ |
D | visitorPublic.ts | 700 nodesVisitor(node.templateSpans, visitor, isTemplateLiteralTypeSpan)); 877 nodesVisitor(node.templateSpans, visitor, isTemplateSpan));
|
D | types.ts | 2117 readonly templateSpans: NodeArray<TemplateLiteralTypeSpan>; 2637 readonly templateSpans: NodeArray<TemplateSpan>; 7973 …createTemplateLiteralType(head: TemplateHead, templateSpans: readonly TemplateLiteralTypeSpan[]): … 7974 …updateTemplateLiteralType(node: TemplateLiteralTypeNode, head: TemplateHead, templateSpans: readon… 8037 …createTemplateExpression(head: TemplateHead, templateSpans: readonly TemplateSpan[]): TemplateExpr… 8038 …updateTemplateExpression(node: TemplateExpression, head: TemplateHead, templateSpans: readonly Tem…
|
D | utilities.ts | 4103 …: (template.head.templateFlags || some(template.templateSpans, span => !!span.literal.templateFlag… 7523 return (node as TemplateLiteralTypeSpan).parent.templateSpans; 7525 return (node as TemplateSpan).parent.templateSpans;
|
D | emitter.ts | 2430 emitList(node, node.templateSpans, ListFormat.TemplateExpressionSpans); 2832 emitList(node, node.templateSpans, ListFormat.TemplateExpressionSpans);
|
D | parser.ts | 592 visitNodes(cbNode, cbNodes, node.templateSpans); 600 visitNodes(cbNode, cbNodes, node.templateSpans);
|
D | checker.ts | 5391 const templateSpans = factory.createNodeArray( 5396 return factory.createTemplateLiteralType(templateHead, templateSpans); 15690 [node.head.text, ...map(node.templateSpans, span => span.literal.text)], 15691 map(node.templateSpans, span => getTypeFromTypeNode(span.type))); 30516 … const lastSpan = last(node.template.templateSpans); // we should always have at least one span. 31048 forEach(template.templateSpans, span => { 35442 for (const span of node.templateSpans) { 37048 for (const span of node.templateSpans) {
|
/third_party/typescript/lib/ |
D | typescript.d.ts | 1044 readonly templateSpans: NodeArray<TemplateLiteralTypeSpan>; property 1264 readonly templateSpans: NodeArray<TemplateSpan>; property 3709 …createTemplateLiteralType(head: TemplateHead, templateSpans: readonly TemplateLiteralTypeSpan[]): … 3710 …updateTemplateLiteralType(node: TemplateLiteralTypeNode, head: TemplateHead, templateSpans: readon… 3763 …createTemplateExpression(head: TemplateHead, templateSpans: readonly TemplateSpan[]): TemplateExpr… 3764 …updateTemplateExpression(node: TemplateExpression, head: TemplateHead, templateSpans: readonly Tem… 7731 …const createTemplateExpression: (head: TemplateHead, templateSpans: readonly TemplateSpan[]) => Te… 7733 …const updateTemplateExpression: (node: TemplateExpression, head: TemplateHead, templateSpans: read…
|
D | typescriptServices.d.ts | 1044 readonly templateSpans: NodeArray<TemplateLiteralTypeSpan>; property 1264 readonly templateSpans: NodeArray<TemplateSpan>; property 3709 …createTemplateLiteralType(head: TemplateHead, templateSpans: readonly TemplateLiteralTypeSpan[]): … 3710 …updateTemplateLiteralType(node: TemplateLiteralTypeNode, head: TemplateHead, templateSpans: readon… 3763 …createTemplateExpression(head: TemplateHead, templateSpans: readonly TemplateSpan[]): TemplateExpr… 3764 …updateTemplateExpression(node: TemplateExpression, head: TemplateHead, templateSpans: readonly Tem… 7731 …const createTemplateExpression: (head: TemplateHead, templateSpans: readonly TemplateSpan[]) => Te… 7733 …const updateTemplateExpression: (node: TemplateExpression, head: TemplateHead, templateSpans: read…
|
D | tsserverlibrary.d.ts | 1044 readonly templateSpans: NodeArray<TemplateLiteralTypeSpan>; property 1264 readonly templateSpans: NodeArray<TemplateSpan>; property 3709 …createTemplateLiteralType(head: TemplateHead, templateSpans: readonly TemplateLiteralTypeSpan[]): … 3710 …updateTemplateLiteralType(node: TemplateLiteralTypeNode, head: TemplateHead, templateSpans: readon… 3763 …createTemplateExpression(head: TemplateHead, templateSpans: readonly TemplateSpan[]): TemplateExpr… 3764 …updateTemplateExpression(node: TemplateExpression, head: TemplateHead, templateSpans: readonly Tem… 11670 …const createTemplateExpression: (head: TemplateHead, templateSpans: readonly TemplateSpan[]) => Te… 11672 …const updateTemplateExpression: (node: TemplateExpression, head: TemplateHead, templateSpans: read…
|
D | typingsInstaller.js | 18433 …: (template.head.templateFlags || ts.some(template.templateSpans, function (span) { return !!span.… 21546 return node.parent.templateSpans; 21548 return node.parent.templateSpans; 24286 function createTemplateLiteralType(head, templateSpans) { argument 24289 node.templateSpans = createNodeArray(templateSpans); 24294 function updateTemplateLiteralType(node, head, templateSpans) { argument 24296 || node.templateSpans !== templateSpans 24297 ? update(createTemplateLiteralType(head, templateSpans), node) 25042 function createTemplateExpression(head, templateSpans) { argument 25045 node.templateSpans = createNodeArray(templateSpans); [all …]
|
D | tsc.js | 14450 …: (template.head.templateFlags || ts.some(template.templateSpans, function (span) { return !!span.… 17185 return node.parent.templateSpans; 17187 return node.parent.templateSpans; 19476 function createTemplateLiteralType(head, templateSpans) { argument 19479 node.templateSpans = createNodeArray(templateSpans); 19483 function updateTemplateLiteralType(node, head, templateSpans) { argument 19485 || node.templateSpans !== templateSpans 19486 ? update(createTemplateLiteralType(head, templateSpans), node) 20139 function createTemplateExpression(head, templateSpans) { argument 20142 node.templateSpans = createNodeArray(templateSpans); [all …]
|
/third_party/typescript/tests/baselines/reference/api/ |
D | typescript.d.ts | 1044 readonly templateSpans: NodeArray<TemplateLiteralTypeSpan>; property 1264 readonly templateSpans: NodeArray<TemplateSpan>; property 3709 …createTemplateLiteralType(head: TemplateHead, templateSpans: readonly TemplateLiteralTypeSpan[]): … 3710 …updateTemplateLiteralType(node: TemplateLiteralTypeNode, head: TemplateHead, templateSpans: readon… 3763 …createTemplateExpression(head: TemplateHead, templateSpans: readonly TemplateSpan[]): TemplateExpr… 3764 …updateTemplateExpression(node: TemplateExpression, head: TemplateHead, templateSpans: readonly Tem… 7731 …const createTemplateExpression: (head: TemplateHead, templateSpans: readonly TemplateSpan[]) => Te… 7733 …const updateTemplateExpression: (node: TemplateExpression, head: TemplateHead, templateSpans: read…
|
D | tsserverlibrary.d.ts | 1044 readonly templateSpans: NodeArray<TemplateLiteralTypeSpan>; property 1264 readonly templateSpans: NodeArray<TemplateSpan>; property 3709 …createTemplateLiteralType(head: TemplateHead, templateSpans: readonly TemplateLiteralTypeSpan[]): … 3710 …updateTemplateLiteralType(node: TemplateLiteralTypeNode, head: TemplateHead, templateSpans: readon… 3763 …createTemplateExpression(head: TemplateHead, templateSpans: readonly TemplateSpan[]): TemplateExpr… 3764 …updateTemplateExpression(node: TemplateExpression, head: TemplateHead, templateSpans: readonly Tem… 11670 …const createTemplateExpression: (head: TemplateHead, templateSpans: readonly TemplateSpan[]) => Te… 11672 …const updateTemplateExpression: (node: TemplateExpression, head: TemplateHead, templateSpans: read…
|