1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 06:11:49 +03:00

Add mapping for slice types

This commit is contained in:
Rick Winfrey 2017-01-12 11:44:07 -08:00
parent 5fa1e51694
commit d015068e5b

View File

@ -109,6 +109,7 @@ termConstructor source sourceSpan name range children _ = case name of
children@[ty, _] -> case category (extract ty) of
ArrayTy -> toImplicitArray children
DictionaryTy -> toMap children
SliceTy -> sliceToSubscriptAccess children
_ -> toStruct children
rest -> withRanges range Error rest $ S.Error rest
toImplicitArray = \case