blob: 560ed28834aeb5a96a53671c940aede6b9c5d578 [file]
/-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Compiler.LCNF.BaseTypes
import Lean.Compiler.LCNF.MonoTypes
namespace Lean.Compiler.LCNF
/--
Return the LCNF type for constructors, inductive types, and foreign functions.
-/
def getOtherDeclType (declName : Name) (us : List Level := []) : CompilerM Expr := do
match (← getPhase) with
| .base => getOtherDeclBaseType declName us
| .mono => getOtherDeclMonoType declName
| _ => unreachable! -- TODO
end Lean.Compiler.LCNF