Several migration fixes and make some zig parser improvements based on migrated code in the wild (#7716)

This commit is contained in:
Joshua Warner 2025-04-08 04:46:44 -07:00 committed by GitHub
parent 68af4b9a06
commit 6d22c4dd7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
329 changed files with 1663 additions and 833 deletions

View file

@ -5,6 +5,6 @@ O({p: if
A
} else {
&m
}}, #
}} #
) : e
i

View file

@ -1,2 +1,2 @@
N((implements),h,(0),) : B
N((implements), h, (0)) : B
T

View file

@ -1,4 +1,4 @@
M({s: s({J&
},)},{s: s({J&
},)},) : p
})}, {s: s({J&
})}) : p
y

View file

@ -1,4 +1,4 @@
Q((
"""
"""("",)),) : a
"""(""))) : a
q

View file

@ -1,6 +1,6 @@
il3(|k| # w#z
{
CCC(@C,( # i
t!(K,)),) : i
CCC(@C, ( # i
t!(K))) : i
C
},)
})

View file

@ -1,4 +1,4 @@
foo: [True,Perhaps(Thing,),]
foo: [True, Perhaps(Thing)]
foo = True
42

View file

@ -1,5 +1,5 @@
launchTheNukes: {}, => Result(Bool,LaunchNukeErr,)
launchTheNukes: {} => Result(Bool, LaunchNukeErr)
launchTheNukes = |{}|
crash("todo",)
crash("todo")
launchTheNukes

View file

@ -1,5 +1,5 @@
x: a
where
e
implements K, -> Z
implements K -> Z
s

View file

@ -1,4 +1,4 @@
J() : [
J : [
] where e
implements T
i

View file

@ -1,3 +1,3 @@
1: (f,
ww, -> p,..e)
ww -> p, ..e)
Mh

View file

@ -1,4 +1,4 @@
{x,y,}: Foo
{x,y,} = {x: "foo"y: 3.14}
{x, y}: Foo
{x, y} = {x: "foo", y: 3.14}
x

View file

@ -1,4 +1,4 @@
UserId(x,): [UserId(I64,),]
UserId(x,) = UserId(42,)
UserId(x): [UserId(I64)]
UserId(x) = UserId(42)
x

View file

@ -1,4 +1,4 @@
(x,y,): Foo
(x,y,) = ("foo",3.14,)
(x, y): Foo
(x, y) = ("foo", 3.14)
x

View file

@ -1,2 +1,2 @@
s: eas A()as A()
s: eas Aas A
s

View file

@ -1,3 +1,3 @@
Str.getUnsafe(haystack,haystackIndex,)
==
Str.getUnsafe(needle,needleIndex,)
Str.getUnsafe(haystack, haystackIndex)
==
Str.getUnsafe(needle, needleIndex)

View file

@ -1,2 +1,2 @@
foo
|> Dict.keepIf(|(k,_v,)| List.contains(keysToDelete,k,) |> Bool.not,)
.(Dict.keepIf)(|(k, _v)| List.contains(keysToDelete, k).(Bool.not)())

View file

@ -1,2 +1,2 @@
0({lxtl: (se #
)},)
0({l xt l: (se #
)})

View file

@ -1 +1 @@
Whee(12,34,)
Whee(12, 34)

View file

@ -1 +1 @@
!whee(12,foo,)
!whee(12, foo)

View file

@ -1,2 +1,2 @@
|{x,y,} as point@Location(inner,) as outer|
crash("",)
|{x, y} as point@Location(inner) as outer|
crash("")

View file

@ -1,3 +1,3 @@
e: J
as H(), -> A
as H -> A
r

View file

@ -1 +1 @@
launchTheNukes!(123,)
launchTheNukes!(123)

View file

@ -1,4 +1,4 @@
|I({p? Y(
Y,)?,},[
],)|
Y)?},[
])|
K # (

View file

@ -1,2 +1,2 @@
m0(|w| w?(e,),)
/ s
m0(|w| w?(e))
/ s

View file

@ -1,8 +1,8 @@
Model(position,) :
{evaluated: Set(position,)
openSet: Set(position,)
costs: Dict.Dict(position,F64,)
cameFrom: Dict.Dict(position,position,)
Model(position) :
{evaluated: Set(position),
openSet: Set(position),
costs: Dict.Dict(position, F64),
cameFrom: Dict.Dict(position, position)
}
a

View file

@ -1,9 +1,9 @@
PP(P(@P(P(
P(PPP(P(
PPP,),
),
),
PP(mport, # <|"P
),),
),),
PPP)
)
),
PP(mport # <|"P
))
))
)

View file

@ -1,3 +1,3 @@
1: (M,b, # ,
h, -> g,..e)
1: (M, b, # ,
h -> g, ..e)
h

View file

@ -1,11 +1,11 @@
_ = crash("",)
_ = crash("","",)
_ = crash(15,123,)
_ = try(foo,(|_| crash("",)),)
_ = crash("")
_ = crash("", "")
_ = crash(15, 123)
_ = try(foo, (|_| crash("")))
_ =
{
_ = crash("",)
_ = crash("")
crash
}
{f: crash("",)}
{f: crash("")}

View file

@ -1,4 +1,4 @@
1(0( #
0,),
)(f,): f
0)
)(f): f
t

View file

@ -1,6 +1,6 @@
1(ts(0,
1(ts(0
#
),
)(f,): i7f
)
)(f): i7f
e

View file

@ -1,2 +1,2 @@
1: w, -> w, -> p
1: w -> w -> p
h

View file

@ -1 +1 @@
dbg(dbg,g,g,)
dbg(dbg, g, g)

View file

@ -1,4 +1,4 @@
dbg(
izzb,
interfacesb,)
interfacesb)

View file

@ -1,6 +1,6 @@
dbg
(q(
qt,))
qt))
g(
qt,)
qt)

View file

@ -1,4 +1,4 @@
launchTheNukes! = |{}|
boom
launchTheNukes!({},)
launchTheNukes!({})

View file

@ -1,7 +1,7 @@
main =
{
a = "Foo"
Stdout.line?(a,)
Stdout.line?(a)
printBar?
}
@ -9,5 +9,5 @@ main =
printBar =
{
b = "Bar"
Stdout.line(b,)
Stdout.line(b)
}

View file

@ -1,2 +1,2 @@
Email(str,) = Email("blah@example.com",)
Email(str) = Email("blah@example.com")
str

View file

@ -1,3 +1,3 @@
1: (w, -> p,
w, -> p,)
1: (w -> p,
w -> p)
h

View file

@ -1,4 +1,4 @@
(0( #
e,),0( #
p,),): f
e), 0( #
p)): f
t #

View file

@ -1 +1 @@
get_name!({},) ?? "Bob"
get_name!({}) ?? "Bob"

Some files were not shown because too many files have changed in this diff Show more