CodeQL library for Go
codeql/go-all 1.1.2-dev (changelog, source)
Search

Module Stmt

Provides classes for working with statements.

Import path

import semmle.go.Stmt

Imports

go

Provides classes for working with Go programs.

Classes

AddAssignStmt

An add-assign statement using +=.

AndAssignStmt

An and-assign statement using &=.

AndNotAssignStmt

An and-not-assign statement using &^=.

AssignStmt

A plain assignment statement.

Assignment

A (simple or compound) assignment statement.

BadStmt

A bad statement, that is, a statement that could not be parsed.

BlockStmt

A block statement.

BranchStmt

A branch statement, for example a break or goto.

BreakStmt

A break statement.

CaseClause

A case or default clause in a switch statement.

CommClause

A comm clause, that is, a case or default clause in a select statement.

CompoundAssignStmt

A compound assignment statement.

ContinueStmt

A continue statement.

DecStmt

A decrement statement.

DeclStmt

A declaration statement.

DeferStmt

A defer statement.

DefineStmt

A define statement.

EmptyStmt

An empty statement.

ExprStmt

An expression statement.

ExpressionSwitchStmt

An expression-switch statement.

FallthroughStmt

A fallthrough statement.

ForStmt

A for statement.

GoStmt

A go statement.

GotoStmt

A goto statement.

IfStmt

An if statement.

IncDecStmt

An increment or decrement statement.

IncStmt

An increment statement.

LabeledStmt

A labeled statement.

LoopStmt

A loop, that is, either a for statement or a range statement.

MulAssignStmt

A multiply-assign statement using *=.

OrAssignStmt

An or-assign statement using |=.

QuoAssignStmt

A divide-assign statement using /=.

RangeStmt

A range statement.

RecvStmt

A receive statement in a comm clause.

RemAssignStmt

A modulo-assign statement using %=.

ReturnStmt

A return statement.

SelectStmt

A select statement.

SendStmt

A send statement.

ShlAssignStmt

A left-shift-assign statement using <<=.

ShrAssignStmt

A right-shift-assign statement using >>=.

SimpleAssignStmt

A simple assignment statement, that is, an assignment without a compound operator.

Stmt

A statement.

SubAssignStmt

A subtract-assign statement using -=.

SwitchStmt

A switch statement, that is, either an expression switch or a type switch.

TypeSwitchStmt

A type-switch statement.

XorAssignStmt

An xor-assign statement using ^=.

Aliases

DivAssignStmt

A divide-assign statement using /=.

LShiftAssignStmt

A left-shift-assign statement using <<=.

ModAssignStmt

A modulo-assign statement using %=.

RShiftAssignStmt

A right-shift-assign statement using >>=.