mirror of
https://github.com/github/semantic.git
synced 2025-01-04 13:34:31 +03:00
Reflect instance methods / field definitions access control when instantiating objects
This commit is contained in:
parent
ad68196124
commit
8679f360fb
@ -559,7 +559,11 @@ instance Evaluatable New where
|
||||
|
||||
void . withScopeAndFrame objectFrame $ do
|
||||
for_ instanceMembers $ \Info{..} -> do
|
||||
declare infoDeclaration (Default Public) infoSpan infoAssociatedScope
|
||||
let relation = case infoRelation of
|
||||
Instance Public -> Default Public
|
||||
Instance Private -> Default Private
|
||||
_ -> infoRelation
|
||||
declare infoDeclaration relation infoSpan infoAssociatedScope
|
||||
|
||||
-- TODO: This is a typescript specific name and we should allow languages to customize it.
|
||||
let constructorName = Name.name "constructor"
|
||||
|
Loading…
Reference in New Issue
Block a user