-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into issue-201
- Loading branch information
Showing
51 changed files
with
7,283 additions
and
1,160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* Copyright (C) 2018 Glayzzle (BSD3 License) | ||
* @authors https://github.com/glayzzle/php-parser/graphs/contributors | ||
* @url http://glayzzle.com | ||
*/ | ||
"use strict"; | ||
|
||
const Statement = require("./statement"); | ||
const KIND = "constantstatement"; | ||
|
||
/** | ||
* Declares a constants into the current scope | ||
* @constructor ConstantStatement | ||
* @extends {Statement} | ||
* @property {Constant[]} items | ||
*/ | ||
module.exports = Statement.extends(KIND, function ConstantStatement( | ||
kind, | ||
items, | ||
docs, | ||
location | ||
) { | ||
Statement.apply(this, [kind || KIND, docs, location]); | ||
this.items = items; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** | ||
* Copyright (C) 2018 Glayzzle (BSD3 License) | ||
* @authors https://github.com/glayzzle/php-parser/graphs/contributors | ||
* @url http://glayzzle.com | ||
*/ | ||
"use strict"; | ||
|
||
const Expression = require("./expression"); | ||
const KIND = "encapsedpart"; | ||
|
||
/** | ||
* Part of `Encapsed` node | ||
* @constructor EncapsedPart | ||
* @extends {Expression} | ||
* @property {Expression} what | ||
*/ | ||
module.exports = Expression.extends(KIND, function EncapsedPart( | ||
expression, | ||
curly, | ||
docs, | ||
location | ||
) { | ||
Expression.apply(this, [KIND, docs, location]); | ||
this.expression = expression; | ||
this.curly = curly; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.