#22 Add "vendor" top-level namespace

This commit is contained in:
Sara Itani 2017-01-29 15:06:13 -08:00
Родитель bb076d6b95
Коммит e620204600
143 изменённых файлов: 488 добавлений и 488 удалений

Просмотреть файл

@ -16,7 +16,7 @@ with the Abstract Syntax Tree (AST) via a friendly API.
require "vendor/autoload.php";
// Instantiate new parser instance
$parser = new PhpParser\Parser();
$parser = new Microsoft\PhpParser\Parser();
// Return and print an AST from string contents
$astNode = $parser->parseSourceFile('<?php /* comment */ echo "hi!"');
@ -24,12 +24,12 @@ var_dump($astNode);
// Gets and prints errors from AST Node. The parser handles errors gracefully,
// so it can be used in IDE usage scenarios (where code is often incomplete).
$errors = PhpParser\Utilities::getDiagnostics($astNode);
$errors = Microsoft\PhpParser\Utilities::getDiagnostics($astNode);
var_dump(iterator_to_array($errors));
// Traverse all Node descendants of $astNode
foreach ($astNode->getDescendantNodes() as $descendant) {
if ($descendant instanceof \PhpParser\Node\StringLiteral) {
if ($descendant instanceof \Microsoft\PhpParser\Node\StringLiteral) {
// Print the Node text (without whitespace or comments)
var_dump($descendant->getText());
@ -44,11 +44,11 @@ foreach ($astNode->getDescendantNodes() as $descendant) {
// In addition to retrieving all children or descendants of a Node,
// Nodes expose properties specific to the Node type.
if ($descendant instanceof \PhpParser\Node\Expression\EchoExpression) {
if ($descendant instanceof \Microsoft\PhpParser\Node\Expression\EchoExpression) {
$echoKeywordStartPosition = $descendant->echoKeyword->getStartPosition();
// To cut down on memory consumption, positions are represented as a single integer
// index into the document, but their line and character positions are easily retrieved.
$lineCharacterPosition = \PhpParser\Utilities::getLineCharacterPositionFromPosition(
$lineCharacterPosition = \Microsoft\PhpParser\Utilities::getLineCharacterPositionFromPosition(
$echoKeywordStartPosition
);
echo "line: $lineCharacterPosition->line, character: $lineCharacterPosition->character";

Просмотреть файл

@ -12,6 +12,6 @@
}
],
"autoload": {
"psr-4": { "PhpParser\\": ["src/"] }
"psr-4": { "Microsoft\\PhpParser\\": ["src/"] }
}
}

Просмотреть файл

@ -61,9 +61,9 @@ rather the complete source, which includes tests as well.
<?php
require "vendor/autoload.php"; # autoloads required classes
$parser = new PhpParser\Parser(); # instantiates a new parser instance
$parser = new Microsoft\PhpParser\Parser(); # instantiates a new parser instance
$astNode = $parser->parseSourceFile('<?php /* comment */ echo "hi!";'); # returns an AST from string contents
$errors = PhpParser\Utilities::getDiagnostics($astNode); # get errors from AST Node (as a Generator)
$errors = Microsoft\PhpParser\Utilities::getDiagnostics($astNode); # get errors from AST Node (as a Generator)
var_dump($astNode); # prints full AST
var_dump(iterator_to_array($errors)); # prints all errors

Просмотреть файл

@ -4,7 +4,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser;
namespace Microsoft\PhpParser;
class CharacterCodes {
const _0 = 0x30;

Просмотреть файл

@ -4,9 +4,9 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser;
namespace Microsoft\PhpParser;
use PhpParser\Node;
use Microsoft\PhpParser\Node;
class Diagnostic {
/** @var int */

Просмотреть файл

@ -4,7 +4,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser;
namespace Microsoft\PhpParser;
interface ITokenStreamProvider {
function scanNextToken() : Token;

Просмотреть файл

@ -4,7 +4,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser;
namespace Microsoft\PhpParser;
class Lexer implements ITokenStreamProvider {

Просмотреть файл

@ -4,7 +4,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser;
namespace Microsoft\PhpParser;
class MissingToken extends Token {
public function __construct(int $kind, int $fullStart) {

Просмотреть файл

@ -4,9 +4,9 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser;
namespace Microsoft\PhpParser;
use PhpParser\Node\Script;
use Microsoft\PhpParser\Node\Script;
class Node implements \JsonSerializable {
/** @var array[] Map from node class to array of child keys */
@ -17,7 +17,7 @@ class Node implements \JsonSerializable {
public function getKind() {
// TODO remove all references to getKind
$constants = (new \ReflectionClass("PhpParser\\NodeKind"))->getConstants();
$constants = (new \ReflectionClass("Microsoft\\PhpParser\\NodeKind"))->getConstants();
$nameParts = explode("\\",get_class($this));
return $constants[end($nameParts)];
}
@ -323,7 +323,7 @@ class Node implements \JsonSerializable {
*/
public static function getNodeKindNameFromValue(int $value) : string {
// return end(explode("\\", get_class($node)));
$constants = (new \ReflectionClass("PhpParser\\NodeKind"))->getConstants();
$constants = (new \ReflectionClass("Microsoft\\PhpParser\\NodeKind"))->getConstants();
foreach ($constants as $name=>$val) {
if ($val == $value) {
return $name;

Просмотреть файл

@ -4,11 +4,11 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node;
namespace Microsoft\PhpParser\Node;
use PhpParser\Node;
use PhpParser\Node\DelimitedList\UseVariableNameList;
use PhpParser\Token;
use Microsoft\PhpParser\Node;
use Microsoft\PhpParser\Node\DelimitedList\UseVariableNameList;
use Microsoft\PhpParser\Token;
class AnonymousFunctionUseClause extends Node {
/** @var Token */

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node;
namespace Microsoft\PhpParser\Node;
use PhpParser\Node;
use PhpParser\Token;
use Microsoft\PhpParser\Node;
use Microsoft\PhpParser\Token;
class ArrayElement extends Node {

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node;
namespace Microsoft\PhpParser\Node;
use PhpParser\Node;
use PhpParser\Token;
use Microsoft\PhpParser\Node;
use Microsoft\PhpParser\Token;
class CaseStatementNode extends Node {
/** @var Token */

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node;
namespace Microsoft\PhpParser\Node;
use PhpParser\Node;
use PhpParser\Token;
use Microsoft\PhpParser\Node;
use Microsoft\PhpParser\Token;
class CatchClause extends Node {
/** @var Token */

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node;
namespace Microsoft\PhpParser\Node;
use PhpParser\Node;
use PhpParser\Token;
use Microsoft\PhpParser\Node;
use Microsoft\PhpParser\Token;
class ClassBaseClause extends Node {
/** @var Token */

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node;
namespace Microsoft\PhpParser\Node;
use PhpParser\Node;
use PhpParser\Token;
use Microsoft\PhpParser\Node;
use Microsoft\PhpParser\Token;
class ClassConstDeclaration extends Node {

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node;
namespace Microsoft\PhpParser\Node;
use PhpParser\Node;
use PhpParser\Token;
use Microsoft\PhpParser\Node;
use Microsoft\PhpParser\Token;
class ClassInterfaceClause extends Node {
/** @var Token */

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node;
namespace Microsoft\PhpParser\Node;
use PhpParser\Node;
use PhpParser\Token;
use Microsoft\PhpParser\Node;
use Microsoft\PhpParser\Token;
class ClassMembersNode extends Node {
/** @var Token */

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node;
namespace Microsoft\PhpParser\Node;
use PhpParser\Node;
use PhpParser\Token;
use Microsoft\PhpParser\Node;
use Microsoft\PhpParser\Token;
class ConstElement extends Node {

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node;
namespace Microsoft\PhpParser\Node;
use PhpParser\Node;
use PhpParser\Token;
use Microsoft\PhpParser\Node;
use Microsoft\PhpParser\Token;
class DeclareDirective extends Node {
/** @var Token */

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node;
namespace Microsoft\PhpParser\Node;
use PhpParser\Node;
use PhpParser\Token;
use Microsoft\PhpParser\Node;
use Microsoft\PhpParser\Token;
class DefaultStatementNode extends Node {
/** @var Token */

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node;
namespace Microsoft\PhpParser\Node;
use PhpParser\Node;
use PhpParser\Token;
use Microsoft\PhpParser\Node;
use Microsoft\PhpParser\Token;
class DelimitedList extends Node {
/** @var Token[]|Node[] */

Просмотреть файл

@ -4,8 +4,8 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\DelimitedList;
use PhpParser\Node\DelimitedList;
namespace Microsoft\PhpParser\Node\DelimitedList;
use Microsoft\PhpParser\Node\DelimitedList;
class ArgumentExpressionList extends DelimitedList {

Просмотреть файл

@ -4,8 +4,8 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\DelimitedList;
use PhpParser\Node\DelimitedList;
namespace Microsoft\PhpParser\Node\DelimitedList;
use Microsoft\PhpParser\Node\DelimitedList;
class ArrayElementList extends DelimitedList {

Просмотреть файл

@ -4,8 +4,8 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\DelimitedList;
use PhpParser\Node\DelimitedList;
namespace Microsoft\PhpParser\Node\DelimitedList;
use Microsoft\PhpParser\Node\DelimitedList;
class ConstElementList extends DelimitedList {

Просмотреть файл

@ -4,8 +4,8 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\DelimitedList;
use PhpParser\Node\DelimitedList;
namespace Microsoft\PhpParser\Node\DelimitedList;
use Microsoft\PhpParser\Node\DelimitedList;
class ExpressionList extends DelimitedList {

Просмотреть файл

@ -4,8 +4,8 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\DelimitedList;
use PhpParser\Node\DelimitedList;
namespace Microsoft\PhpParser\Node\DelimitedList;
use Microsoft\PhpParser\Node\DelimitedList;
class ListExpressionList extends DelimitedList {

Просмотреть файл

@ -4,8 +4,8 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\DelimitedList;
use PhpParser\Node\DelimitedList;
namespace Microsoft\PhpParser\Node\DelimitedList;
use Microsoft\PhpParser\Node\DelimitedList;
class NamespaceUseGroupClauseList extends DelimitedList {

Просмотреть файл

@ -4,8 +4,8 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\DelimitedList;
use PhpParser\Node\DelimitedList;
namespace Microsoft\PhpParser\Node\DelimitedList;
use Microsoft\PhpParser\Node\DelimitedList;
class ParameterDeclarationList extends DelimitedList {

Просмотреть файл

@ -4,8 +4,8 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\DelimitedList;
use PhpParser\Node\DelimitedList;
namespace Microsoft\PhpParser\Node\DelimitedList;
use Microsoft\PhpParser\Node\DelimitedList;
class QualifiedNameList extends DelimitedList {

Просмотреть файл

@ -4,8 +4,8 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\DelimitedList;
use PhpParser\Node\DelimitedList;
namespace Microsoft\PhpParser\Node\DelimitedList;
use Microsoft\PhpParser\Node\DelimitedList;
class QualifiedNameParts extends DelimitedList {

Просмотреть файл

@ -4,8 +4,8 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\DelimitedList;
use PhpParser\Node\DelimitedList;
namespace Microsoft\PhpParser\Node\DelimitedList;
use Microsoft\PhpParser\Node\DelimitedList;
class StaticVariableNameList extends DelimitedList {

Просмотреть файл

@ -4,8 +4,8 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\DelimitedList;
use PhpParser\Node\DelimitedList;
namespace Microsoft\PhpParser\Node\DelimitedList;
use Microsoft\PhpParser\Node\DelimitedList;
class TraitSelectOrAliasClauseList extends DelimitedList {

Просмотреть файл

@ -4,8 +4,8 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\DelimitedList;
use PhpParser\Node\DelimitedList;
namespace Microsoft\PhpParser\Node\DelimitedList;
use Microsoft\PhpParser\Node\DelimitedList;
class UseVariableNameList extends DelimitedList {

Просмотреть файл

@ -4,8 +4,8 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\DelimitedList;
use PhpParser\Node\DelimitedList;
namespace Microsoft\PhpParser\Node\DelimitedList;
use Microsoft\PhpParser\Node\DelimitedList;
class VariableNameList extends DelimitedList {

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node;
namespace Microsoft\PhpParser\Node;
use PhpParser\Node;
use PhpParser\Token;
use Microsoft\PhpParser\Node;
use Microsoft\PhpParser\Token;
class ElseClauseNode extends Node {
/** @var Token */

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node;
namespace Microsoft\PhpParser\Node;
use PhpParser\Node;
use PhpParser\Token;
use Microsoft\PhpParser\Node;
use Microsoft\PhpParser\Token;
class ElseIfClauseNode extends Node {
/** @var Token */

Просмотреть файл

@ -4,9 +4,9 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node;
namespace Microsoft\PhpParser\Node;
use PhpParser\Node;
use Microsoft\PhpParser\Node;
class Expression extends Node {

Просмотреть файл

@ -4,13 +4,13 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Expression;
use PhpParser\Node\Expression;
use PhpParser\Node\FunctionBody;
use PhpParser\Node\FunctionHeader;
use PhpParser\Node\FunctionReturnType;
use PhpParser\Node\FunctionUseClause;
use PhpParser\Token;
namespace Microsoft\PhpParser\Node\Expression;
use Microsoft\PhpParser\Node\Expression;
use Microsoft\PhpParser\Node\FunctionBody;
use Microsoft\PhpParser\Node\FunctionHeader;
use Microsoft\PhpParser\Node\FunctionReturnType;
use Microsoft\PhpParser\Node\FunctionUseClause;
use Microsoft\PhpParser\Token;
class AnonymousFunctionCreationExpression extends Expression {
/** @var Token | null */

Просмотреть файл

@ -4,9 +4,9 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Expression;
use PhpParser\Node\Expression;
use PhpParser\Token;
namespace Microsoft\PhpParser\Node\Expression;
use Microsoft\PhpParser\Node\Expression;
use Microsoft\PhpParser\Token;
class ArgumentExpression extends Expression {
/** @var Token | null */

Просмотреть файл

@ -4,11 +4,11 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Expression;
namespace Microsoft\PhpParser\Node\Expression;
use PhpParser\Node\DelimitedList;
use PhpParser\Node\Expression;
use PhpParser\Token;
use Microsoft\PhpParser\Node\DelimitedList;
use Microsoft\PhpParser\Node\Expression;
use Microsoft\PhpParser\Token;
class ArrayCreationExpression extends Expression {

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Expression;
namespace Microsoft\PhpParser\Node\Expression;
use PhpParser\Node\Expression;
use PhpParser\Token;
use Microsoft\PhpParser\Node\Expression;
use Microsoft\PhpParser\Token;
class AssignmentExpression extends BinaryExpression {

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Expression;
namespace Microsoft\PhpParser\Node\Expression;
use PhpParser\Node\Expression;
use PhpParser\Token;
use Microsoft\PhpParser\Node\Expression;
use Microsoft\PhpParser\Token;
class BinaryExpression extends Expression {

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Expression;
namespace Microsoft\PhpParser\Node\Expression;
use PhpParser\Node\Expression;
use PhpParser\Token;
use Microsoft\PhpParser\Node\Expression;
use Microsoft\PhpParser\Token;
class BracedExpression extends Expression {
/** @var Token */

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Expression;
use PhpParser\Node\DelimitedList;
use PhpParser\Node\Expression;
use PhpParser\Token;
namespace Microsoft\PhpParser\Node\Expression;
use Microsoft\PhpParser\Node\DelimitedList;
use Microsoft\PhpParser\Node\Expression;
use Microsoft\PhpParser\Token;
class CallExpression extends Expression {
/** @var Expression */

Просмотреть файл

@ -4,9 +4,9 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Expression;
namespace Microsoft\PhpParser\Node\Expression;
use PhpParser\Token;
use Microsoft\PhpParser\Token;
class CastExpression extends UnaryExpression {

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Expression;
namespace Microsoft\PhpParser\Node\Expression;
use PhpParser\Node\Expression;
use PhpParser\Token;
use Microsoft\PhpParser\Node\Expression;
use Microsoft\PhpParser\Token;
class CloneExpression extends Expression {

Просмотреть файл

@ -4,11 +4,11 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Expression;
namespace Microsoft\PhpParser\Node\Expression;
use PhpParser\Node\Expression;
use PhpParser\Token;
use Microsoft\PhpParser\Node\Expression;
use Microsoft\PhpParser\Token;
class EchoExpression extends Expression {

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Expression;
namespace Microsoft\PhpParser\Node\Expression;
use PhpParser\Node\Expression;
use PhpParser\Token;
use Microsoft\PhpParser\Node\Expression;
use Microsoft\PhpParser\Token;
class EmptyIntrinsicExpression extends Expression {

Просмотреть файл

@ -4,9 +4,9 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Expression;
namespace Microsoft\PhpParser\Node\Expression;
use PhpParser\Token;
use Microsoft\PhpParser\Token;
class ErrorControlExpression extends UnaryExpression {

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Expression;
namespace Microsoft\PhpParser\Node\Expression;
use PhpParser\Node\Expression;
use PhpParser\Token;
use Microsoft\PhpParser\Node\Expression;
use Microsoft\PhpParser\Token;
class EvalIntrinsicExpression extends Expression {

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Expression;
namespace Microsoft\PhpParser\Node\Expression;
use PhpParser\Node\Expression;
use PhpParser\Token;
use Microsoft\PhpParser\Node\Expression;
use Microsoft\PhpParser\Token;
class ExitIntrinsicExpression extends Expression {

Просмотреть файл

@ -4,11 +4,11 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Expression;
namespace Microsoft\PhpParser\Node\Expression;
use PhpParser\Node\DelimitedList;
use PhpParser\Node\Expression;
use PhpParser\Token;
use Microsoft\PhpParser\Node\DelimitedList;
use Microsoft\PhpParser\Node\Expression;
use Microsoft\PhpParser\Token;
class IssetIntrinsicExpression extends Expression {

Просмотреть файл

@ -4,11 +4,11 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Expression;
namespace Microsoft\PhpParser\Node\Expression;
use PhpParser\Node\DelimitedList;
use PhpParser\Node\Expression;
use PhpParser\Token;
use Microsoft\PhpParser\Node\DelimitedList;
use Microsoft\PhpParser\Node\Expression;
use Microsoft\PhpParser\Token;
class ListIntrinsicExpression extends Expression {

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Expression;
namespace Microsoft\PhpParser\Node\Expression;
use PhpParser\Node\Expression;
use PhpParser\Token;
use Microsoft\PhpParser\Node\Expression;
use Microsoft\PhpParser\Token;
class MemberAccessExpression extends Expression {

Просмотреть файл

@ -4,15 +4,15 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Expression;
namespace Microsoft\PhpParser\Node\Expression;
use PhpParser\Node\ClassBaseClause;
use PhpParser\Node\ClassInterfaceClause;
use PhpParser\Node\ClassMembersNode;
use PhpParser\Node\DelimitedList;
use PhpParser\Node\Expression;
use PhpParser\Node\QualifiedName;
use PhpParser\Token;
use Microsoft\PhpParser\Node\ClassBaseClause;
use Microsoft\PhpParser\Node\ClassInterfaceClause;
use Microsoft\PhpParser\Node\ClassMembersNode;
use Microsoft\PhpParser\Node\DelimitedList;
use Microsoft\PhpParser\Node\Expression;
use Microsoft\PhpParser\Node\QualifiedName;
use Microsoft\PhpParser\Token;
class ObjectCreationExpression extends Expression {

Просмотреть файл

@ -4,11 +4,11 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Expression;
namespace Microsoft\PhpParser\Node\Expression;
use PhpParser\Node\Expression;
use PhpParser\Token;
use Microsoft\PhpParser\Node\Expression;
use Microsoft\PhpParser\Token;
class ParenthesizedExpression extends Expression {

Просмотреть файл

@ -4,11 +4,11 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Expression;
namespace Microsoft\PhpParser\Node\Expression;
use PhpParser\Node\Expression;
use PhpParser\Token;
use Microsoft\PhpParser\Node\Expression;
use Microsoft\PhpParser\Token;
class PostfixUpdateExpression extends Expression {
/** @var Variable */

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Expression;
namespace Microsoft\PhpParser\Node\Expression;
use PhpParser\Token;
use Microsoft\PhpParser\Token;
class PrefixUpdateExpression extends UnaryExpression {

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Expression;
namespace Microsoft\PhpParser\Node\Expression;
use PhpParser\Node\Expression;
use PhpParser\Token;
use Microsoft\PhpParser\Node\Expression;
use Microsoft\PhpParser\Token;
class PrintIntrinsicExpression extends Expression {

Просмотреть файл

@ -4,11 +4,11 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Expression;
namespace Microsoft\PhpParser\Node\Expression;
use PhpParser\Node\Expression;
use PhpParser\Node\QualifiedName;
use PhpParser\Token;
use Microsoft\PhpParser\Node\Expression;
use Microsoft\PhpParser\Node\QualifiedName;
use Microsoft\PhpParser\Token;
class ScopedPropertyAccessExpression extends Expression {

Просмотреть файл

@ -4,9 +4,9 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Expression;
use PhpParser\Node\Expression;
use PhpParser\Token;
namespace Microsoft\PhpParser\Node\Expression;
use Microsoft\PhpParser\Node\Expression;
use Microsoft\PhpParser\Token;
class ScriptInclusionExpression extends Expression {
/** @var Token */

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Expression;
namespace Microsoft\PhpParser\Node\Expression;
use PhpParser\Node\Expression;
use PhpParser\Token;
use Microsoft\PhpParser\Node\Expression;
use Microsoft\PhpParser\Token;
class SubscriptExpression extends Expression {

Просмотреть файл

@ -4,7 +4,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Expression
namespace Microsoft\PhpParser\Node\Expression
class TemplateExpression extends Node {
public $children;

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Expression;
namespace Microsoft\PhpParser\Node\Expression;
use PhpParser\Node\Expression;
use PhpParser\Token;
use Microsoft\PhpParser\Node\Expression;
use Microsoft\PhpParser\Token;
class TernaryExpression extends Expression {

Просмотреть файл

@ -4,9 +4,9 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Expression;
namespace Microsoft\PhpParser\Node\Expression;
use PhpParser\Node\Expression;
use Microsoft\PhpParser\Node\Expression;
class UnaryExpression extends Expression {
/** @var UnaryExpression | Variable */

Просмотреть файл

@ -4,9 +4,9 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Expression;
namespace Microsoft\PhpParser\Node\Expression;
use PhpParser\Token;
use Microsoft\PhpParser\Token;
class UnaryOpExpression extends UnaryExpression {

Просмотреть файл

@ -4,11 +4,11 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Expression;
namespace Microsoft\PhpParser\Node\Expression;
use PhpParser\Node\DelimitedList;
use PhpParser\Node\Expression;
use PhpParser\Token;
use Microsoft\PhpParser\Node\DelimitedList;
use Microsoft\PhpParser\Node\Expression;
use Microsoft\PhpParser\Token;
class UnsetIntrinsicExpression extends Expression {

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Expression;
namespace Microsoft\PhpParser\Node\Expression;
use PhpParser\Node\Expression;
use PhpParser\Token;
use Microsoft\PhpParser\Node\Expression;
use Microsoft\PhpParser\Token;
class Variable extends Expression {
/** @var Token */

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node;
namespace Microsoft\PhpParser\Node;
use PhpParser\Node;
use PhpParser\Token;
use Microsoft\PhpParser\Node;
use Microsoft\PhpParser\Token;
class FinallyClause extends Node {
/** @var Token */

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node;
namespace Microsoft\PhpParser\Node;
use PhpParser\Node;
use PhpParser\Token;
use Microsoft\PhpParser\Node;
use Microsoft\PhpParser\Token;
class ForeachKey extends Node {
/** @var Expression */

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node;
namespace Microsoft\PhpParser\Node;
use PhpParser\Node;
use PhpParser\Token;
use Microsoft\PhpParser\Node;
use Microsoft\PhpParser\Token;
class ForeachValue extends Node {
/** @var Token | null */

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node;
namespace Microsoft\PhpParser\Node;
use PhpParser\Node\Statement\CompoundStatementNode;
use PhpParser\Token;
use Microsoft\PhpParser\Node\Statement\CompoundStatementNode;
use Microsoft\PhpParser\Token;
trait FunctionBody {
/** @var null | CompoundStatementNode | Token */

Просмотреть файл

@ -4,9 +4,9 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node;
namespace Microsoft\PhpParser\Node;
use PhpParser\Token;
use Microsoft\PhpParser\Token;
trait FunctionHeader {
/** @var Token */

Просмотреть файл

@ -4,9 +4,9 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node;
namespace Microsoft\PhpParser\Node;
use PhpParser\Token;
use Microsoft\PhpParser\Token;
trait FunctionReturnType {
/** @var Token */

Просмотреть файл

@ -4,7 +4,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node;
namespace Microsoft\PhpParser\Node;
trait FunctionUseClause {
/** @var AnonymousFunctionUseClause | null */

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node;
namespace Microsoft\PhpParser\Node;
use PhpParser\Node;
use PhpParser\Token;
use Microsoft\PhpParser\Node;
use Microsoft\PhpParser\Token;
class InterfaceBaseClause extends Node {
/** @var Token */

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node;
namespace Microsoft\PhpParser\Node;
use PhpParser\Node;
use PhpParser\Token;
use Microsoft\PhpParser\Node;
use Microsoft\PhpParser\Token;
class InterfaceMembers extends Node {
/** @var Token */

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node;
namespace Microsoft\PhpParser\Node;
use PhpParser\Node;
use PhpParser\Token;
use Microsoft\PhpParser\Node;
use Microsoft\PhpParser\Token;
class MethodDeclaration extends Node {
/** @var Token[] */

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node;
namespace Microsoft\PhpParser\Node;
use PhpParser\Node;
use PhpParser\Token;
use Microsoft\PhpParser\Node;
use Microsoft\PhpParser\Token;
class MissingMemberDeclaration extends Node {

Просмотреть файл

@ -4,9 +4,9 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node;
namespace Microsoft\PhpParser\Node;
use PhpParser\Node;
use Microsoft\PhpParser\Node;
class Name extends Node {

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node;
namespace Microsoft\PhpParser\Node;
use PhpParser\Node;
use PhpParser\Token;
use Microsoft\PhpParser\Node;
use Microsoft\PhpParser\Token;
class NamespaceAliasingClause extends Node {
/** @var Token */

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node;
namespace Microsoft\PhpParser\Node;
use PhpParser\Node;
use PhpParser\Token;
use Microsoft\PhpParser\Node;
use Microsoft\PhpParser\Token;
class NamespaceUseGroupClause extends Node {

Просмотреть файл

@ -4,9 +4,9 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node;
namespace Microsoft\PhpParser\Node;
use PhpParser\Token;
use Microsoft\PhpParser\Token;
class NumericLiteral extends Expression {
/** @var Token[] */

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node;
namespace Microsoft\PhpParser\Node;
use PhpParser\Node;
use PhpParser\Token;
use Microsoft\PhpParser\Node;
use Microsoft\PhpParser\Token;
class Parameter extends Node {
/** @var QualifiedName | Token | null */

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node;
namespace Microsoft\PhpParser\Node;
use PhpParser\Node;
use PhpParser\Token;
use Microsoft\PhpParser\Node;
use Microsoft\PhpParser\Token;
class PropertyDeclaration extends Node {

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node;
namespace Microsoft\PhpParser\Node;
use PhpParser\Node;
use PhpParser\Token;
use Microsoft\PhpParser\Node;
use Microsoft\PhpParser\Token;
class QualifiedName extends Node {
/** @var Token */

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node;
namespace Microsoft\PhpParser\Node;
use PhpParser\Node;
use PhpParser\Token;
use Microsoft\PhpParser\Node;
use Microsoft\PhpParser\Token;
class RelativeSpecifier extends Node {
/** @var Token */

Просмотреть файл

@ -4,9 +4,9 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node;
namespace Microsoft\PhpParser\Node;
use PhpParser\Token;
use Microsoft\PhpParser\Token;
class ReservedWord extends Expression {
/** @var Token[] */

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node;
namespace Microsoft\PhpParser\Node;
use PhpParser\Node;
use PhpParser\Token;
use Microsoft\PhpParser\Node;
use Microsoft\PhpParser\Token;
class SourceFileNode extends Node {
/** @var string */

Просмотреть файл

@ -4,9 +4,9 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Statement;
use PhpParser\Node\StatementNode;
use PhpParser\Token;
namespace Microsoft\PhpParser\Node\Statement;
use Microsoft\PhpParser\Node\StatementNode;
use Microsoft\PhpParser\Token;
class BreakOrContinueStatement extends StatementNode {
/** @var Token */

Просмотреть файл

@ -4,13 +4,13 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Statement;
use PhpParser\Node\ClassBaseClause;
use PhpParser\Node\ClassInterfaceClause;
use PhpParser\Node\ClassMembersNode;
use PhpParser\Node\Name;
use PhpParser\Node\StatementNode;
use PhpParser\Token;
namespace Microsoft\PhpParser\Node\Statement;
use Microsoft\PhpParser\Node\ClassBaseClause;
use Microsoft\PhpParser\Node\ClassInterfaceClause;
use Microsoft\PhpParser\Node\ClassMembersNode;
use Microsoft\PhpParser\Node\Name;
use Microsoft\PhpParser\Node\StatementNode;
use Microsoft\PhpParser\Token;
class ClassDeclaration extends StatementNode {

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Statement;
use PhpParser\Node;
use PhpParser\Node\StatementNode;
use PhpParser\Token;
namespace Microsoft\PhpParser\Node\Statement;
use Microsoft\PhpParser\Node;
use Microsoft\PhpParser\Node\StatementNode;
use Microsoft\PhpParser\Token;
class CompoundStatementNode extends StatementNode {
/** @var Token */

Просмотреть файл

@ -4,11 +4,11 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Statement;
namespace Microsoft\PhpParser\Node\Statement;
use PhpParser\Node\DelimitedList;
use PhpParser\Node\StatementNode;
use PhpParser\Token;
use Microsoft\PhpParser\Node\DelimitedList;
use Microsoft\PhpParser\Node\StatementNode;
use Microsoft\PhpParser\Token;
class ConstDeclaration extends StatementNode {

Просмотреть файл

@ -4,11 +4,11 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Statement;
namespace Microsoft\PhpParser\Node\Statement;
use PhpParser\Node;
use PhpParser\Node\StatementNode;
use PhpParser\Token;
use Microsoft\PhpParser\Node;
use Microsoft\PhpParser\Node\StatementNode;
use Microsoft\PhpParser\Token;
class DeclareStatement extends StatementNode {
/** @var Token */

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Statement;
use PhpParser\Node\Expression;
use PhpParser\Node\StatementNode;
use PhpParser\Token;
namespace Microsoft\PhpParser\Node\Statement;
use Microsoft\PhpParser\Node\Expression;
use Microsoft\PhpParser\Node\StatementNode;
use Microsoft\PhpParser\Token;
class DoStatement extends StatementNode {
/** @var Token */

Просмотреть файл

@ -4,9 +4,9 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Statement;
use PhpParser\Node\StatementNode;
use PhpParser\Token;
namespace Microsoft\PhpParser\Node\Statement;
use Microsoft\PhpParser\Node\StatementNode;
use Microsoft\PhpParser\Token;
class EmptyStatement extends StatementNode {
/** @var Token */

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Statement;
use PhpParser\Node\Expression;
use PhpParser\Node\StatementNode;
use PhpParser\Token;
namespace Microsoft\PhpParser\Node\Statement;
use Microsoft\PhpParser\Node\Expression;
use Microsoft\PhpParser\Node\StatementNode;
use Microsoft\PhpParser\Token;
class ExpressionStatement extends StatementNode {
/** @var Expression | null */

Просмотреть файл

@ -4,10 +4,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Statement;
use PhpParser\Node\Expression;
use PhpParser\Node\StatementNode;
use PhpParser\Token;
namespace Microsoft\PhpParser\Node\Statement;
use Microsoft\PhpParser\Node\Expression;
use Microsoft\PhpParser\Node\StatementNode;
use Microsoft\PhpParser\Token;
class ForStatement extends StatementNode {
/** @var Token */

Просмотреть файл

@ -4,12 +4,12 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Statement;
use PhpParser\Node\Expression;
use PhpParser\Node\ForeachKey;
use PhpParser\Node\ForeachValue;
use PhpParser\Node\StatementNode;
use PhpParser\Token;
namespace Microsoft\PhpParser\Node\Statement;
use Microsoft\PhpParser\Node\Expression;
use Microsoft\PhpParser\Node\ForeachKey;
use Microsoft\PhpParser\Node\ForeachValue;
use Microsoft\PhpParser\Node\StatementNode;
use Microsoft\PhpParser\Token;
class ForeachStatement extends StatementNode {
/** @var Token */

Просмотреть файл

@ -4,12 +4,12 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace PhpParser\Node\Statement;
namespace Microsoft\PhpParser\Node\Statement;
use PhpParser\Node\FunctionBody;
use PhpParser\Node\FunctionHeader;
use PhpParser\Node\FunctionReturnType;
use PhpParser\Node\StatementNode;
use Microsoft\PhpParser\Node\FunctionBody;
use Microsoft\PhpParser\Node\FunctionHeader;
use Microsoft\PhpParser\Node\FunctionReturnType;
use Microsoft\PhpParser\Node\StatementNode;
class FunctionDeclaration extends StatementNode {
use FunctionHeader, FunctionReturnType, FunctionBody;

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше