Skip to content

Class: WildcardPattern ​

Represents a wildcard pattern (_), which matches anything and discards the value.

Example ​

ts
const _ x = x

Constructors ​

Constructor ​

new WildcardPattern(loc?): WildcardPattern

Parameters ​

ParameterType
loc?SourceLocation

Returns ​

WildcardPattern

Inherited from ​

ASTNode.constructor