Concatenate several patterns.

Hierarchy (view full)

Constructors

Properties

parts: Pattern[] = []

Methods

  • Build names following the structure of this pattern.

    Parameters

    • Rest ...varsL: VarsLike[]

      Sets of variables to be replaced into the name.

    Returns Iterable<Name>

    Iterable of possible names.

  • Determine whether a name matches the structure of this pattern.

    Parameters

    • name: Name

      Input name.

    Returns Iterable<Vars>

    • Iterable of extracted fields in possible interpretations.
  • Recognize part of the input name.

    Parameters

    • state: MatchState
    • partIndex: number = 0

    Returns Iterable<MatchState>

    Iterable of potential matches.

  • Build part of an output name.

    Parameters

    Returns Iterable<BuildState>

    Iterable of potential constructions.

Generated using TypeDoc