1
1
mirror of https://github.com/github/semantic.git synced 2025-01-05 05:58:34 +03:00

Update VariableDeclarations

This commit is contained in:
Rick Winfrey 2019-03-14 17:20:29 -07:00
parent 79e144d73a
commit e9b5e5760d

View File

@ -165,9 +165,8 @@ instance Evaluatable VariableDeclaration where
eval _ _ (VariableDeclaration []) = unit
eval eval _ (VariableDeclaration decs) = do
for_ decs $ \declaration -> do
name <- maybeM (throwNoNameError declaration) (declaredName declaration)
let declarationSpan = getSpan declaration
declare (Declaration name) Default ScopeGraph.Public declarationSpan ScopeGraph.VariableDeclaration Nothing
let span = getSpan declaration
_ <- declareMaybeName (declaredName declaration) Default ScopeGraph.Public span ScopeGraph.VariableDeclaration Nothing
eval declaration
unit