mirror of
https://github.com/github/semantic.git
synced 2025-01-07 16:07:28 +03:00
No need to declare multiple times
Co-Authored-By: Rob Rix <rob.rix@github.com>
This commit is contained in:
parent
2d190d8ec9
commit
c505b53898
@ -46,7 +46,7 @@ instance ( Member (Allocator address) sig
|
||||
currentScope' <- currentScope
|
||||
let lexicalEdges = Map.singleton Lexical [ currentScope' ]
|
||||
scope <- newScope lexicalEdges
|
||||
declare (Declaration name) functionSpan (Just scope)
|
||||
putDeclarationScope (Declaration name) scope
|
||||
|
||||
_ <- withScope scope $ do
|
||||
for_ params $ \param -> do
|
||||
|
Loading…
Reference in New Issue
Block a user