Skip to content

Class: UnionPattern

Represents a union of patterns, matching if any of the sub-patterns match.

Constructors

Constructor

new UnionPattern(patterns, loc?): UnionPattern

Parameters

ParameterType
patternsPattern[]
loc?SourceLocation

Returns

UnionPattern

Overrides

ASTNode.constructor