mirror of
https://github.com/github/semantic.git
synced 2024-11-23 16:37:50 +03:00
Remove declareFunction stub
This commit is contained in:
parent
c53416c5f7
commit
64cc956ed8
@ -97,21 +97,4 @@ withScope :: Has Sketch sig m
|
||||
-> m a
|
||||
-> m a
|
||||
withScope scope = local (const scope)
|
||||
-- declareFunction :: ( Has (State (ScopeGraph address)) sig m
|
||||
-- , Has (Allocator address) sig m
|
||||
-- , Has (Reader (CurrentScope address)) sig m
|
||||
-- , Has (Reader ModuleInfo) sig m
|
||||
-- , Has Fresh sig m
|
||||
-- , Ord address
|
||||
-- )
|
||||
-- => Maybe Name
|
||||
-- -> ScopeGraph.AccessControl
|
||||
-- -> Span
|
||||
-- -> ScopeGraph.Kind
|
||||
-- -> Evaluator term address value m (Name, address)
|
||||
-- declareFunction name accessControl span kind = do
|
||||
-- currentScope' <- currentScope
|
||||
-- let lexicalEdges = Map.singleton Lexical [ currentScope' ]
|
||||
-- associatedScope <- newScope lexicalEdges
|
||||
-- name' <- declareMaybeName name Default accessControl span kind (Just associatedScope)
|
||||
-- pure (name', associatedScope)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user