mirror of
https://github.com/idris-lang/Idris2.git
synced 2025-01-07 08:18:12 +03:00
[ cleanup ] redundant parens, language keyword
This commit is contained in:
parent
243ed5df2c
commit
3c0ff432bd
@ -411,7 +411,7 @@ makeArglist missing xs = do
|
||||
emit EmptyFC $ "Value_Arglist *"
|
||||
++ arglist
|
||||
++ " = newArglist(" ++ show missing
|
||||
++ "," ++ show ((length xs) + missing)
|
||||
++ "," ++ show (length xs + missing)
|
||||
++ ");"
|
||||
pushArgToArglist arglist xs 0
|
||||
pure arglist
|
||||
@ -434,9 +434,9 @@ fillConstructorArgs : {auto oft : Ref OutfileText (List String)}
|
||||
-> Nat
|
||||
-> Core ()
|
||||
fillConstructorArgs _ [] _ = pure ()
|
||||
fillConstructorArgs constructor (v :: vars) k = do
|
||||
emit EmptyFC $ constructor ++ "->args["++ show k ++ "] = newReference(" ++ varName v ++");"
|
||||
fillConstructorArgs constructor vars (S k)
|
||||
fillConstructorArgs cons (v :: vars) k = do
|
||||
emit EmptyFC $ cons ++ "->args["++ show k ++ "] = newReference(" ++ varName v ++");"
|
||||
fillConstructorArgs cons vars (S k)
|
||||
|
||||
|
||||
showTag : Maybe Int -> String
|
||||
|
Loading…
Reference in New Issue
Block a user