MCPcopy Create free account
hub / github.com/dada-lang/dada / source

Function source

components/dada-debug/src/server.rs:122–131  ·  view source on GitHub ↗
(
    axum::extract::Path(path): axum::extract::Path<String>,
    axum::extract::Query(line_col): axum::extract::Query<SourceQueryArgs>,
)

Source from the content-addressed store, hash-verified

120}
121
122async fn source(
123 axum::extract::Path(path): axum::extract::Path<String>,
124 axum::extract::Query(line_col): axum::extract::Query<SourceQueryArgs>,
125) -> axum::http::Response<String> {
126 respond_ok_or_500(crate::source::try_source(
127 &path,
128 line_col.line,
129 line_col.column,
130 ))
131}
132
133pub struct State {
134 pub debug_events: Mutex<Vec<Arc<DebugEvent>>>,

Callers 2

renderMethod · 0.85
to_snippetFunction · 0.85

Calls 2

respond_ok_or_500Function · 0.85
try_sourceFunction · 0.85

Tested by 1

renderMethod · 0.68