chore(tests/playground/parser/syntax): fix test
This commit is contained in:
parent
e081332ef8
commit
e90a79f996
1 changed files with 1 additions and 1 deletions
|
|
@ -148,7 +148,7 @@ def flipScopes (scopes : MacroScopes) : Syntax → Syntax
|
|||
@[inline] def toSyntaxNode {α : Type} (s : Syntax) (base : α) (fn : SyntaxNode → α) : α :=
|
||||
match s with
|
||||
| Syntax.node kind args [] := fn ⟨Syntax.node kind args [], IsNode.mk _ _ _⟩
|
||||
| Syntax.node kind args scopes := fn ⟨Syntax.node kind (args.hmap (flipScopes scopes)) [], IsNode.mk _ _ _⟩
|
||||
| Syntax.node kind args scopes := fn ⟨Syntax.node kind (args.map (flipScopes scopes)) [], IsNode.mk _ _ _⟩
|
||||
| other := base
|
||||
|
||||
local attribute [instance] monadInhabited
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue