mirror of
https://github.com/github/semantic.git
synced 2024-11-25 11:04:00 +03:00
Recur through indirect calls.
This commit is contained in:
parent
03635d00a2
commit
a6010a1436
@ -100,7 +100,7 @@ instance ToTagsBy 'Custom Py.Call where
|
|||||||
let sliced = slice src range
|
let sliced = slice src range
|
||||||
Tags.yield (Tag name Call span (firstLine sliced) Nothing)
|
Tags.yield (Tag name Call span (firstLine sliced) Nothing)
|
||||||
tags arguments
|
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 :: 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)))
|
docComment src (R1 (Py.ExpressionStatementSimpleStatement (Py.ExpressionStatement { extraChildren = L1 (Py.PrimaryExpressionExpression (Py.StringPrimaryExpression Py.String { ann })) :|_ }))) = Just (toText (slice src (byteRange ann)))
|
||||||
|
Loading…
Reference in New Issue
Block a user