@@ -208,7 +208,7 @@ pub struct Analysis {
|
|||||||
// API, the API should in theory be usable as a library, or via a different
|
// API, the API should in theory be usable as a library, or via a different
|
||||||
// protocol.
|
// protocol.
|
||||||
impl Analysis {
|
impl Analysis {
|
||||||
// Creates an analysis instance for a single file, without any extenal
|
// Creates an analysis instance for a single file, without any external
|
||||||
// dependencies, stdlib support or ability to apply changes. See
|
// dependencies, stdlib support or ability to apply changes. See
|
||||||
// `AnalysisHost` for creating a fully-featured analysis.
|
// `AnalysisHost` for creating a fully-featured analysis.
|
||||||
pub fn from_single_file(text: String) -> (Analysis, FileId) {
|
pub fn from_single_file(text: String) -> (Analysis, FileId) {
|
||||||
@@ -684,7 +684,7 @@ impl Analysis {
|
|||||||
/// repeatable read). So what we do is we **cancel** all pending queries
|
/// repeatable read). So what we do is we **cancel** all pending queries
|
||||||
/// before applying the change.
|
/// before applying the change.
|
||||||
///
|
///
|
||||||
/// Salsa implements cancelation by unwinding with a special value and
|
/// Salsa implements cancellation by unwinding with a special value and
|
||||||
/// catching it on the API boundary.
|
/// catching it on the API boundary.
|
||||||
fn with_db<F, T>(&self, f: F) -> Cancellable<T>
|
fn with_db<F, T>(&self, f: F) -> Cancellable<T>
|
||||||
where
|
where
|
||||||
|
|||||||
Reference in New Issue
Block a user