MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / set_lineno

Method set_lineno

Lib/compiler/pycodegen.py:316–336  ·  view source on GitHub ↗

Emit SET_LINENO if necessary. The instruction is considered necessary if the node has a lineno attribute and it is different than the last lineno emitted. Returns true if SET_LINENO was emitted. There are no rules for when an AST node should have a lineno

(self, node, force=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

visitExpressionMethod · 0.95
_visitFuncOrLambdaMethod · 0.95
visitClassMethod · 0.95
visitIfMethod · 0.95
visitWhileMethod · 0.95
visitForMethod · 0.95
visitBreakMethod · 0.95
visitContinueMethod · 0.95
visitListCompMethod · 0.95
visitSetCompMethod · 0.95
visitDictCompMethod · 0.95
visitListCompForMethod · 0.95

Calls 2

getattrFunction · 0.85
emitMethod · 0.45

Tested by

no test coverage detected