MCPcopy Index your code
hub / github.com/Nuitka/Nuitka / atInternal

Method atInternal

nuitka/SourceCodeReferences.py:97–108  ·  view source on GitHub ↗

Make a copy it itself but mark as internal code. Avoids useless copies, by returning an internal object again if it is already internal.

(self)

Source from the content-addressed store, hash-verified

95 return self.fromFilenameAndLine(filename=self.filename, line=line)
96
97 def atInternal(self):
98 """Make a copy it itself but mark as internal code.
99
100 Avoids useless copies, by returning an internal object again if
101 it is already internal.
102 """
103 if not self.isInternal():
104 result = self._clone(self.line)
105
106 return result
107 else:
108 return self
109
110 def atLineNumber(self, line):
111 """Make a reference to the same file, but different line.

Callers 12

decideModuleSourceRefFunction · 0.80
wrapEvalGlobalsAndLocalsFunction · 0.80
buildParseTreeFunction · 0.80
InternalModule.pyFile · 0.80
_buildContractionNodeFunction · 0.80
makeTryFinallyStatementFunction · 0.80
buildTryExceptionNodeFunction · 0.80
buildClassNode2Function · 0.80

Calls 2

isInternalMethod · 0.95
_cloneMethod · 0.95

Tested by

no test coverage detected