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

Module Stmt

Provides classes for working with statements.

Import path

import semmle.javascript.Stmt

Imports

javascript

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

Classes

BlockStmt

A block of statements.

BreakOrContinueStmt

A break or continue statement.

BreakStmt

A break statement.

Case

A case or default clause in a switch statement.

CatchClause

A catch clause.

ConstDeclStmt

A const declaration statement.

ContinueStmt

A continue statement.

ControlStmt

A control statement, that is, is a loop, an if statement, a switch statement, a with statement, a try statement, or a catch clause.

DebuggerStmt

A debugger statement.

DeclStmt

A declaration statement, that is, a var, const or let declaration (including legacy ‘let’ statements).

Directive

A directive: string literal expression statement in the beginning of a statement container.

DoWhileStmt

A do-while loop.

EmptyStmt

An empty statement.

EnhancedForLoop

A for-in, for-of or for each-in loop.

ExprOrVarDecl

An expression or a variable declaration statement.

ExprStmt

An expression statement.

ForEachStmt

A for each-in loop.

ForInStmt

A for-in loop.

ForOfStmt

A for-of loop.

ForStmt

A for loop.

FunctionDeclStmt

A function declaration statement.

IfStmt

An if statement.

JumpStmt

A statement that disrupts structured control flow, that is, a continue statement, a break statement, a throw statement, or a return statement.

LabeledStmt

A labeled statement.

LegacyLetStmt

A legacy let statement, that is, a statement of the form let(vardecls) stmt.

LetStmt

A let declaration statement.

LoopStmt

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

ReturnStmt

A return statement.

Stmt

A statement.

SwitchStmt

A switch statement.

ThrowStmt

A throw statement.

TryStmt

A try statement.

UsingDeclStmt

A using declaration statement.

VarDeclStmt

A var declaration statement.

WhileStmt

A while loop.

WithStmt

A with statement.

Modules

Directive

Module containing subclasses of the Directive class.

Aliases

AsmJSDirective

DEPRECATED. Use Directive::AsmJSDirective instead.

BabelDirective

DEPRECATED. Use Directive::BabelDirective instead.

BundleDirective

DEPRECATED. Use Directive::BundleDirective instead.

KnownDirective

DEPRECATED. Use Directive::KnownDirective instead.

NgInjectDirective

DEPRECATED. Use Directive::NgInjectDirective instead.

SixToFiveDirective

DEPRECATED. Use Directive::SixToFiveDirective instead.

StrictModeDecl

DEPRECATED. Use Directive::StrictModeDecl instead.

SystemJSDepsDirective

DEPRECATED. Use Directive::SystemJSDepsDirective instead.

SystemJSFormatDirective

DEPRECATED. Use Directive::SystemJSFormatDirective instead.

YuiDirective

DEPRECATED. Use Directive::YuiDirective instead.