1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 00:12:29 +03:00

Recur through indirect calls.

This commit is contained in:
Rob Rix 2019-09-24 16:59:53 -04:00
parent 03635d00a2
commit a6010a1436
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -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)))