feat: update macros for extra info field
This commit is contained in:
parent
6efb459d5b
commit
b74db2d902
2 changed files with 2 additions and 2 deletions
|
|
@ -55,7 +55,7 @@ partial def quoteAutoTactic : Syntax → TermElabM Syntax
|
|||
else
|
||||
let quotedArg ← quoteAutoTactic arg
|
||||
quotedArgs ← `(Array.push $quotedArgs $quotedArg)
|
||||
`(Syntax.node $(quote k) $quotedArgs)
|
||||
`(Syntax.node SourceInfo.none $(quote k) $quotedArgs)
|
||||
| Syntax.atom info val => `(mkAtom $(quote val))
|
||||
| Syntax.missing => throwError "invalid auto tactic, tactic is missing"
|
||||
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ private partial def quoteSyntax : Syntax → TermElabM Syntax
|
|||
else do
|
||||
let arg ← quoteSyntax arg
|
||||
args := args.push arg
|
||||
`(Syntax.node $(quote k) $(args.build))
|
||||
`(Syntax.node SourceInfo.none $(quote k) $(args.build))
|
||||
| Syntax.atom _ val =>
|
||||
`(Syntax.atom info $(quote val))
|
||||
| Syntax.missing => throwUnsupportedSyntax
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue