Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7460019
HaltCompilerStatement.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
HaltCompilerStatement.php
View Options
<?php
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace
Microsoft\PhpParser\Node\Statement
;
use
Microsoft\PhpParser\Node\Expression
;
use
Microsoft\PhpParser\Token
;
class
HaltCompilerStatement
extends
Expression
{
/** @var Token */
public
$haltCompilerKeyword
;
/** @var Token */
public
$openParen
;
/** @var Token */
public
$closeParen
;
/** @var Token (there is an implicit ')' before php close tags (`?>`)) */
public
$semicolonOrCloseTag
;
/** @var Token|null TokenKind::InlineHtml data unless there are no bytes (This is optional if there is nothing after the semicolon) */
public
$data
;
const
CHILD_NAMES
=
[
'haltCompilerKeyword'
,
'openParen'
,
'closeParen'
,
'semicolonOrCloseTag'
,
'data'
,
];
/**
* @return int
*/
public
function
getHaltCompilerOffset
()
{
// This accounts for the fact that PHP close tags may include a single newline,
// and that $this->data may be null.
return
$this
->
semicolonOrCloseTag
->
getEndPosition
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Nov 23, 02:26 (2 d, 19 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
23/f4/25dccbf1fe94e62247c90ba7160f
Default Alt Text
HaltCompilerStatement.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment