UNPKG
abstract-syntax-tree
Version:
latest (2.22.0)
2.22.0
2.21.2
2.21.1
2.21.0
2.20.7
2.20.6
2.20.5
2.20.4
2.20.3
2.20.2
2.20.1
2.20.0
2.19.1
2.19.0
2.18.1
2.18.0
2.17.6
2.17.5
2.17.4
2.17.3
2.17.2
2.17.1
2.17.0
2.16.0
2.15.3
2.15.2
2.15.1
2.15.0
2.14.0
2.13.0
2.12.0
2.11.0
2.10.1
2.10.0
2.9.5
2.9.4
2.9.3
2.9.2
2.9.1
2.9.0
2.8.5
2.8.4
2.8.3
2.8.2
2.8.1
2.8.0
2.7.0
2.6.2
2.6.1
2.6.0
2.5.0
2.4.0
2.3.0
2.2.0
2.1.3
2.1.2
2.1.1
2.1.0
2.0.1
2.0.0
1.1.2
1.1.1
1.1.0
1.0.3
1.0.2
1.0.1
1.0.0
abstract syntax tree
github.com/buxlabs/abstract-syntax-tree
buxlabs/abstract-syntax-tree
abstract-syntax-tree
/
src
/
nodes
/
Identifier.js
10 lines
(8 loc)
•
212 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
class
Identifier
{
constructor
(
param
) {
this
.
type
=
'Identifier'
const
options =
typeof
param ===
'string'
? {
name
: param } : param
Object
.
assign
(
this
, options) } }
module
.
exports
=
Identifier