mirror of
https://github.com/github/semantic.git
synced 2024-11-24 00:42:33 +03:00
update ToTags instance for MethodDefinition
This commit is contained in:
parent
acc0ceaa26
commit
acdb366ee0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user