/dports/devel/rust-analyzer/rust-analyzer-2021-12-20/crates/rust-analyzer/src/ |
H A D | markdown.rs | 6 pub(crate) fn format_docs(src: &str) -> String { in format_docs() function 52 assert_eq!(format_docs(comment), "```rust\nfn some_rust() {}\n```"); in test_format_docs_adds_rust() 58 assert_eq!(format_docs(comment), "```text\nthis is plain text\n```"); in test_format_docs_handles_plain_text() 70 assert_eq!(format_docs(comment), "```rust\nlet z = 55;\n```"); in test_format_docs_handles_rust_alias() 76 assert_eq!(format_docs(comment), "```rust\nlet z = 55;\n```"); in test_format_docs_handles_complex_code_block_attrs() 89 assert_eq!(format_docs(comment), "```rust\n#stay1\nstay2\n```"); in test_format_docs_skips_comments_in_rust_block() 97 format_docs(comment), in test_format_docs_does_not_skip_lines_if_plain_text() 105 assert_eq!(format_docs(comment), comment); in test_format_docs_keeps_comments_outside_of_rust_block() 111 assert_eq!(format_docs(comment), comment); in test_format_docs_preserves_newlines() 125 format_docs(comment), in test_code_blocks_in_comments_marked_as_rust() [all …]
|
H A D | to_proto.rs | 97 let value = crate::markdown::format_docs(documentation.as_str()); in documentation() 1222 let value = crate::markdown::format_docs(markup.as_str()); in markup_content()
|
/dports/lang/rust/rustc-1.58.1-src/src/tools/rust-analyzer/crates/rust-analyzer/src/ |
H A D | markdown.rs | 6 pub(crate) fn format_docs(src: &str) -> String { in format_docs() function 52 assert_eq!(format_docs(comment), "```rust\nfn some_rust() {}\n```"); in test_format_docs_adds_rust() 58 assert_eq!(format_docs(comment), "```text\nthis is plain text\n```"); in test_format_docs_handles_plain_text() 70 assert_eq!(format_docs(comment), "```rust\nlet z = 55;\n```"); in test_format_docs_handles_rust_alias() 76 assert_eq!(format_docs(comment), "```rust\nlet z = 55;\n```"); in test_format_docs_handles_complex_code_block_attrs() 89 assert_eq!(format_docs(comment), "```rust\n#stay1\nstay2\n```"); in test_format_docs_skips_comments_in_rust_block() 97 format_docs(comment), in test_format_docs_does_not_skip_lines_if_plain_text() 105 assert_eq!(format_docs(comment), comment); in test_format_docs_keeps_comments_outside_of_rust_block() 111 assert_eq!(format_docs(comment), comment); in test_format_docs_preserves_newlines() 125 format_docs(comment), in test_code_blocks_in_comments_marked_as_rust() [all …]
|
H A D | to_proto.rs | 94 let value = crate::markdown::format_docs(documentation.as_str()); in documentation() 1213 let value = crate::markdown::format_docs(markup.as_str()); in markup_content()
|
/dports/lang/lfe/lfe-1.3/src/ |
H A D | lfe_doc.erl | 35 -export([format_docs/1]). 225 moduledoc=format_docs(Mdoc) 247 [Doc#doc{exported=true,doc=format_docs(Ds)}|Docs], 251 [Doc#doc{exported=true,doc=format_docs(Ds)}|Docs], 268 format_docs(Ds) -> lists:flatmap(fun format_doc/1, Ds). function
|
/dports/lang/erlang-runtime23/otp-OTP-23.3.4.10/lib/stdlib/src/ |
H A D | c.erl | 165 format_docs(shell_docs:render(Module, Docs)); 176 format_docs(shell_docs:render(Module, Function, Docs)); 187 format_docs(shell_docs:render(Module, Function, Arity, Docs)); 198 format_docs(shell_docs:render_type(Module, Docs)); 209 format_docs(shell_docs:render_type(Module, Type, Docs)); 221 format_docs(shell_docs:render_type(Module, Type, Arity, Docs)); 232 format_docs(shell_docs:render_callback(Module, Docs)); 243 format_docs(shell_docs:render_callback(Module, Callback, Docs)); 255 format_docs(shell_docs:render_callback(Module, Callback, Arity, Docs)); 262 format_docs({error,_} = E) -> function [all …]
|
/dports/lang/erlang-wx/otp-OTP-24.1.7/lib/stdlib/src/ |
H A D | c.erl | 169 format_docs(shell_docs:render(Module, Docs)); 180 format_docs(shell_docs:render(Module, Function, Docs)); 191 format_docs(shell_docs:render(Module, Function, Arity, Docs)); 202 format_docs(shell_docs:render_type(Module, Docs)); 213 format_docs(shell_docs:render_type(Module, Type, Docs)); 225 format_docs(shell_docs:render_type(Module, Type, Arity, Docs)); 236 format_docs(shell_docs:render_callback(Module, Docs)); 247 format_docs(shell_docs:render_callback(Module, Callback, Docs)); 259 format_docs(shell_docs:render_callback(Module, Callback, Arity, Docs)); 266 format_docs({error,_} = E) -> function [all …]
|
/dports/lang/erlang-runtime24/otp-OTP-24.1.7/lib/stdlib/src/ |
H A D | c.erl | 169 format_docs(shell_docs:render(Module, Docs)); 180 format_docs(shell_docs:render(Module, Function, Docs)); 191 format_docs(shell_docs:render(Module, Function, Arity, Docs)); 202 format_docs(shell_docs:render_type(Module, Docs)); 213 format_docs(shell_docs:render_type(Module, Type, Docs)); 225 format_docs(shell_docs:render_type(Module, Type, Arity, Docs)); 236 format_docs(shell_docs:render_callback(Module, Docs)); 247 format_docs(shell_docs:render_callback(Module, Callback, Docs)); 259 format_docs(shell_docs:render_callback(Module, Callback, Arity, Docs)); 266 format_docs({error,_} = E) -> function [all …]
|
/dports/lang/erlang/otp-OTP-24.1.7/lib/stdlib/src/ |
H A D | c.erl | 169 format_docs(shell_docs:render(Module, Docs)); 180 format_docs(shell_docs:render(Module, Function, Docs)); 191 format_docs(shell_docs:render(Module, Function, Arity, Docs)); 202 format_docs(shell_docs:render_type(Module, Docs)); 213 format_docs(shell_docs:render_type(Module, Type, Docs)); 225 format_docs(shell_docs:render_type(Module, Type, Arity, Docs)); 236 format_docs(shell_docs:render_callback(Module, Docs)); 247 format_docs(shell_docs:render_callback(Module, Callback, Docs)); 259 format_docs(shell_docs:render_callback(Module, Callback, Arity, Docs)); 266 format_docs({error,_} = E) -> function [all …]
|
/dports/lang/erlang-java/otp-OTP-24.1.7/lib/stdlib/src/ |
H A D | c.erl | 169 format_docs(shell_docs:render(Module, Docs)); 180 format_docs(shell_docs:render(Module, Function, Docs)); 191 format_docs(shell_docs:render(Module, Function, Arity, Docs)); 202 format_docs(shell_docs:render_type(Module, Docs)); 213 format_docs(shell_docs:render_type(Module, Type, Docs)); 225 format_docs(shell_docs:render_type(Module, Type, Arity, Docs)); 236 format_docs(shell_docs:render_callback(Module, Docs)); 247 format_docs(shell_docs:render_callback(Module, Callback, Docs)); 259 format_docs(shell_docs:render_callback(Module, Callback, Arity, Docs)); 266 format_docs({error,_} = E) -> function [all …]
|
/dports/lang/lfe/lfe-1.3/doc/src/ |
H A D | lfe_doc.3.md | 34 **format_docs/1**
|
/dports/devel/p5-Glib-Object-Introspection/Glib-Object-Introspection-0.049/bin/ |
H A D | perli11ndoc | 550 my $doc = $self->format_docs ($parameter, ' '); 570 my $doc = $self->format_docs ($retval, ' '); 581 my $doc = $self->format_docs ($parameter, ' '); 889 my $doc = $self->format_docs ($member, ' '); 990 my $docs = $self->format_docs ($element); 994 sub format_docs {
|