mirror of
https://github.com/github/semantic.git
synced 2025-01-06 23:46:21 +03:00
Update PublicFieldDefinitions
This commit is contained in:
parent
be3470fb36
commit
79e144d73a
@ -204,10 +204,8 @@ data PublicFieldDefinition a = PublicFieldDefinition
|
|||||||
instance Evaluatable PublicFieldDefinition where
|
instance Evaluatable PublicFieldDefinition where
|
||||||
eval eval _ PublicFieldDefinition{..} = do
|
eval eval _ PublicFieldDefinition{..} = do
|
||||||
span <- ask @Span
|
span <- ask @Span
|
||||||
propertyName <- maybeM (throwNoNameError publicFieldPropertyName) (declaredName publicFieldPropertyName)
|
name <- declareMaybeName (declaredName publicFieldPropertyName) Instance publicFieldAccessControl span ScopeGraph.PublicField Nothing
|
||||||
|
slot <- lookupSlot (Declaration name)
|
||||||
declare (Declaration propertyName) Instance publicFieldAccessControl span ScopeGraph.PublicField Nothing
|
|
||||||
slot <- lookupSlot (Declaration propertyName)
|
|
||||||
value <- eval publicFieldValue
|
value <- eval publicFieldValue
|
||||||
assign slot value
|
assign slot value
|
||||||
unit
|
unit
|
||||||
|
Loading…
Reference in New Issue
Block a user