From ab3ee6f41436e097918ea3c34da3c187ef76cd18 Mon Sep 17 00:00:00 2001 From: Ayman Nadeem Date: Mon, 11 May 2020 16:47:31 -0400 Subject: [PATCH] update yieldMethodNameTag helper function with Success --- semantic-ruby/src/Language/Ruby/Tags.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/semantic-ruby/src/Language/Ruby/Tags.hs b/semantic-ruby/src/Language/Ruby/Tags.hs index b90b90d82..abb625721 100644 --- a/semantic-ruby/src/Language/Ruby/Tags.hs +++ b/semantic-ruby/src/Language/Ruby/Tags.hs @@ -151,7 +151,7 @@ yieldMethodNameTag t range (Rb.MethodName expr) = enterScope True $ case expr of Prj Rb.Operator {text, ann} -> yield text ann -- Prj Rb.GlobalVariable { text = name } -> yield name -- Prj Rb.InstanceVariable { text = name } -> yield name - Prj Rb.Setter {extraChildren = Rb.Identifier {text, ann}} -> yield (text <> "=") ann-- NB: Matches existing tags output, TODO: Remove this. + Prj Rb.Setter {extraChildren = Parse.Success (Rb.Identifier {text, ann})} -> yield (text <> "=") ann-- NB: Matches existing tags output, TODO: Remove this. -- TODO: Should we report symbol method names as tags? -- Prj Rb.Symbol { extraChildren = [Prj Rb.EscapeSequence { text = name }] } -> yield name _ -> gtags t