Class Definition AST JavaScript Object
The ClassDefinition
object matches the definition of a class.
The astType
value for this node is classdefinition
.
Code Pattern
This AST element captures the arg1
or arg2
part of the following code:
class Rectangle {
constructor(height, width) {
this.height = height;
this.width = width;
}
}