public static final class Stmt.NamedBlock extends wybs.lang.SyntacticElement.Impl implements Stmt
NamedBlcok ::= LifetimeIdentifier ':' NewLine BlockAs an example:
function sum():
&this:int x = new:this x
myblock:
&myblock:int y = new:myblock y
Stmt.Assert, Stmt.Assign, Stmt.Assume, Stmt.Break, Stmt.Case, Stmt.Continue, Stmt.Debug, Stmt.DoWhile, Stmt.Fail, Stmt.IfElse, Stmt.NamedBlock, Stmt.Return, Stmt.Skip, Stmt.Switch, Stmt.VariableDeclaration, Stmt.While| Constructor and Description |
|---|
NamedBlock(String name,
Collection<Stmt> body,
wybs.lang.Attribute... attributes)
Construct a named block from a given name and body of statements.
|
NamedBlock(String name,
Collection<Stmt> body,
Collection<wybs.lang.Attribute> attributes)
Construct a named block from a given name and body of statements.
|
public NamedBlock(String name, Collection<Stmt> body, wybs.lang.Attribute... attributes)
name - name of this named block.body - non-null collection which contains zero or more
statements.attributes - public NamedBlock(String name, Collection<Stmt> body, Collection<wybs.lang.Attribute> attributes)
name - name of this named block.body - non-null collection which contains zero or more
statements.attributes - Copyright © 2017. All rights reserved.