mirror of
https://github.com/github/semantic.git
synced 2024-11-24 17:04:47 +03:00
Get the declared names of classes using declaredName.
This commit is contained in:
parent
cc6ed63103
commit
406a2ee625
@ -164,7 +164,7 @@ instance Show1 Class where liftShowsPrec = genericLiftShowsPrec
|
|||||||
|
|
||||||
instance Evaluatable Class where
|
instance Evaluatable Class where
|
||||||
eval Class{..} = do
|
eval Class{..} = do
|
||||||
name <- either (throwEvalError . FreeVariablesError) pure (freeVariable $ subterm classIdentifier)
|
name <- maybeM (throwEvalError (FreeVariablesError [])) (declaredName (subterm classIdentifier))
|
||||||
supers <- traverse subtermAddress classSuperclasses
|
supers <- traverse subtermAddress classSuperclasses
|
||||||
(_, addr) <- letrec name $ do
|
(_, addr) <- letrec name $ do
|
||||||
void $ subtermValue classBody
|
void $ subtermValue classBody
|
||||||
|
Loading…
Reference in New Issue
Block a user