Simplify creating Lit
This commit is contained in:
parent
fafc567447
commit
45caafdc38
8 changed files with 38 additions and 14 deletions
|
|
@ -22,7 +22,7 @@ impl FuncDef {
|
|||
span,
|
||||
})
|
||||
.table_lit();
|
||||
let quote = Lit::Table(quote).expr().boxed();
|
||||
let quote = quote.lit().expr().boxed();
|
||||
let scope = Call::NoArg {
|
||||
expr: Lit::Builtin(Builtin::Scope, span).expr().boxed(),
|
||||
s0: Space::empty(span),
|
||||
|
|
@ -76,7 +76,7 @@ impl FuncDef {
|
|||
s0: Space::empty(span),
|
||||
s1: Space::empty(span),
|
||||
s2: Space::empty(span),
|
||||
body: Lit::Table(body).expr().boxed(),
|
||||
body: body.lit().expr().boxed(),
|
||||
span,
|
||||
};
|
||||
(new.expr(), true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue