NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

9.2 Statement categories

Statements are grouped into two general groups: "embeddable" statements and "non-embeddable" statements. Embeddable statements may be used in any context that requires a statement. A non-embeddable statement may not be used in contexts where a statement is contained within another statement (for example, the line If statement). The only non-embeddable statement is the local declaration statement.

Note that for the sake of readability, statement productions that involve multiple sub-statements will be treated as a single production, even though the sub-statements may each be contained by themselves on a labeled line.

Statement ::=
 LocalDeclarationStatement |
 EmbeddedStatement
EmbeddedStatement ::=
 WithStatement |
 SyncLockStatement |
 EventStatement |
 AssignmentStatement |
 InvocationStatement |
 ConditionalStatement |
 LoopStatement |
 ErrorHandlingStatement |
 ControlFlowStatement |
 ArrayHandlingStatement |
 IOStatement
StatementTerminator ::= LineTerminator | :