MCPcopy Index your code
hub / github.com/RustPython/RustPython / new_int

Method new_int

crates/vm/src/stdlib/_ast/constant.rs:25–30  ·  view source on GitHub ↗
(value: ast::Int, range: TextRange)

Source from the content-addressed store, hash-verified

23 }
24
25 pub(super) const fn new_int(value: ast::Int, range: TextRange) -> Self {
26 Self {
27 range,
28 value: ConstantLiteral::Int(value),
29 }
30 }
31
32 pub(super) const fn new_float(value: f64, range: TextRange) -> Self {
33 Self {

Callers 15

getsizeofFunction · 0.45
_current_framesFunction · 0.45
_current_exceptionsFunction · 0.45
exitFunction · 0.45
sumFunction · 0.45
get_statsFunction · 0.45
invoke_callbacksFunction · 0.45
new_innerMethod · 0.45
struct_time_from_tmFunction · 0.45
reg_to_pyFunction · 0.45
make_intMethod · 0.45
valid_signalsFunction · 0.45

Calls 1

IntClass · 0.50

Tested by

no test coverage detected