racer icon indicating copy to clipboard operation
racer copied to clipboard

Hide inaccessible members and functions

Open Stebalien opened this issue 9 years ago • 4 comments

Currently, racer completes private struct members and functions cross module.

Stebalien avatar Feb 25 '15 16:02 Stebalien

@phildawes just to be sure, everything should be done in matchers.rs ? With local variable and pub keyword ?

tafia avatar Mar 02 '15 03:03 tafia

Hi @tafia, I think for field the problem is in nameres::search_struct_fields() and ast::parse_struct_fields(). It should be using the 'visibility' attribute in the parsed ast 'NamedField' type.

phildawes avatar Mar 02 '15 06:03 phildawes

But this would require getting the Visibility from the Item in case the field visibility is inherited. How would one do that?

llogiq avatar Jul 14 '15 09:07 llogiq

Has this been deemed a wontfix or is it just not of high importance?

(racer 1.2.10 fwiw)

phrohdoh avatar Nov 07 '16 00:11 phrohdoh