mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
format code & replace vec!(in arena;...) with arena.alloc([...])
This commit is contained in:
parent
9c21ac1388
commit
6975294278
4 changed files with 22 additions and 14 deletions
|
@ -2153,19 +2153,14 @@ impl<'a> Expr<'a> {
|
|||
.append(symbol_to_doc(alloc, *structure, pretty)),
|
||||
|
||||
GetElementPointer {
|
||||
structure,
|
||||
indices,
|
||||
..
|
||||
structure, indices, ..
|
||||
} => {
|
||||
let it = indices.iter().map(|num| alloc.as_string(num));
|
||||
let it = alloc.intersperse(it, ", ");
|
||||
text!(
|
||||
alloc,
|
||||
"GetElementPointer (Indices [",
|
||||
)
|
||||
.append(it)
|
||||
.append(alloc.text("]) "))
|
||||
.append(symbol_to_doc(alloc, *structure, pretty))
|
||||
text!(alloc, "GetElementPointer (Indices [",)
|
||||
.append(it)
|
||||
.append(alloc.text("]) "))
|
||||
.append(symbol_to_doc(alloc, *structure, pretty))
|
||||
}
|
||||
// .append(alloc.intersperse(index.iter(), ", "))},
|
||||
Alloca { initializer, .. } => match initializer {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue