formatter: better support for function calls from functions but it's still not great, requires more research

This commit is contained in:
Tyler Wilding
2024-05-19 00:13:22 -04:00
parent 32ec1c0100
commit 6eaeb31930
2 changed files with 10 additions and 31 deletions
+9 -30
View File
@@ -150,39 +150,18 @@ Long array creation
(the-as (function none) (-> arr i)))))
===
!Nested function call
TODO - Nested function call
===
(set! (-> this attack-event)
(the-as symbol ((the-as
(function res-lump symbol symbol float structure (pointer res-tag) pointer object)
(method-of-type res-lump get-property-struct)
)
(-> this entity)
'attack-event
'interp
-1000000000.0
'dark-eco-pool
(the-as (pointer res-tag) #f)
*res-static-buf*
)
)
)
(the-as symbol
((the-as (function res-lump symbol symbol float structure (pointer res-tag) pointer object) (method-of-type res-lump get-property-struct))
(-> this entity)
'attack-event)))
---
(set! (-> this attack-event)
(the-as symbol ((the-as
(function res-lump symbol symbol float structure (pointer res-tag) pointer object)
(method-of-type res-lump get-property-struct)
)
(-> this entity)
'attack-event
'interp
-1000000000.0
'dark-eco-pool
(the-as (pointer res-tag) #f)
*res-static-buf*
)
)
)
(the-as symbol
((the-as (function res-lump symbol symbol float structure (pointer res-tag) pointer object) (method-of-type res-lump get-property-struct))
(-> this entity)
'attack-event)))