Angular Modernizer
    Preparing search index...

    Classifies absolute file paths into the configured layer topology (layers / layersSource). Shared by the layer-boundary and content-placement rules so both read layer membership the same way.

    Matches files against each layer's paths globs (anchored at the project root, segment-correct). Layers without paths use the directory their alias maps to in tsconfig paths. The most specific pattern wins, independent of layer declaration order.

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Parameters

      • layers: readonly LayerConfig[]

        Layer topology in effect

      • compilerOptions: CompilerOptions

        Compiler options of the analyzed project

      • OptionalprojectRoot: string

        Explicit project root; falls back to the directory of the tsconfig the project was loaded from. Without either, globs are matched segment-wise anywhere in the path.

      Returns LayerPathMatcher

    Properties

    projectRoot: string | undefined

    Normalised project root the relative globs are anchored at

    Methods

    • Classify an absolute file path; null when no layer matches.

      Parameters

      • filePath: string

      Returns LayerConfig | null

    • Matcher using the compiler options of a ts-morph project.

      Parameters

      • layers: readonly LayerConfig[]

        Layer topology in effect

      • project: Project

        Analyzed project

      • OptionalprojectRoot: string

        Explicit project root (see the constructor)

      Returns LayerPathMatcher