mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-15 00:45:04 +01:00
Start lowering
This commit is contained in:
parent
8b424c0add
commit
87f081a4fe
5 changed files with 33 additions and 25 deletions
|
|
@ -23,7 +23,7 @@ function printItem(item: Item): string {
|
|||
}
|
||||
|
||||
function printFunction(func: FunctionDef): string {
|
||||
const args = func.args
|
||||
const args = func.params
|
||||
.map(({ name, type }) => `${name}: ${printType(type)}`)
|
||||
.join(", ");
|
||||
const ret = func.returnType ? `: ${printType(func.returnType)}` : "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue