transform_inspect_rune() — svelte Function Reference
Architecture documentation for the transform_inspect_rune() function in CallExpression.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 8a66cd2b_336a_f7a6_9338_189e5aa481fb["transform_inspect_rune()"] c195d127_ca65_6260_2e2d_70c2cc9b25f5["CallExpression.js"] 8a66cd2b_336a_f7a6_9338_189e5aa481fb -->|defined in| c195d127_ca65_6260_2e2d_70c2cc9b25f5 633f2cfa_9e09_691b_a265_c937cdee3900["CallExpression()"] 633f2cfa_9e09_691b_a265_c937cdee3900 -->|calls| 8a66cd2b_336a_f7a6_9338_189e5aa481fb 57534fa7_7bfd_c029_75ae_4c5950d5e65c["get_inspect_args()"] 8a66cd2b_336a_f7a6_9338_189e5aa481fb -->|calls| 57534fa7_7bfd_c029_75ae_4c5950d5e65c style 8a66cd2b_336a_f7a6_9338_189e5aa481fb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/phases/3-transform/client/visitors/CallExpression.js lines 125–136
function transform_inspect_rune(rune, node, context) {
if (!dev) return b.empty;
const { args, inspector } = get_inspect_args(rune, node, context.visit);
// by passing an arrow function, the log appears to come from the `$inspect` callsite
// rather than the `inspect.js` file containing the utility
const id = b.id('$$args');
const fn = b.arrow([b.rest(id)], b.call(inspector, b.spread(id)));
return b.call('$.inspect', b.thunk(b.array(args)), fn, rune === '$inspect' && b.true);
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does transform_inspect_rune() do?
transform_inspect_rune() is a function in the svelte codebase, defined in packages/svelte/src/compiler/phases/3-transform/client/visitors/CallExpression.js.
Where is transform_inspect_rune() defined?
transform_inspect_rune() is defined in packages/svelte/src/compiler/phases/3-transform/client/visitors/CallExpression.js at line 125.
What does transform_inspect_rune() call?
transform_inspect_rune() calls 1 function(s): get_inspect_args.
What calls transform_inspect_rune()?
transform_inspect_rune() is called by 1 function(s): CallExpression.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free