Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "material/ast"

Index

Functions

addModuleImportToModule

  • addModuleImportToModule(host: Tree, modulePath: string, moduleName: string, src: string): void
  • Import and add module to specific module path.

    Parameters

    • host: Tree

      the tree we are updating

    • modulePath: string

      src location of the module to import

    • moduleName: string

      name of module to import

    • src: string

      src location to import

    Returns void

addModuleImportToRootModule

  • addModuleImportToRootModule(host: Tree, moduleName: string, src: string, project: WorkspaceProject): void
  • Import and add module to root app module.

    Parameters

    • host: Tree
    • moduleName: string
    • src: string
    • project: WorkspaceProject

    Returns void

getSourceFile

  • getSourceFile(host: Tree, path: string): typescript.SourceFile
  • Reads file given path and returns TypeScript source file.

    Parameters

    • host: Tree
    • path: string

    Returns typescript.SourceFile