CodeQL library for JavaScript/TypeScript
codeql/javascript-all 0.8.15-dev (changelog, source)
Search

Module AngularJSExpressions

Provides classes for dealing with AngularJS expressions (e.g. <div id="{{myId}}"/>).

INTERNAL: Do not import this module directly, import AngularJS instead.

NOTE: The API of this library is not stable yet and may change in the future.

Import path

import semmle.javascript.frameworks.AngularJS.AngularJSExpressions

Imports

javascript

Provides classes for working with JavaScript programs, as well as JSON, YAML and HTML.

Predicates

isInterpretedByAngularJS

Holds if the contents and attribute values of the given element are interpreted by AngularJS, that is, any placeholder expressions therein, such as {{x}}, are evaluated and inserted in the output.

Classes

Empty

The empty alternative of maybes.

NgAst

The root node of an abstract syntax tree.

NgAstNode

An NgAst node from a parsed AngularJS expression source.

NgCallArguments

Super class for NgConsCallArgument and Empty.

NgCallExpr

A call expression node.

NgConsCallArgument

A non-empty cons-list of arguments for a call.

NgDataFlowNode

A node in an AngularJS expression that can have dataflow.

NgDotExpr

A dot expression node for looking up a fixed property with a fixed name.

NgExpr

An expression node.

NgExprStmt

An expression-statement node.

NgFilter

A filter node.

NgFilterArgument

A non-empty cons-list of arguments for a filter.

NgFilterChain

A “filter-chain” node (see https://github.com/angular/angular.js/blob/master/src/ng/parse.js -> filterChain).

NgMaybeFilter

Super class for NgFilter and Empty.

NgMaybeFilterArgument

Super class for NgFilterArgument and Empty.

NgNumber

A number expression node.

NgSingleFilter

A single filter node.

NgSource

The source of an AngularJS expression.

NgSourceProvider

Extensible class for AngularJS expression source providers (e.g. id="{{myId}}" of <div id="{{myId}}" class="left"/>).

NgString

A string expression node.

NgToken

A token from a tokenized AngularJS expression source.

NgVarExpr

A variable reference expression node.