MCPcopy Create free account
hub / github.com/numpy/numpy / lineType

Function lineType

numpy/linalg/lapack_lite/fortran.py:15–26  ·  view source on GitHub ↗

Return the type of a line of Fortran code.

(line)

Source from the content-addressed store, hash-verified

13
14COMMENT, STATEMENT, CONTINUATION = 0, 1, 2
15def lineType(line):
16 """Return the type of a line of Fortran code."""
17 if isBlank(line):
18 return COMMENT
19 elif isLabel(line):
20 return STATEMENT
21 elif isComment(line):
22 return COMMENT
23 elif isContinuation(line):
24 return CONTINUATION
25 else:
26 return STATEMENT
27
28class LineIterator:
29 """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