aboutsummaryrefslogtreecommitdiff
path: root/crates/profile
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-11-09 21:13:51 +0000
committerGitHub <[email protected]>2020-11-09 21:13:51 +0000
commit0a715cfbd211a90006d5bfd475c8fba23f6f18ee (patch)
treea215abf374d48a3e23a8492f8c4f2fb53704e569 /crates/profile
parentd5775b320c4f274c77b38f01b39ea96336f046bb (diff)
parent6b950d24d44c6de4de3486832676359b2dfcb7c8 (diff)
Merge #6472
6472: Add `static` modifier for associated functions r=matklad a=p3achyjr Adds static semantic token modifier to associated functions, resolves #6194 ## Info - Associated functions are more-or-less equivalent to static methods in other languages. This PR checks, for each function, whether that function has a self_param, and whether it's enclosed in a trait/impl. ## Changes - Added method ```is_associated``` to code_model::Function. This basically gets the source from the ast, and checks whether the enclosing scope is an impl or trait. - Added `static` to HighlightModifiers - Added unit test ## Tests - Ran ```cargo test``` Co-authored-by: Anatol Liu <[email protected]>
Diffstat (limited to 'crates/profile')
0 files changed, 0 insertions, 0 deletions