Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "tree/ast/astUtils"

Index

Variables

Const ExpressionSeparator

ExpressionSeparator: "::" = "::"

Separates glob patterns from path expressions in unified expression syntax

type

{string}

Functions

fillInSourceLocations

findByExpression

  • Integrate path expressions with project operations to find all matches using a unified string expression format of the form

    -> This can be useful to foster reuse

    Parameters

    Returns Promise<MatchResult[]>

    hit record for each matching file

findFileMatches

findMatches

  • Integrate path expressions with project operations to find all matches

    Parameters

    • p: ProjectAsync

      project

    • parserOrRegistry: FileParser | FileParserRegistry

      parser for files

    • globPatterns: GlobOptions

      file glob patterns

    • pathExpression: string | PathExpression

      path expression string or parsed

    • Optional functionRegistry: object

      registry to look for path expression functions in

    Returns Promise<MatchResult[]>

    hit records for each matching file

findParser

findValues

  • Convenient method to find all values of matching nodes-- typically, terminals such as identifiers

    Parameters

    • p: ProjectAsync

      project

    • parserOrRegistry: FileParser | FileParserRegistry

      parser for files

    • globPatterns: GlobOptions

      file glob pattern

    • pathExpression: string | PathExpression

      path expression string or parsed

    • Optional functionRegistry: object

      registry to look for path expression functions in

    Returns Promise<string[]>

    hit record for each matching file

parseFile

zapAllMatches

  • Integrate path expressions with project operations to find all matches of a path expression and zap them. Use with care!

    Type parameters

    Parameters

    Returns Promise<P>

    hit record for each matching file

Generated using TypeDoc