MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / is_import_fn

Function is_import_fn

codegraph-kernel/src/rlang.rs:49–51  ·  view source on GitHub ↗

IMPORT_FNS (r.ts:39) — `source` is checked alongside (r.ts:189).

(name: &str)

Source from the content-addressed store, hash-verified

47
48/// IMPORT_FNS (r.ts:39) — `source` is checked alongside (r.ts:189).
49fn is_import_fn(name: &str) -> bool {
50 matches!(name, "library" | "require" | "requireNamespace" | "loadNamespace")
51}
52/// CLASS_FNS (r.ts:40).
53fn is_class_fn(name: &str) -> bool {
54 matches!(name, "setClass" | "setRefClass" | "R6Class" | "ggproto")

Callers 1

hook_callMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected