a million fixes
This commit is contained in:
parent
b1696499e5
commit
c294d7fd6a
12 changed files with 140 additions and 168 deletions
22
src/ast.ts
22
src/ast.ts
|
|
@ -17,7 +17,7 @@ export type Variable = {
|
|||
kind: 'variable'
|
||||
name: string
|
||||
line?: number
|
||||
column: number
|
||||
column?: number
|
||||
start?: number
|
||||
}
|
||||
|
||||
|
|
@ -148,24 +148,6 @@ export type Definition = {
|
|||
start?: number
|
||||
}
|
||||
|
||||
export type TypeDef = {
|
||||
kind: 'typedef'
|
||||
name: string
|
||||
variants: Array<{ name: string, args: string[] }>
|
||||
line?: number
|
||||
column?: number
|
||||
start?: number
|
||||
}
|
||||
|
||||
export type Import = {
|
||||
kind: 'import'
|
||||
module: string
|
||||
items: string[] | 'all'
|
||||
line?: number
|
||||
column?: number
|
||||
start?: number
|
||||
}
|
||||
|
||||
export type Rebind = {
|
||||
kind: 'rebind'
|
||||
target: AST
|
||||
|
|
@ -189,8 +171,6 @@ export type AST =
|
|||
| List
|
||||
| ListSpread
|
||||
| Definition
|
||||
| TypeDef
|
||||
| Import
|
||||
| Rebind
|
||||
|
||||
export function prettyPrint(ast: AST, indent = 0): string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue