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

Function is_assign_left

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

ASSIGN_LEFT / ASSIGN_RIGHT (r.ts:37-38).

(op: &str)

Source from the content-addressed store, hash-verified

39
40/// ASSIGN_LEFT / ASSIGN_RIGHT (r.ts:37-38).
41fn is_assign_left(op: &str) -> bool {
42 matches!(op, "<-" | "<<-" | "=")
43}
44fn is_assign_right(op: &str) -> bool {
45 matches!(op, "->" | "->>")
46}

Callers 1

hook_binary_operatorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected