MCPcopy Create free account
hub / github.com/codemod/codemod / lookup_json_array

Function lookup_json_array

crates/models/src/variable.rs:343–360  ·  view source on GitHub ↗

Try to look up a dotted identifier (e.g. `state.files`, `params.globs`, `matrix.batch`) as a raw JSON value and, if it is an array of strings, return the items. Returns `None` for non-array values or unknown paths.

(
    expression: &str,
    params: &HashMap<String, Value>,
    state: &HashMap<String, Value>,
    matrix_values: Option<&HashMap<String, Value>>,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

resolve_string_listFunction · 0.85

Calls 2

value_to_string_vecFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…