Swift Reference

A community-maintained reference manual for the Swift programming language.

Statements

Simple Statements

Expression Statement

Grammar of expression statement

statement expression ;opt

Declaration Statement

Compiler Control Statements

Control Flow Statements

Loop Statements

Branch Statements

Labeled Statements

Control Transfer Statements

Defer Statement

Do Statement

References

  1. The Swift Programming Language, Statements
  2. The Swift Programming Language, Loop Statements
  3. The Swift Programming Language, Branch Statements
  4. The Swift Programming Language, Labeled Statement
  5. The Swift Programming Language, Control Transfer Statements
  6. The Swift Programming Language, Defer Statement
  7. The Swift Programming Language, Do Statement
  8. The Swift Programming Language, Compiler Control Statements
  9. The Swift Programming Language, Summary of the Grammar: Statements