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

Function constant_name_re

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

CONSTANT_NAME (r.ts:43) — ALL_CAPS or DOTTED.CAPS top-level assignment.

()

Source from the content-addressed store, hash-verified

33
34/// CONSTANT_NAME (r.ts:43) — ALL_CAPS or DOTTED.CAPS top-level assignment.
35fn constant_name_re() -> &'static Regex {
36 static RE: OnceLock<Regex> = OnceLock::new();
37 RE.get_or_init(|| Regex::new(r"^[A-Z][A-Z0-9._]*$").unwrap())
38}
39
40/// ASSIGN_LEFT / ASSIGN_RIGHT (r.ts:37-38).
41fn is_assign_left(op: &str) -> bool {

Callers 1

hook_binary_operatorMethod · 0.85

Calls 1

unwrapMethod · 0.60

Tested by

no test coverage detected