1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 08:54:07 +03:00

update ToTags instance for MethodDefinition

This commit is contained in:
Ayman Nadeem 2020-05-07 15:27:35 -04:00
parent acc0ceaa26
commit acdb366ee0

View File

@ -60,7 +60,7 @@ instance ToTags Ts.FunctionDeclaration where
instance ToTags Ts.MethodDefinition where
tags t@Ts.MethodDefinition {ann = Loc {byteRange}, name} = case name of
Prj Ts.PropertyIdentifier {text, ann} -> yieldTag text Method ann byteRange >> gtags t
Parse.Success (Prj (Ts.PropertyIdentifier {text, ann})) -> yieldTag text Method ann byteRange >> gtags t
_ -> gtags t
instance ToTags Ts.Pair where