Home
last modified time | relevance | path

Searched defs:TextSize (Results 1 – 25 of 32) sorted by relevance

12

/third_party/rust/rust/src/tools/rust-analyzer/crates/ide/src/syntax_highlighting/
Descape.rs10 start: TextSize, in highlight_escape_string()
27 pub(super) fn highlight_escape_char(stack: &mut Highlights, char: &Char, start: TextSize) { in highlight_escape_char()
Dinjector.rs25 fn add_impl(&mut self, text: &str, source: Option<TextSize>) { in add_impl()
64 impl ops::Add<Delta<TextSize>> for TextSize { implementation
67 fn add(self, rhs: Delta<TextSize>) -> TextSize { in add()
/third_party/rust/rust/src/tools/rust-analyzer/lib/line-index/src/
Dlib.rs64 fn len(&self) -> TextSize { in len()
172 pub fn offset(&self, line_col: LineCol) -> Option<TextSize> { in offset()
176 fn start_offset(&self, line: usize) -> Option<TextSize> { in start_offset()
234 pub fn len(&self) -> TextSize { in len()
/third_party/rust/rust/src/tools/rust-analyzer/crates/text-edit/src/
Dlib.rs35 pub fn insert(offset: TextSize, text: String) -> Indel { in insert()
57 pub fn insert(offset: TextSize, text: String) -> TextEdit { in insert()
129 pub fn apply_to_offset(&self, offset: TextSize) -> Option<TextSize> { in apply_to_offset()
173 pub fn insert(&mut self, offset: TextSize, text: String) { in insert()
/third_party/rust/rust/src/tools/rust-analyzer/crates/ide/src/
Dmatching_brace.rs19 pub(crate) fn matching_brace(file: &SourceFile, offset: TextSize) -> Option<TextSize> { in matching_brace()
Dextend_selection.rs196 offset: TextSize, in extend_single_word_in_comment_or_string()
Djoin_lines.rs90 offset: TextSize, in remove_newline()
/third_party/rust/rust/src/tools/rust-analyzer/crates/ide-assists/src/handlers/
Dgenerate_derive.rs66 fn derive_insertion_offset(nominal: &ast::Adt) -> Option<TextSize> { in derive_insertion_offset()
Dfix_visibility.rs152 ) -> Option<(TextSize, Option<ast::Visibility>, TextRange, FileId, Option<hir::Name>)> { in target_data_for_def()
156 ) -> Option<(TextSize, Option<ast::Visibility>, TextRange, FileId)> in target_data_for_def()
Dremove_dbg.rs208 fn whitespace_start(it: Option<SyntaxElement>) -> Option<TextSize> { in whitespace_start()
Dgenerate_constant.rs120 ) -> Option<(TextSize, IndentLevel, Option<FileId>, String)> { in target_data_for_generate_constant()
Dgenerate_function.rs105 insert_offset: TextSize, in new()
188 insert_offset: TextSize, in add_func_to_accumulator()
462 ) -> Option<(GeneratedFunctionTarget, FileId, TextSize)> { in get_fn_target() argument
480 ) -> Option<(GeneratedFunctionTarget, TextSize)> { in get_method_target() argument
508 fn get_insert_offset(target: &GeneratedFunctionTarget) -> TextSize { in get_insert_offset()
/third_party/rust/rust/src/tools/rust-analyzer/crates/test-utils/src/
Dlib.rs64 pub fn extract_offset(text: &str) -> (TextSize, String) { in extract_offset()
73 fn try_extract_offset(text: &str) -> Option<(TextSize, String)> { in try_extract_offset()
105 pub fn expect_offset(self) -> TextSize { in expect_offset()
/third_party/rust/rust/src/tools/rust-analyzer/crates/syntax/src/ast/
Dprec.rs274 fn order(this: &Expr) -> rowan::TextSize { in is_ordered_before()
/third_party/rust/rust/src/tools/rust-analyzer/crates/syntax/src/
Dsyntax_node.rs73 pub fn error(&mut self, error: String, text_pos: TextSize) { in error()
Dalgo.rs22 offset: TextSize, in ancestors_at_offset()
/third_party/rust/rust/src/tools/rust-analyzer/crates/rust-analyzer/src/
Dfrom_proto.rs29 pub(crate) fn offset(line_index: &LineIndex, position: lsp_types::Position) -> Result<TextSize> { in offset()
/third_party/rust/rust/src/tools/rust-analyzer/crates/ide-completion/src/completions/
Dfn_param.rs162 cursor: TextSize, in should_add_self_completions()
/third_party/rust/rust/src/tools/rust-analyzer/crates/hir/src/
Dsemantics.rs291 offset: TextSize, in ancestors_at_offset_with_macros()
301 offset: TextSize, in find_node_at_offset_with_macros()
311 offset: TextSize, in find_node_at_offset_with_descend()
321 offset: TextSize, in find_nodes_at_offset_with_descend()
481 offset: TextSize, in scope_at_offset()
951 offset: TextSize, in descend_node_at_offset()
1030 offset: TextSize, in ancestors_at_offset_with_macros()
1332 offset: TextSize, in analyze_with_offset_no_infer()
1340 offset: Option<TextSize>, in analyze_impl()
/third_party/rust/rust/src/tools/rust-analyzer/crates/ide-assists/src/
Dutils.rs236 pub(crate) fn vis_offset(node: &SyntaxNode) -> TextSize { in vis_offset()
430 pub(crate) fn find_impl_block_start(impl_def: ast::Impl, buf: &mut String) -> Option<TextSize> { in find_impl_block_start()
439 pub(crate) fn find_impl_block_end(impl_def: ast::Impl, buf: &mut String) -> Option<TextSize> { in find_impl_block_end()
Dassist_context.rs89 pub(crate) fn offset(&self) -> TextSize { in offset()
/third_party/rust/rust/src/tools/rust-analyzer/crates/ide-ssr/src/
Dreplacing.rs29 relative_start: TextSize, in matches_to_edit_at_offset()
/third_party/rust/rust/src/tools/rust-analyzer/crates/ide-db/src/
Dsource_change.rs195 pub fn insert(&mut self, offset: TextSize, text: impl Into<String>) { in insert()
202 offset: TextSize, in insert_snippet()
/third_party/rust/rust/src/tools/rust-analyzer/crates/ide-completion/src/context/
Danalysis.rs41 offset: TextSize, in expand_and_analyze()
71 mut offset: TextSize, in expand()
73 relative_offset: TextSize, in expand()
/third_party/rust/rust/src/tools/rust-analyzer/crates/ide/src/typing/
Don_enter.rs87 offset: TextSize, in on_enter_in_comment()

12