Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "lib/matchers/Concat"

Index

Type aliases

ConcatDefinitions

ConcatDefinitions: any

MatchStep

Represents a step during matching. Can be a matcher or a function, that can work on the context and return a fresh value.

TermDef

TermDef: Term | string | RegExp

Represents something that can be passed into a microgrammar

Variables

Const methodsOnEveryMatchingLogic

methodsOnEveryMatchingLogic: string[] = ["$id", "matchPrefix", "canStartWith", "requiredPrefix"]

Functions

applyComputation

  • applyComputation(stepName: string, compute: function, argument: Record<string, any>, additionalArgs?: any[]): ComputeEffectsReport
  • Parameters

    • stepName: string
    • compute: function
        • (arg: Record<string, any>, ...others: any): any
        • Parameters

          • arg: Record<string, any>
          • Rest ...others: any

          Returns any

    • argument: Record<string, any>
    • Default value additionalArgs: any[] = []

    Returns ComputeEffectsReport

isMatchVeto

isMatcher

isNamedMatcher

toMatchingLogic

  • Turns a JSON element such as name: "literal" into a matcher. Return undefined if the object is undefined or null

    Parameters

    • o: TermDef

      object to attempt to make into a matcher

    Returns MatchingLogic

whitespaceChildMatch

  • whitespaceChildMatch(skipped: string, matcher: Concat, offset: number): TreeChild

Generated using TypeDoc