pub fn matching_brace(&self, position: FilePosition) -> Cancelable<Option<TextSize>> {
        self.with_db(|db| {
            let parse = db.parse(position.file_id);
            let file = parse.tree();
            matching_brace::matching_brace(&file, position.offset)
        })
    }
/// Returns position of the matching brace (all types of braces are
/// supported).
Returns position of the matching brace (all types of braces are
supported).
Returns position of the matching brace ( all types of braces are supported ) .
pub fn matching_brace(&self, position: FilePosition) -> Cancelable<Option<TextSize>> {
        self.with_db(|db| {
            let parse = db.parse(position.file_id);
            let file = parse.tree();
            matching_brace::matching_brace(&file, position.offset)
        })
    }
pub fn matching_brace ( & self , position : FilePosition ) -> Cancelable < Option < TextSize > > { self . with_db ( | db | { let parse = db . parse ( position . file_id ) ; let file = parse . tree ( ) ; matching_brace :: matching_brace ( & file , position . offset ) } ) }
Returns position of the matching brace (all types of braces are
supported).
Returns position of the matching brace ( all types of braces are supported ) .
&self
position
FilePosition