Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c327102
commit 80487d5
Showing
127 changed files
with
2,783 additions
and
966 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { TSESTree } from '@typescript-eslint/experimental-utils'; | ||
import { Scope } from './Scope'; | ||
import { ScopeBase } from './ScopeBase'; | ||
import { ScopeType } from './ScopeType'; | ||
import { ScopeManager } from '../ScopeManager'; | ||
|
||
class ConditionalTypeScope extends ScopeBase< | ||
ScopeType.conditionalType, | ||
TSESTree.TSConditionalType, | ||
Scope | ||
> { | ||
constructor( | ||
scopeManager: ScopeManager, | ||
upperScope: ConditionalTypeScope['upper'], | ||
block: ConditionalTypeScope['block'], | ||
) { | ||
super(scopeManager, ScopeType.conditionalType, upperScope, block, false); | ||
} | ||
} | ||
|
||
export { ConditionalTypeScope }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { TSESTree } from '@typescript-eslint/experimental-utils'; | ||
import { Scope } from './Scope'; | ||
import { ScopeBase } from './ScopeBase'; | ||
import { ScopeType } from './ScopeType'; | ||
import { ScopeManager } from '../ScopeManager'; | ||
|
||
class FunctionTypeScope extends ScopeBase< | ||
ScopeType.functionType, | ||
| TSESTree.TSCallSignatureDeclaration | ||
| TSESTree.TSConstructorType | ||
| TSESTree.TSConstructSignatureDeclaration | ||
| TSESTree.TSFunctionType | ||
| TSESTree.TSMethodSignature, | ||
Scope | ||
> { | ||
constructor( | ||
scopeManager: ScopeManager, | ||
upperScope: FunctionTypeScope['upper'], | ||
block: FunctionTypeScope['block'], | ||
) { | ||
super(scopeManager, ScopeType.functionType, upperScope, block, false); | ||
} | ||
} | ||
|
||
export { FunctionTypeScope }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { TSESTree } from '@typescript-eslint/experimental-utils'; | ||
import { Scope } from './Scope'; | ||
import { ScopeBase } from './ScopeBase'; | ||
import { ScopeType } from './ScopeType'; | ||
import { ScopeManager } from '../ScopeManager'; | ||
|
||
class MappedTypeScope extends ScopeBase< | ||
ScopeType.mappedType, | ||
TSESTree.TSMappedType, | ||
Scope | ||
> { | ||
constructor( | ||
scopeManager: ScopeManager, | ||
upperScope: MappedTypeScope['upper'], | ||
block: MappedTypeScope['block'], | ||
) { | ||
super(scopeManager, ScopeType.mappedType, upperScope, block, false); | ||
} | ||
} | ||
|
||
export { MappedTypeScope }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.