bors[bot] 0a715cfbd2
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 <axlui@anatols-mbp.lan>
2020-11-09 21:13:51 +00:00
..
2020-11-09 16:59:57 +01:00
2020-11-02 10:57:31 -07:00
2020-11-08 20:10:40 +01:00
2020-11-06 22:52:42 +01:00
2020-11-06 22:30:58 +01:00
2020-11-09 21:13:51 +00:00
2020-11-06 22:23:14 +01:00
2020-11-09 14:09:49 +01:00
2020-11-02 10:57:31 -07:00