tinymist_query

Trait StatefulRequest

Source
pub trait StatefulRequest {
    type Response;

    // Required method
    fn request(
        self,
        ctx: &mut LocalContext,
        graph: LspComputeGraph,
    ) -> Option<Self::Response>;
}
Expand description

A request handler with given (semantic) analysis context and a project snapshot.

Required Associated Types§

Source

type Response

The response type of the request.

Required Methods§

Source

fn request( self, ctx: &mut LocalContext, graph: LspComputeGraph, ) -> Option<Self::Response>

Request the information from the given context.

Implementors§