MCPcopy Index your code
hub / github.com/numpy/numpy / lineType

Function lineType

numpy/linalg/lapack_lite/fortran.py:17–28  ·  view source on GitHub ↗

Return the type of a line of Fortran code.

(line)

Source from the content-addressed store, hash-verified

15
16COMMENT, STATEMENT, CONTINUATION = 0, 1, 2
17def lineType(line):
18 """Return the type of a line of Fortran code."""
19 if isBlank(line):
20 return COMMENT
21 elif isLabel(line):
22 return STATEMENT
23 elif isComment(line):
24 return COMMENT
25 elif isContinuation(line):
26 return CONTINUATION
27 else:
28 return STATEMENT
29
30class LineIterator:
31 """LineIterator(iterable)

Callers 1

fortranSourceLinesFunction · 0.85

Calls 4

isLabelFunction · 0.85
isCommentFunction · 0.85
isContinuationFunction · 0.85
isBlankFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…