Home
last modified time | relevance | path

Searched refs:LspError (Results 1 – 10 of 10) sorted by relevance

/dports/devel/rust-analyzer/rust-analyzer-2021-12-20/crates/rust-analyzer/src/
H A Dlib.rs60 struct LspError { struct
65 impl LspError { implementation
66 fn new(code: i32, message: String) -> LspError { in new() argument
67 LspError { code, message } in new()
71 impl fmt::Display for LspError { implementation
77 impl std::error::Error for LspError {} implementation
H A Dlsp_utils.rs11 LspError,
14 pub(crate) fn invalid_params_error(message: String) -> LspError { in invalid_params_error() argument
15 LspError { code: lsp_server::ErrorCode::InvalidParams as i32, message } in invalid_params_error()
H A Ddispatch.rs10 LspError, Result,
196 Err(e) => match e.downcast::<LspError>() { in result_to_response()
H A Dhandlers.rs47 to_proto, LspError, Result,
860 return Err(LspError::new( in handle_completion_resolve()
1738 return Err(LspError::new( in run_rustfmt()
1802 Err(LspError::new( in run_rustfmt()
H A Dto_proto.rs1226 pub(crate) fn rename_error(err: RenameError) -> crate::LspError { in rename_error() argument
/dports/lang/rust/rustc-1.58.1-src/src/tools/rust-analyzer/crates/rust-analyzer/src/
H A Dlib.rs60 struct LspError { struct
65 impl LspError { argument
66 fn new(code: i32, message: String) -> LspError { in new() argument
67 LspError { code, message } in new()
71 impl fmt::Display for LspError { implementation
77 impl std::error::Error for LspError {} implementation
H A Dlsp_utils.rs11 LspError,
14 pub(crate) fn invalid_params_error(message: String) -> LspError { in invalid_params_error() argument
15 LspError { code: lsp_server::ErrorCode::InvalidParams as i32, message } in invalid_params_error()
H A Ddispatch.rs10 LspError, Result,
196 Err(e) => match e.downcast::<LspError>() { in result_to_response()
H A Dhandlers.rs47 to_proto, LspError, Result,
855 return Err(LspError::new( in handle_completion_resolve()
1728 return Err(LspError::new( in run_rustfmt()
1792 Err(LspError::new( in run_rustfmt()
H A Dto_proto.rs1217 pub(crate) fn rename_error(err: RenameError) -> crate::LspError { in rename_error() argument