Class: Assert
Constructors
Constructor
new Assert(
negated,body,loc?):Assert
Parameters
| Parameter | Type |
|---|---|
negated | Expression |
body | Assertion |
loc? | SourceLocation |
Returns
Assert
Overrides
ASTNode.constructor
Properties
| Property | Type |
|---|---|
body | Assertion |
negated | Expression |
Methods
getMetadata()
getMetadata<
T>(key):T
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type |
|---|---|
key | string |
Returns
T
Inherited from
ASTNode.getMetadata
hasMetadata()
hasMetadata(
key):boolean
Parameters
| Parameter | Type |
|---|---|
key | string |
Returns
boolean
Inherited from
ASTNode.hasMetadata
is()
is<
T>(nodeType):this is T
Type Parameters
| Type Parameter |
|---|
T extends ASTNode |
Parameters
| Parameter | Type |
|---|---|
nodeType | (...args) => T |
Returns
this is T
Inherited from
ASTNode.is
setMetadata()
setMetadata(
key,value):void
Parameters
| Parameter | Type |
|---|---|
key | string |
value | any |
Returns
void
Inherited from
ASTNode.setMetadata