This is an archive of the discontinued LLVM Phabricator instance.

[clangd][ObjC] Highlight Objc Ivar refs
ClosedPublic

Authored by dgoldman on May 3 2021, 1:21 PM.

Details

Summary

Treat them just like we do for properties - as a property semantic
token although ideally we could differentiate the two.

Diff Detail

Event Timeline

dgoldman created this revision.May 3 2021, 1:21 PM
dgoldman requested review of this revision.May 3 2021, 1:21 PM
dgoldman updated this revision to Diff 342734.May 4 2021, 7:47 AM

Fix test broken on non-macOS

dgoldman updated this revision to Diff 343087.May 5 2021, 9:38 AM

Another attempt...

Thanks! Can you also add a test to FindExplicitReferencesTest.All ? as that's where the underlying change lies.

To disambiguate properties and ivars, what if we used modifiers? I suppose we can mark properties with abstract modifier, but i am not an obj-c person so it might be better for you to vet such an idea.

dgoldman updated this revision to Diff 343409.May 6 2021, 7:53 AM

Add another test case

Thanks! Can you also add a test to FindExplicitReferencesTest.All ? as that's where the underlying change lies.

To disambiguate properties and ivars, what if we used modifiers? I suppose we can mark properties with abstract modifier, but i am not an obj-c person so it might be better for you to vet such an idea.

Done. I don't think a modifier would make sense though - they're not really abstract. I think it would be better if there was a Field token type, like the Field symbol kind.

kadircet accepted this revision.May 6 2021, 8:04 AM

thanks!

This revision is now accepted and ready to land.May 6 2021, 8:04 AM
This revision was automatically updated to reflect the committed changes.