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

Module Aliases

Provides aliases for commonly used classes that have different names in the QL libraries for other languages.

Import path

import semmle.javascript.Aliases

Imports

javascript

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

Aliases

AndBitwiseExpr

A bitwise ‘and’ expression.

AndLogicalExpr

A logical ‘and’ expression.

ArrayAccess

An index expression (also known as computed property access).

AssignOp

A compound assign expression.

BoolLiteral

A Boolean literal, that is, either true or false.

CaseStmt

A case or default clause in a switch statement.

ComparisonOperation

A comparison expression, that is, either an equality test (==, !=, ===, !==) or a relational expression (<, <=, >=, >).

DoStmt

A do-while loop.

EqualityOperation

An equality test using ==, !=, === or !==.

FieldAccess

A dot expression.

InstanceOfExpr

An instanceof expression.

LabelStmt

A labeled statement.

LogicalAndExpr

A logical ‘and’ expression.

LogicalNotExpr

A logical negation expression.

LogicalOrExpr

A logical ‘or’ expression.

Loop

A loop, that is, a while loop, a do-while loop, a for loop, or a for-in loop.

MultilineComment

A block comment (which may be a JSDoc comment).

OrBitwiseExpr

A bitwise ‘or’ expression.

OrLogicalExpr

A logical ‘or’ expression.

ParenthesisExpr

A parenthesized expression.

ParenthesizedExpr

A parenthesized expression.

RelationalOperation

A relational comparison using <, <=, >=, or >.

RemExpr

A modulo expression.

SingleLineComment

A line comment, that is, either an HTML comment or a // comment.

SuperAccess

A super expression.

SwitchCase

A case or default clause in a switch statement.

ThisAccess

A this expression.

VariableAccess

An identifier that refers to a variable in a non-declaring position.

XorBitwiseExpr

An exclusive ‘or’ expression.