1
1
mirror of https://github.com/github/semantic.git synced 2025-01-05 05:58:34 +03:00

Update PublicFieldDefinitions

This commit is contained in:
Rick Winfrey 2019-03-14 17:20:02 -07:00
parent be3470fb36
commit 79e144d73a

View File

@ -204,10 +204,8 @@ data PublicFieldDefinition a = PublicFieldDefinition
instance Evaluatable PublicFieldDefinition where
eval eval _ PublicFieldDefinition{..} = do
span <- ask @Span
propertyName <- maybeM (throwNoNameError publicFieldPropertyName) (declaredName publicFieldPropertyName)
declare (Declaration propertyName) Instance publicFieldAccessControl span ScopeGraph.PublicField Nothing
slot <- lookupSlot (Declaration propertyName)
name <- declareMaybeName (declaredName publicFieldPropertyName) Instance publicFieldAccessControl span ScopeGraph.PublicField Nothing
slot <- lookupSlot (Declaration name)
value <- eval publicFieldValue
assign slot value
unit