chore: generalize withDeclId
This commit is contained in:
parent
e26ec036ba
commit
c8636f2bf7
1 changed files with 1 additions and 1 deletions
|
|
@ -636,7 +636,7 @@ else
|
|||
let optUnivDeclStx := declId.getArg 1;
|
||||
(id, optUnivDeclStx)
|
||||
|
||||
@[inline] def withDeclId (declId : Syntax) (f : Name → CommandElabM Unit) : CommandElabM Unit := do
|
||||
def withDeclId {α} (declId : Syntax) (f : Name → CommandElabM α) : CommandElabM α := do
|
||||
-- ident >> optional (".{" >> sepBy1 ident ", " >> "}")
|
||||
let (id, optUnivDeclStx) := expandDeclId declId;
|
||||
savedLevelNames ← getLevelNames;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue