diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-12-18 16:29:12 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-12-18 16:29:12 +0000 |
commit | 8be3f25b0bf77b547ba83c3eb9689a40d212a55b (patch) | |
tree | c29c3a31ea9e046d2767dfc189e0ab77b8ffdafe /crates/ide/src/hover.rs | |
parent | 03c177af89efcc238053b59069eda2c1c6772622 (diff) | |
parent | 55ba353b39db1e9d850f1df943ab6a16e7c15838 (diff) |
Merge #6930
6930: Don't expose SyntaxKind from IDE API r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ide/src/hover.rs')
-rw-r--r-- | crates/ide/src/hover.rs | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/crates/ide/src/hover.rs b/crates/ide/src/hover.rs index da6bb726a..dca098af6 100644 --- a/crates/ide/src/hover.rs +++ b/crates/ide/src/hover.rs | |||
@@ -2191,7 +2191,7 @@ fn foo_<|>test() {} | |||
2191 | 11..19, | 2191 | 11..19, |
2192 | ), | 2192 | ), |
2193 | name: "foo_test", | 2193 | name: "foo_test", |
2194 | kind: FN, | 2194 | kind: Function, |
2195 | container_name: None, | 2195 | container_name: None, |
2196 | description: None, | 2196 | description: None, |
2197 | docs: None, | 2197 | docs: None, |
@@ -2234,7 +2234,7 @@ mod tests<|> { | |||
2234 | 4..9, | 2234 | 4..9, |
2235 | ), | 2235 | ), |
2236 | name: "tests", | 2236 | name: "tests", |
2237 | kind: MODULE, | 2237 | kind: Module, |
2238 | container_name: None, | 2238 | container_name: None, |
2239 | description: None, | 2239 | description: None, |
2240 | docs: None, | 2240 | docs: None, |
@@ -2273,7 +2273,7 @@ fn main() { let s<|>t = S{ f1:0 }; } | |||
2273 | 7..8, | 2273 | 7..8, |
2274 | ), | 2274 | ), |
2275 | name: "S", | 2275 | name: "S", |
2276 | kind: STRUCT, | 2276 | kind: Struct, |
2277 | container_name: None, | 2277 | container_name: None, |
2278 | description: Some( | 2278 | description: Some( |
2279 | "struct S", | 2279 | "struct S", |
@@ -2312,7 +2312,7 @@ fn main() { let s<|>t = S{ f1:Arg(0) }; } | |||
2312 | 24..25, | 2312 | 24..25, |
2313 | ), | 2313 | ), |
2314 | name: "S", | 2314 | name: "S", |
2315 | kind: STRUCT, | 2315 | kind: Struct, |
2316 | container_name: None, | 2316 | container_name: None, |
2317 | description: Some( | 2317 | description: Some( |
2318 | "struct S", | 2318 | "struct S", |
@@ -2331,7 +2331,7 @@ fn main() { let s<|>t = S{ f1:Arg(0) }; } | |||
2331 | 7..10, | 2331 | 7..10, |
2332 | ), | 2332 | ), |
2333 | name: "Arg", | 2333 | name: "Arg", |
2334 | kind: STRUCT, | 2334 | kind: Struct, |
2335 | container_name: None, | 2335 | container_name: None, |
2336 | description: Some( | 2336 | description: Some( |
2337 | "struct Arg", | 2337 | "struct Arg", |
@@ -2370,7 +2370,7 @@ fn main() { let s<|>t = S{ f1: S{ f1: Arg(0) } }; } | |||
2370 | 24..25, | 2370 | 24..25, |
2371 | ), | 2371 | ), |
2372 | name: "S", | 2372 | name: "S", |
2373 | kind: STRUCT, | 2373 | kind: Struct, |
2374 | container_name: None, | 2374 | container_name: None, |
2375 | description: Some( | 2375 | description: Some( |
2376 | "struct S", | 2376 | "struct S", |
@@ -2389,7 +2389,7 @@ fn main() { let s<|>t = S{ f1: S{ f1: Arg(0) } }; } | |||
2389 | 7..10, | 2389 | 7..10, |
2390 | ), | 2390 | ), |
2391 | name: "Arg", | 2391 | name: "Arg", |
2392 | kind: STRUCT, | 2392 | kind: Struct, |
2393 | container_name: None, | 2393 | container_name: None, |
2394 | description: Some( | 2394 | description: Some( |
2395 | "struct Arg", | 2395 | "struct Arg", |
@@ -2431,7 +2431,7 @@ fn main() { let s<|>t = (A(1), B(2), M::C(3) ); } | |||
2431 | 7..8, | 2431 | 7..8, |
2432 | ), | 2432 | ), |
2433 | name: "A", | 2433 | name: "A", |
2434 | kind: STRUCT, | 2434 | kind: Struct, |
2435 | container_name: None, | 2435 | container_name: None, |
2436 | description: Some( | 2436 | description: Some( |
2437 | "struct A", | 2437 | "struct A", |
@@ -2450,7 +2450,7 @@ fn main() { let s<|>t = (A(1), B(2), M::C(3) ); } | |||
2450 | 22..23, | 2450 | 22..23, |
2451 | ), | 2451 | ), |
2452 | name: "B", | 2452 | name: "B", |
2453 | kind: STRUCT, | 2453 | kind: Struct, |
2454 | container_name: None, | 2454 | container_name: None, |
2455 | description: Some( | 2455 | description: Some( |
2456 | "struct B", | 2456 | "struct B", |
@@ -2469,7 +2469,7 @@ fn main() { let s<|>t = (A(1), B(2), M::C(3) ); } | |||
2469 | 53..54, | 2469 | 53..54, |
2470 | ), | 2470 | ), |
2471 | name: "C", | 2471 | name: "C", |
2472 | kind: STRUCT, | 2472 | kind: Struct, |
2473 | container_name: None, | 2473 | container_name: None, |
2474 | description: Some( | 2474 | description: Some( |
2475 | "pub struct C", | 2475 | "pub struct C", |
@@ -2508,7 +2508,7 @@ fn main() { let s<|>t = foo(); } | |||
2508 | 6..9, | 2508 | 6..9, |
2509 | ), | 2509 | ), |
2510 | name: "Foo", | 2510 | name: "Foo", |
2511 | kind: TRAIT, | 2511 | kind: Trait, |
2512 | container_name: None, | 2512 | container_name: None, |
2513 | description: Some( | 2513 | description: Some( |
2514 | "trait Foo", | 2514 | "trait Foo", |
@@ -2548,7 +2548,7 @@ fn main() { let s<|>t = foo(); } | |||
2548 | 6..9, | 2548 | 6..9, |
2549 | ), | 2549 | ), |
2550 | name: "Foo", | 2550 | name: "Foo", |
2551 | kind: TRAIT, | 2551 | kind: Trait, |
2552 | container_name: None, | 2552 | container_name: None, |
2553 | description: Some( | 2553 | description: Some( |
2554 | "trait Foo", | 2554 | "trait Foo", |
@@ -2567,7 +2567,7 @@ fn main() { let s<|>t = foo(); } | |||
2567 | 23..24, | 2567 | 23..24, |
2568 | ), | 2568 | ), |
2569 | name: "S", | 2569 | name: "S", |
2570 | kind: STRUCT, | 2570 | kind: Struct, |
2571 | container_name: None, | 2571 | container_name: None, |
2572 | description: Some( | 2572 | description: Some( |
2573 | "struct S", | 2573 | "struct S", |
@@ -2607,7 +2607,7 @@ fn main() { let s<|>t = foo(); } | |||
2607 | 6..9, | 2607 | 6..9, |
2608 | ), | 2608 | ), |
2609 | name: "Foo", | 2609 | name: "Foo", |
2610 | kind: TRAIT, | 2610 | kind: Trait, |
2611 | container_name: None, | 2611 | container_name: None, |
2612 | description: Some( | 2612 | description: Some( |
2613 | "trait Foo", | 2613 | "trait Foo", |
@@ -2626,7 +2626,7 @@ fn main() { let s<|>t = foo(); } | |||
2626 | 19..22, | 2626 | 19..22, |
2627 | ), | 2627 | ), |
2628 | name: "Bar", | 2628 | name: "Bar", |
2629 | kind: TRAIT, | 2629 | kind: Trait, |
2630 | container_name: None, | 2630 | container_name: None, |
2631 | description: Some( | 2631 | description: Some( |
2632 | "trait Bar", | 2632 | "trait Bar", |
@@ -2669,7 +2669,7 @@ fn main() { let s<|>t = foo(); } | |||
2669 | 6..9, | 2669 | 6..9, |
2670 | ), | 2670 | ), |
2671 | name: "Foo", | 2671 | name: "Foo", |
2672 | kind: TRAIT, | 2672 | kind: Trait, |
2673 | container_name: None, | 2673 | container_name: None, |
2674 | description: Some( | 2674 | description: Some( |
2675 | "trait Foo", | 2675 | "trait Foo", |
@@ -2688,7 +2688,7 @@ fn main() { let s<|>t = foo(); } | |||
2688 | 22..25, | 2688 | 22..25, |
2689 | ), | 2689 | ), |
2690 | name: "Bar", | 2690 | name: "Bar", |
2691 | kind: TRAIT, | 2691 | kind: Trait, |
2692 | container_name: None, | 2692 | container_name: None, |
2693 | description: Some( | 2693 | description: Some( |
2694 | "trait Bar", | 2694 | "trait Bar", |
@@ -2707,7 +2707,7 @@ fn main() { let s<|>t = foo(); } | |||
2707 | 39..41, | 2707 | 39..41, |
2708 | ), | 2708 | ), |
2709 | name: "S1", | 2709 | name: "S1", |
2710 | kind: STRUCT, | 2710 | kind: Struct, |
2711 | container_name: None, | 2711 | container_name: None, |
2712 | description: Some( | 2712 | description: Some( |
2713 | "struct S1", | 2713 | "struct S1", |
@@ -2726,7 +2726,7 @@ fn main() { let s<|>t = foo(); } | |||
2726 | 52..54, | 2726 | 52..54, |
2727 | ), | 2727 | ), |
2728 | name: "S2", | 2728 | name: "S2", |
2729 | kind: STRUCT, | 2729 | kind: Struct, |
2730 | container_name: None, | 2730 | container_name: None, |
2731 | description: Some( | 2731 | description: Some( |
2732 | "struct S2", | 2732 | "struct S2", |
@@ -2763,7 +2763,7 @@ fn foo(ar<|>g: &impl Foo) {} | |||
2763 | 6..9, | 2763 | 6..9, |
2764 | ), | 2764 | ), |
2765 | name: "Foo", | 2765 | name: "Foo", |
2766 | kind: TRAIT, | 2766 | kind: Trait, |
2767 | container_name: None, | 2767 | container_name: None, |
2768 | description: Some( | 2768 | description: Some( |
2769 | "trait Foo", | 2769 | "trait Foo", |
@@ -2803,7 +2803,7 @@ fn foo(ar<|>g: &impl Foo + Bar<S>) {} | |||
2803 | 6..9, | 2803 | 6..9, |
2804 | ), | 2804 | ), |
2805 | name: "Foo", | 2805 | name: "Foo", |
2806 | kind: TRAIT, | 2806 | kind: Trait, |
2807 | container_name: None, | 2807 | container_name: None, |
2808 | description: Some( | 2808 | description: Some( |
2809 | "trait Foo", | 2809 | "trait Foo", |
@@ -2822,7 +2822,7 @@ fn foo(ar<|>g: &impl Foo + Bar<S>) {} | |||
2822 | 19..22, | 2822 | 19..22, |
2823 | ), | 2823 | ), |
2824 | name: "Bar", | 2824 | name: "Bar", |
2825 | kind: TRAIT, | 2825 | kind: Trait, |
2826 | container_name: None, | 2826 | container_name: None, |
2827 | description: Some( | 2827 | description: Some( |
2828 | "trait Bar", | 2828 | "trait Bar", |
@@ -2841,7 +2841,7 @@ fn foo(ar<|>g: &impl Foo + Bar<S>) {} | |||
2841 | 36..37, | 2841 | 36..37, |
2842 | ), | 2842 | ), |
2843 | name: "S", | 2843 | name: "S", |
2844 | kind: STRUCT, | 2844 | kind: Struct, |
2845 | container_name: None, | 2845 | container_name: None, |
2846 | description: Some( | 2846 | description: Some( |
2847 | "struct S", | 2847 | "struct S", |
@@ -2886,7 +2886,7 @@ mod future { | |||
2886 | 140..146, | 2886 | 140..146, |
2887 | ), | 2887 | ), |
2888 | name: "Future", | 2888 | name: "Future", |
2889 | kind: TRAIT, | 2889 | kind: Trait, |
2890 | container_name: None, | 2890 | container_name: None, |
2891 | description: Some( | 2891 | description: Some( |
2892 | "pub trait Future", | 2892 | "pub trait Future", |
@@ -2905,7 +2905,7 @@ mod future { | |||
2905 | 7..8, | 2905 | 7..8, |
2906 | ), | 2906 | ), |
2907 | name: "S", | 2907 | name: "S", |
2908 | kind: STRUCT, | 2908 | kind: Struct, |
2909 | container_name: None, | 2909 | container_name: None, |
2910 | description: Some( | 2910 | description: Some( |
2911 | "struct S", | 2911 | "struct S", |
@@ -2943,7 +2943,7 @@ fn foo(ar<|>g: &impl Foo<S>) {} | |||
2943 | 6..9, | 2943 | 6..9, |
2944 | ), | 2944 | ), |
2945 | name: "Foo", | 2945 | name: "Foo", |
2946 | kind: TRAIT, | 2946 | kind: Trait, |
2947 | container_name: None, | 2947 | container_name: None, |
2948 | description: Some( | 2948 | description: Some( |
2949 | "trait Foo", | 2949 | "trait Foo", |
@@ -2962,7 +2962,7 @@ fn foo(ar<|>g: &impl Foo<S>) {} | |||
2962 | 23..24, | 2962 | 23..24, |
2963 | ), | 2963 | ), |
2964 | name: "S", | 2964 | name: "S", |
2965 | kind: STRUCT, | 2965 | kind: Struct, |
2966 | container_name: None, | 2966 | container_name: None, |
2967 | description: Some( | 2967 | description: Some( |
2968 | "struct S", | 2968 | "struct S", |
@@ -3005,7 +3005,7 @@ fn main() { let s<|>t = foo(); } | |||
3005 | 49..50, | 3005 | 49..50, |
3006 | ), | 3006 | ), |
3007 | name: "B", | 3007 | name: "B", |
3008 | kind: STRUCT, | 3008 | kind: Struct, |
3009 | container_name: None, | 3009 | container_name: None, |
3010 | description: Some( | 3010 | description: Some( |
3011 | "struct B", | 3011 | "struct B", |
@@ -3024,7 +3024,7 @@ fn main() { let s<|>t = foo(); } | |||
3024 | 6..9, | 3024 | 6..9, |
3025 | ), | 3025 | ), |
3026 | name: "Foo", | 3026 | name: "Foo", |
3027 | kind: TRAIT, | 3027 | kind: Trait, |
3028 | container_name: None, | 3028 | container_name: None, |
3029 | description: Some( | 3029 | description: Some( |
3030 | "trait Foo", | 3030 | "trait Foo", |
@@ -3061,7 +3061,7 @@ fn foo(ar<|>g: &dyn Foo) {} | |||
3061 | 6..9, | 3061 | 6..9, |
3062 | ), | 3062 | ), |
3063 | name: "Foo", | 3063 | name: "Foo", |
3064 | kind: TRAIT, | 3064 | kind: Trait, |
3065 | container_name: None, | 3065 | container_name: None, |
3066 | description: Some( | 3066 | description: Some( |
3067 | "trait Foo", | 3067 | "trait Foo", |
@@ -3099,7 +3099,7 @@ fn foo(ar<|>g: &dyn Foo<S>) {} | |||
3099 | 6..9, | 3099 | 6..9, |
3100 | ), | 3100 | ), |
3101 | name: "Foo", | 3101 | name: "Foo", |
3102 | kind: TRAIT, | 3102 | kind: Trait, |
3103 | container_name: None, | 3103 | container_name: None, |
3104 | description: Some( | 3104 | description: Some( |
3105 | "trait Foo", | 3105 | "trait Foo", |
@@ -3118,7 +3118,7 @@ fn foo(ar<|>g: &dyn Foo<S>) {} | |||
3118 | 23..24, | 3118 | 23..24, |
3119 | ), | 3119 | ), |
3120 | name: "S", | 3120 | name: "S", |
3121 | kind: STRUCT, | 3121 | kind: Struct, |
3122 | container_name: None, | 3122 | container_name: None, |
3123 | description: Some( | 3123 | description: Some( |
3124 | "struct S", | 3124 | "struct S", |
@@ -3159,7 +3159,7 @@ fn foo(a<|>rg: &impl ImplTrait<B<dyn DynTrait<B<S>>>>) {} | |||
3159 | 6..15, | 3159 | 6..15, |
3160 | ), | 3160 | ), |
3161 | name: "ImplTrait", | 3161 | name: "ImplTrait", |
3162 | kind: TRAIT, | 3162 | kind: Trait, |
3163 | container_name: None, | 3163 | container_name: None, |
3164 | description: Some( | 3164 | description: Some( |
3165 | "trait ImplTrait", | 3165 | "trait ImplTrait", |
@@ -3178,7 +3178,7 @@ fn foo(a<|>rg: &impl ImplTrait<B<dyn DynTrait<B<S>>>>) {} | |||
3178 | 50..51, | 3178 | 50..51, |
3179 | ), | 3179 | ), |
3180 | name: "B", | 3180 | name: "B", |
3181 | kind: STRUCT, | 3181 | kind: Struct, |
3182 | container_name: None, | 3182 | container_name: None, |
3183 | description: Some( | 3183 | description: Some( |
3184 | "struct B", | 3184 | "struct B", |
@@ -3197,7 +3197,7 @@ fn foo(a<|>rg: &impl ImplTrait<B<dyn DynTrait<B<S>>>>) {} | |||
3197 | 28..36, | 3197 | 28..36, |
3198 | ), | 3198 | ), |
3199 | name: "DynTrait", | 3199 | name: "DynTrait", |
3200 | kind: TRAIT, | 3200 | kind: Trait, |
3201 | container_name: None, | 3201 | container_name: None, |
3202 | description: Some( | 3202 | description: Some( |
3203 | "trait DynTrait", | 3203 | "trait DynTrait", |
@@ -3216,7 +3216,7 @@ fn foo(a<|>rg: &impl ImplTrait<B<dyn DynTrait<B<S>>>>) {} | |||
3216 | 65..66, | 3216 | 65..66, |
3217 | ), | 3217 | ), |
3218 | name: "S", | 3218 | name: "S", |
3219 | kind: STRUCT, | 3219 | kind: Struct, |
3220 | container_name: None, | 3220 | container_name: None, |
3221 | description: Some( | 3221 | description: Some( |
3222 | "struct S", | 3222 | "struct S", |
@@ -3264,7 +3264,7 @@ fn main() { let s<|>t = test().get(); } | |||
3264 | 6..9, | 3264 | 6..9, |
3265 | ), | 3265 | ), |
3266 | name: "Foo", | 3266 | name: "Foo", |
3267 | kind: TRAIT, | 3267 | kind: Trait, |
3268 | container_name: None, | 3268 | container_name: None, |
3269 | description: Some( | 3269 | description: Some( |
3270 | "trait Foo", | 3270 | "trait Foo", |