MCPcopy Create free account
hub / github.com/Snapchat/Valdi / tsn_set_class_static_method_value

Function tsn_set_class_static_method_value

tsn/src/tsn/tsn.cpp:2261–2264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2259}
2260
2261tsn_result tsn_set_class_static_method_value(tsn_vm* ctx, tsn_value cls, tsn_value name, tsn_value method) {
2262 return withNameAsAtom(
2263 ctx, name, [&](tsn_atom name) -> int { return tsn_set_class_static_method(ctx, cls, name, method); });
2264}
2265
2266tsn_result tsn_set_class_property_getter(tsn_vm* ctx, tsn_value cls, tsn_atom name, tsn_value getter) {
2267 return withPrototypeProperty(ctx, cls, [&](tsn_value prototype) -> int {

Callers

nothing calls this directly

Calls 2

withNameAsAtomFunction · 0.85

Tested by

no test coverage detected