forked from glayzzle/php-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcatch.js
More file actions
31 lines (29 loc) · 698 Bytes
/
catch.js
File metadata and controls
31 lines (29 loc) · 698 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
* 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 = "catch";
/**
* Defines a catch statement
* @constructor Catch
* @extends {Statement}
* @property {Identifier[]} what
* @property {Variable} variable
* @property {Statement} body
* @see http://php.net/manual/en/language.exceptions.php
*/
module.exports = Statement.extends(KIND, function Catch(
body,
what,
variable,
docs,
location
) {
Statement.apply(this, [KIND, docs, location]);
this.body = body;
this.what = what;
this.variable = variable;
});