Options
All
  • Public
  • Public/Protected
  • All
Menu

Class File

TypeScript resource. Basically a file that is located somewhere.

export
class

File

implements

{Resource}

implements

{Node}

Hierarchy

  • File

Implements

Index

Constructors

constructor

  • new File(filePath: string, rootPath: string, start: number, end: number): File

Properties

declarations

declarations: Declaration[] = []

end

end: number

exports

exports: Export[] = []

filePath

filePath: string

imports

imports: Import[] = []

resources

resources: Resource[] = []

Private rootPath

rootPath: string

start

start: number

usages

usages: string[] = []

Accessors

identifier

  • get identifier(): string

isWorkspaceFile

  • get isWorkspaceFile(): boolean
  • Determines if a file is a workspace file or an external resource.

    readonly
    type

    {boolean}

    memberof

    File

    Returns boolean

nonLocalUsages

  • get nonLocalUsages(): string[]

parsedPath

  • get parsedPath(): ParsedPath
  • Returns the parsed path of a resource.

    readonly
    type

    {ParsedPath}

    memberof

    File

    Returns ParsedPath

Generated using TypeDoc