fix: skip declarations that do not have a value
This commit is contained in:
parent
574c75081f
commit
05f0a6c423
1 changed files with 1 additions and 0 deletions
|
|
@ -27,6 +27,7 @@ and `[specialize]` since they can be partially applied.
|
|||
-/
|
||||
def shouldGenerateCode (declName : Name) : CoreM Bool := do
|
||||
if (← isCompIrrelevant |>.run') then return false
|
||||
unless (← getConstInfo declName).hasValue do return false
|
||||
let env ← getEnv
|
||||
if hasMacroInlineAttribute env declName then return false
|
||||
if (← Meta.isMatcher declName) then return false
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue