CodeQL library for JavaScript
Search

Module Templating

Import path

import javascript

Predicates

getADelimiter

Gets a string that is a known template delimiter.

getAPipeCall

Gets an invocation of the pipe of the given name.

getDelimiterMatchingRegexp

Gets a regular expression that matches a string containing one of the known template delimiters identified by getADelimiter(), storing it in its first (and only) capture group.

getDelimiterMatchingRegexpWithPrefix

Gets a regular expression that matches a string containing one of the known template delimiters identified by getADelimiter(), storing it in its first (and only) capture group. Where the string prior to the template delimiter matches the regexp prefix.

getLikelyTemplateSyntax

Gets a template syntax likely to be used in the given file.

Classes

PipeRefExpr

A reference to a pipe function, occurring in a pipe expression that has been desugared to a function call.

TemplateFile

A file that can be referenced by a template instantiation.

TemplateFileReference

A data flow node whose string value refers to a template file.

TemplateFileReferenceString

A string that refers to a template file, and should be resolved as such.

TemplateInclusionTag

A template tag which causes another template file to be instantiated using the same variables as the current one.

TemplateInstantiation

A place where a template is instantiated or rendered.

TemplatePlaceholderTag

A placeholder tag for a templating engine.

TemplateSyntax

A syntax type implemented by one or more supported templating engines.

TemplateTopLevel

The top-level containing the expression in a template placeholder.

TemplateVarRefExpr

A reference to a variable in a template expression, corresponding to a value plugged into the template.

Modules

TemplateInstantiation

Companion module to the TemplateInstantiation class.