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

Method new_bool

crates/vm/src/stdlib/_ast/constant.rs:53–58  ·  view source on GitHub ↗
(value: bool, range: TextRange)

Source from the content-addressed store, hash-verified

51 }
52
53 pub(super) const fn new_bool(value: bool, range: TextRange) -> Self {
54 Self {
55 range,
56 value: ConstantLiteral::Bool(value),
57 }
58 }
59
60 pub(super) const fn new_none(range: TextRange) -> Self {
61 Self {

Callers 12

_xoptionsFunction · 0.45
make_boolMethod · 0.45
__closedMethod · 0.45
_stop_the_world_statsFunction · 0.45
ast_to_objectMethod · 0.45
ast_to_objectMethod · 0.45
bytes_to_pyobjectFunction · 0.45
set_primitiveFunction · 0.45
from_paramMethod · 0.45
slot_newMethod · 0.45
valueMethod · 0.45
ffi_to_pythonFunction · 0.45

Calls 1

BoolClass · 0.85

Tested by

no test coverage detected