-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: catch up on the updates since the 5.0.0-beta 1 to 5.0.0 release
- Loading branch information
Showing
6 changed files
with
28 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"require": { | ||
"nikic/php-parser": "5.0.0beta1" | ||
"nikic/php-parser": "5.0.0" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
10 changes: 5 additions & 5 deletions
10
src/php-parser/types/node/stmt/throw.ts → src/php-parser/types/node/stmt/block.ts
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import type { Stmt } from '../../node/stmt'; // fullyQualifiedNodeName FullyQualifiedStmt | ||
|
||
import type { NodeTypeInheritingFromFullyQualifiedExpr } from "../../types"; | ||
import type { NodeTypeInheritingFromFullyQualifiedStmt } from "../../types"; | ||
|
||
// eslint-disable-next-line @typescript-eslint/naming-convention | ||
export interface Throw_ extends Omit<Stmt, 'nodeType'> { | ||
nodeType: 'Stmt_Throw'; | ||
export interface Block extends Omit<Stmt, 'nodeType'> { | ||
nodeType: 'Stmt_Block'; | ||
|
||
["expr"] : NodeTypeInheritingFromFullyQualifiedExpr; | ||
["stmts"] : NodeTypeInheritingFromFullyQualifiedStmt[]; | ||
} | ||
|
||
// We also need to export a symbol by using node type | ||
// since the nodeName is possibly duplicated | ||
// for the files need to import all nodes, we needs to use nodeType insteads | ||
export type FullyQualifiedStmtThrow = Throw_; | ||
export type FullyQualifiedStmtBlock = Block; |
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