-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: align class property representation with ESTree
- Loading branch information
1 parent
ea6a97c
commit 143d4fa
Showing
81 changed files
with
744 additions
and
356 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 was deleted.
Oops, something went wrong.
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,19 @@ | ||
import type { AST_NODE_TYPES } from '../../ast-node-types'; | ||
import type { | ||
PropertyDefinitionComputedNameBase, | ||
PropertyDefinitionNonComputedNameBase, | ||
} from '../../base/PropertyDefinitionBase'; | ||
|
||
export interface PropertyDefinitionComputedName | ||
extends PropertyDefinitionComputedNameBase { | ||
type: AST_NODE_TYPES.PropertyDefinition; | ||
} | ||
|
||
export interface PropertyDefinitionNonComputedName | ||
extends PropertyDefinitionNonComputedNameBase { | ||
type: AST_NODE_TYPES.PropertyDefinition; | ||
} | ||
|
||
export type PropertyDefinition = | ||
| PropertyDefinitionComputedName | ||
| PropertyDefinitionNonComputedName; |
19 changes: 0 additions & 19 deletions
19
packages/ast-spec/src/element/TSAbstractClassProperty/spec.ts
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
packages/ast-spec/src/element/TSAbstractPropertyDefinition/spec.ts
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,19 @@ | ||
import type { AST_NODE_TYPES } from '../../ast-node-types'; | ||
import type { | ||
PropertyDefinitionComputedNameBase, | ||
PropertyDefinitionNonComputedNameBase, | ||
} from '../../base/PropertyDefinitionBase'; | ||
|
||
export interface TSAbstractPropertyDefinitionComputedName | ||
extends PropertyDefinitionComputedNameBase { | ||
type: AST_NODE_TYPES.TSAbstractPropertyDefinition; | ||
} | ||
|
||
export interface TSAbstractPropertyDefinitionNonComputedName | ||
extends PropertyDefinitionNonComputedNameBase { | ||
type: AST_NODE_TYPES.TSAbstractPropertyDefinition; | ||
} | ||
|
||
export type TSAbstractPropertyDefinition = | ||
| TSAbstractPropertyDefinitionComputedName | ||
| TSAbstractPropertyDefinitionNonComputedName; |
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import type { ClassProperty } from '../element/ClassProperty/spec'; | ||
import type { PropertyDefinition } from '../element/PropertyDefinition/spec'; | ||
import type { MethodDefinition } from '../element/MethodDefinition/spec'; | ||
import type { StaticBlock } from '../element/StaticBlock/spec'; | ||
import type { TSAbstractClassProperty } from '../element/TSAbstractClassProperty/spec'; | ||
import type { TSAbstractPropertyDefinition } from '../element/TSAbstractPropertyDefinition/spec'; | ||
import type { TSAbstractMethodDefinition } from '../element/TSAbstractMethodDefinition/spec'; | ||
import type { TSIndexSignature } from '../element/TSIndexSignature/spec'; | ||
|
||
export type ClassElement = | ||
| ClassProperty | ||
| PropertyDefinition | ||
| MethodDefinition | ||
| StaticBlock | ||
| TSAbstractClassProperty | ||
| TSAbstractPropertyDefinition | ||
| TSAbstractMethodDefinition | ||
| TSIndexSignature; |
Oops, something went wrong.