Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7434465
ForOfStatement.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
ForOfStatement.php
View Options
<?php
/**
* This file is part of the Peast package
*
* (c) Marco Marchiò <marco.mm89@gmail.com>
*
* For the full copyright and license information refer to the LICENSE file
* distributed with this source code
*/
namespace
Peast\Syntax\Node
;
/**
* A node that represents the "for...of" statement.
* For example: for (var a of b) {}
*
* @author Marco Marchiò <marco.mm89@gmail.com>
*/
class
ForOfStatement
extends
ForInStatement
{
/**
* Map of node properties
*
* @var array
*/
protected
$propertiesMap
=
array
(
"left"
=>
true
,
"right"
=>
true
,
"body"
=>
true
,
"await"
=>
false
);
/**
* Async iteration flag
*
* @var bool
*/
protected
$await
=
false
;
/**
* Returns the async iteration flag
*
* @return bool
*/
public
function
getAwait
()
{
return
$this
->
await
;
}
/**
* Sets the async iteration flag
*
* @param bool $await Async iteration flag
*
* @return $this
*/
public
function
setAwait
(
$await
)
{
$this
->
await
=
(
bool
)
$await
;
return
$this
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 12:26 (59 m, 43 s)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c0/24/20f4c55eae22fa970c36295a4c76
Default Alt Text
ForOfStatement.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment