# Class: FileContext
@boll/core › Globals › FileContext
# Class: FileContext
# Hierarchy
- FileContext
# Index
# Constructors
# Properties
- _ignoredChecks
- _parsedIgnoreChecks
- _sourceFile
- _sourceFileLoaded
- content
- filename
- packageContext
- packageRoot
# Accessors
# Methods
# Constructors
# constructor
+ new FileContext(packageRoot
: BollDirectory, packageContext
: Package, filename
: BollFile, content
: string): FileContext
Defined in file-context.ts:14
Parameters:
Name | Type |
---|---|
packageRoot | BollDirectory |
packageContext | Package |
filename | BollFile |
content | string |
Returns: FileContext
# Properties
# Private
_ignoredChecks
• _ignoredChecks: string[] = []
Defined in file-context.ts:12
# Private
_parsedIgnoreChecks
• _parsedIgnoreChecks: boolean = false
Defined in file-context.ts:11
# Private
Optional
_sourceFile
• _sourceFile? : ts.SourceFile = undefined
Defined in file-context.ts:14
# Private
_sourceFileLoaded
• _sourceFileLoaded: boolean = false
Defined in file-context.ts:13
# content
• content: string
Defined in file-context.ts:20
# filename
• filename: BollFile
Defined in file-context.ts:19
# packageContext
• packageContext: Package
Defined in file-context.ts:18
# packageRoot
• packageRoot: BollDirectory
Defined in file-context.ts:17
# Accessors
# ignoredChecks
• get ignoredChecks(): string[]
Defined in file-context.ts:34
Returns: string[]
# packageDependencies
• get packageDependencies(): DependencyMap
Defined in file-context.ts:30
Returns: DependencyMap
# source
• get source(): SourceFile
Defined in file-context.ts:23
Returns: SourceFile
# Methods
# shouldSkip
▸ shouldSkip(r
: PackageRule): boolean
Defined in file-context.ts:51
Parameters:
Name | Type |
---|---|
r | PackageRule |
Returns: boolean