mirror of
https://github.com/github/semantic.git
synced 2024-12-01 09:15:01 +03:00
Construct info with access control
This commit is contained in:
parent
71646b50db
commit
df18a4fa07
@ -155,7 +155,7 @@ declare decl rel accessControl declSpan assocScope currentScope g = fromMaybe (g
|
||||
case Seq.findIndexR (\Info{..} -> decl == infoDeclaration && declSpan == infoSpan && rel == infoRelation) dataSeq of
|
||||
Just index -> pure (g, Just (Position index))
|
||||
Nothing -> do
|
||||
let newScope = scope { declarations = declarations scope Seq.|> Info decl rel declSpan assocScope }
|
||||
let newScope = scope { declarations = declarations scope Seq.|> Info decl rel accessControl declSpan assocScope }
|
||||
pure (insertScope currentScope newScope g, Just (Position (length (declarations newScope))))
|
||||
|
||||
-- | Add a reference to a declaration in the scope graph.
|
||||
|
Loading…
Reference in New Issue
Block a user