a million fixes

This commit is contained in:
Dustin Swan 2026-02-11 22:06:26 -07:00
parent b1696499e5
commit c294d7fd6a
No known key found for this signature in database
GPG key ID: 30D46587E2100467
12 changed files with 140 additions and 168 deletions

View file

@ -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 {