MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / lineno

Function lineno

code2flow/php.py:9–15  ·  view source on GitHub ↗

Return the line number of the AST :param tree ast: :rtype: int

(tree)

Source from the content-addressed store, hash-verified

7
8
9def lineno(tree):
10 """
11 Return the line number of the AST
12 :param tree ast:
13 :rtype: int
14 """
15 return tree['attributes']['startLine']
16
17
18def get_name(tree, from_='name'):

Callers 6

get_call_from_exprFunction · 0.70
process_assignFunction · 0.70
make_local_variablesFunction · 0.70
make_nodesMethod · 0.70
make_root_nodeMethod · 0.70
make_class_groupMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected