CodeQL library for JavaScript
codeql/javascript-all 0.6.2 ( 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

AsmJSDirective

An asm.js directive.

BabelDirective

A Babel directive.

BlockStmt

A block of statements.

BreakOrContinueStmt

A break or continue statement.

BreakStmt

A break statement.

BundleDirective

A bundle directive.

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.

FormatRegisterDirective

A SystemJS format register directive.

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.

KnownDirective

A known directive, such as a strict mode declaration.

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.

NgInjectDirective

A ngInject or ngNoInject directive.

ReturnStmt

A return statement.

SixToFiveDirective

A legacy 6to5 directive.

Stmt

A statement.

StrictModeDecl

A strict mode declaration.

SwitchStmt

A switch statement.

SystemJSDepsDirective

A SystemJS deps directive.

SystemJSFormatDirective

A SystemJS format directive.

ThrowStmt

A throw statement.

TryStmt

A try statement.

VarDeclStmt

A var declaration statement.

WhileStmt

A while loop.

WithStmt

A with statement.

YuiDirective

A YUI compressor directive.

Aliases

ASMJSDirective

DEPRECATED: Alias for AsmJSDirective