Verified Commit d4997410 authored by Camil Staps's avatar Camil Staps 🚀

Fix parsing comments of generic functions

parent cac9ff56
Pipeline #14648 passed with stage
in 1 minute and 11 seconds
......@@ -39,7 +39,7 @@ from syntax import
:: FunctName,
:: FunKind,
:: FunSpecials,
:: GenericDef{gen_pos},
:: GenericDef{gen_ident,gen_pos},
:: GenericCaseDef{gc_pos},
:: Global,
:: Ident{id_info,id_name},
......@@ -326,6 +326,7 @@ where
PD_TypeSpec pos id prio type specials -> Just (CI "PD_TypeSpec" pos id.id_name)
PD_Class cd pds -> Just (CI "PD_Class" cd.class_pos cd.class_ident.id_name)
PD_Type ptd -> Just (CI "PD_Type" ptd.td_pos ptd.td_ident.id_name)
PD_Generic gd -> Just (CI "PD_Generic" gd.gen_pos gd.gen_ident.id_name)
_ -> Nothing
instance commentIndex ParsedSelector
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment