From a6010a1436b5b395e2f469bfd015c6cb2de9411f Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Tue, 24 Sep 2019 16:59:53 -0400 Subject: [PATCH] Recur through indirect calls. --- semantic-tags/src/Language/Python/Tags.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/semantic-tags/src/Language/Python/Tags.hs b/semantic-tags/src/Language/Python/Tags.hs index e10fc2e00..36284deea 100644 --- a/semantic-tags/src/Language/Python/Tags.hs +++ b/semantic-tags/src/Language/Python/Tags.hs @@ -100,7 +100,7 @@ instance ToTagsBy 'Custom Py.Call where let sliced = slice src range Tags.yield (Tag name Call span (firstLine sliced) Nothing) tags arguments - tags' Py.Call {} = pure () + tags' Py.Call { function, arguments } = tags function >> tags arguments docComment :: Source -> (Py.CompoundStatement :+: Py.SimpleStatement) Loc -> Maybe Text docComment src (R1 (Py.ExpressionStatementSimpleStatement (Py.ExpressionStatement { extraChildren = L1 (Py.PrimaryExpressionExpression (Py.StringPrimaryExpression Py.String { ann })) :|_ }))) = Just (toText (slice src (byteRange ann)))