mirror of
https://github.com/github/semantic.git
synced 2025-01-08 08:30:27 +03:00
Update VariableDeclarations
This commit is contained in:
parent
79e144d73a
commit
e9b5e5760d
@ -165,9 +165,8 @@ instance Evaluatable VariableDeclaration where
|
|||||||
eval _ _ (VariableDeclaration []) = unit
|
eval _ _ (VariableDeclaration []) = unit
|
||||||
eval eval _ (VariableDeclaration decs) = do
|
eval eval _ (VariableDeclaration decs) = do
|
||||||
for_ decs $ \declaration -> do
|
for_ decs $ \declaration -> do
|
||||||
name <- maybeM (throwNoNameError declaration) (declaredName declaration)
|
let span = getSpan declaration
|
||||||
let declarationSpan = getSpan declaration
|
_ <- declareMaybeName (declaredName declaration) Default ScopeGraph.Public span ScopeGraph.VariableDeclaration Nothing
|
||||||
declare (Declaration name) Default ScopeGraph.Public declarationSpan ScopeGraph.VariableDeclaration Nothing
|
|
||||||
eval declaration
|
eval declaration
|
||||||
unit
|
unit
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user