@@ -176,10 +176,10 @@ module Templating {
176
176
/**
177
177
* A place where a template is instantiated or rendered.
178
178
*/
179
- class TemplateInstantiaton extends DataFlow:: Node {
180
- TemplateInstantiaton :: Range range ;
179
+ class TemplateInstantiation extends DataFlow:: Node {
180
+ TemplateInstantiation :: Range range ;
181
181
182
- TemplateInstantiaton ( ) { this = range }
182
+ TemplateInstantiation ( ) { this = range }
183
183
184
184
/** Gets a data flow node that refers to the instantiated template string, if any. */
185
185
DataFlow:: SourceNode getOutput ( ) { result = range .getOutput ( ) }
@@ -204,7 +204,7 @@ module Templating {
204
204
}
205
205
206
206
/** Companion module to the `TemplateInstantiation` class. */
207
- module TemplateInstantiaton {
207
+ module TemplateInstantiation {
208
208
abstract class Range extends DataFlow:: Node {
209
209
/** Gets a data flow node that refers to the instantiated template, if any. */
210
210
abstract DataFlow:: SourceNode getOutput ( ) ;
@@ -226,7 +226,7 @@ module Templating {
226
226
227
227
/** Gets an API node that may flow to `succ` through a template instantiation. */
228
228
private API:: Node getTemplateInput ( DataFlow:: SourceNode succ ) {
229
- exists ( TemplateInstantiaton inst , API:: Node base , string name |
229
+ exists ( TemplateInstantiation inst , API:: Node base , string name |
230
230
base .getARhs ( ) = inst .getTemplateParamsNode ( ) and
231
231
result = base .getMember ( name ) and
232
232
succ =
@@ -321,7 +321,7 @@ module Templating {
321
321
322
322
/** Get file argument of a template instantiation, seen as a template file reference. */
323
323
private class DefaultTemplateFileReference extends TemplateFileReference {
324
- DefaultTemplateFileReference ( ) { this = any ( TemplateInstantiaton inst ) .getTemplateFileNode ( ) }
324
+ DefaultTemplateFileReference ( ) { this = any ( TemplateInstantiation inst ) .getTemplateFileNode ( ) }
325
325
}
326
326
327
327
/**
@@ -581,7 +581,7 @@ module Templating {
581
581
}
582
582
583
583
private TemplateSyntax getTemplateSyntaxFromInstantiation ( TemplateFile file ) {
584
- result = any ( TemplateInstantiaton inst | inst .getTemplateFile ( ) = file ) .getTemplateSyntax ( )
584
+ result = any ( TemplateInstantiation inst | inst .getTemplateFile ( ) = file ) .getTemplateSyntax ( )
585
585
}
586
586
587
587
/**
@@ -612,7 +612,7 @@ module Templating {
612
612
/**
613
613
* An EJS-style `include` call within a template tag, such as `<%- include(file, { params }) %>`.
614
614
*/
615
- private class EjsIncludeCallInTemplate extends TemplateInstantiaton :: Range , DataFlow:: CallNode {
615
+ private class EjsIncludeCallInTemplate extends TemplateInstantiation :: Range , DataFlow:: CallNode {
616
616
EjsIncludeCallInTemplate ( ) {
617
617
exists ( TemplatePlaceholderTag tag |
618
618
tag .getRawText ( ) .regexpMatch ( "(?s)<%-.*" ) and
@@ -685,7 +685,7 @@ module Templating {
685
685
/**
686
686
* A call to a member of the `consolidate` library, seen as a template instantiation.
687
687
*/
688
- private class ConsolidateCall extends TemplateInstantiaton :: Range , API:: CallNode {
688
+ private class ConsolidateCall extends TemplateInstantiation :: Range , API:: CallNode {
689
689
string engine ;
690
690
691
691
ConsolidateCall ( ) { this = API:: moduleImport ( "consolidate" ) .getMember ( engine ) .getACall ( ) }
0 commit comments