Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
* | SSR: Matching trait associated constants, types and functions | David Lattimore | 2020-08-01 | 1 | -2/+2 | |
| | | | | | | | | | | This fixes matching of things like `HashMap::default()` by resolving `HashMap` instead of `default` (which resolves to `Default::default`). Same for associated constants and types that are part of a trait implementation. However, we still don't support matching calls to trait methods. | |||||
* | Rename DotDotPat -> RestPat | Aleksey Kladov | 2020-07-31 | 1 | -1/+1 | |
| | ||||||
* | Rename | Aleksey Kladov | 2020-07-31 | 3 | -4/+4 | |
| | ||||||
* | Rename BindPat -> IdentPat | Aleksey Kladov | 2020-07-31 | 6 | -17/+21 | |
| | ||||||
* | Allign RecordPat with RecordExpr | Aleksey Kladov | 2020-07-31 | 3 | -5/+5 | |
| | ||||||
* | Rename TypeArgList -> GenericArgList | Aleksey Kladov | 2020-07-31 | 2 | -2/+2 | |
| | ||||||
* | Rename LambdaExpr -> ClosureExpr | Aleksey Kladov | 2020-07-31 | 1 | -1/+1 | |
| | ||||||
* | Rename TypeRef -> Type | Aleksey Kladov | 2020-07-31 | 3 | -4/+4 | |
| | | | | | | | | | | The TypeRef name comes from IntelliJ days, where you often have both type *syntax* as well as *semantical* representation of types in scope. And naming both Type is confusing. In rust-analyzer however, we use ast types as `ast::Type`, and have many more semantic counterparts to ast types, so avoiding name clash here is just confusing. | |||||
* | Use ty to access most TypeRefs | Aleksey Kladov | 2020-07-30 | 2 | -2/+2 | |
| | ||||||
* | Remove TypeAscriptionOwner | Aleksey Kladov | 2020-07-30 | 4 | -31/+22 | |
| | ||||||
* | Finalize attribute grammar | Aleksey Kladov | 2020-07-30 | 1 | -6/+4 | |
| | ||||||
* | Finalize impl Grammar | Aleksey Kladov | 2020-07-30 | 6 | -15/+14 | |
| | ||||||
* | Finalize Trait grammar | Aleksey Kladov | 2020-07-30 | 7 | -25/+25 | |
| | ||||||
* | fmt | Aleksey Kladov | 2020-07-30 | 1 | -4/+3 | |
| | ||||||
* | Finalize const&static grammar | Aleksey Kladov | 2020-07-30 | 6 | -17/+17 | |
| | ||||||
* | Rename EnumVariant -> Variant | Aleksey Kladov | 2020-07-30 | 7 | -10/+10 | |
| | ||||||
* | Rename EnumDef -> Enum | Aleksey Kladov | 2020-07-30 | 5 | -9/+9 | |
| | ||||||
* | Rename StructDef -> Struct | Aleksey Kladov | 2020-07-30 | 7 | -32/+32 | |
| | ||||||
* | Finalize union grammar | Aleksey Kladov | 2020-07-30 | 4 | -4/+4 | |
| | ||||||
* | Rename FieldDef -> Field | Aleksey Kladov | 2020-07-30 | 8 | -19/+19 | |
| | ||||||
* | Rename RecordLit -> RecordExpr | Aleksey Kladov | 2020-07-30 | 5 | -10/+10 | |
| | ||||||
* | Rename TypeParamList -> GenericParamList | Aleksey Kladov | 2020-07-30 | 4 | -6/+6 | |
| | ||||||
* | Rename TypeAliasDef -> TypeAlias | Aleksey Kladov | 2020-07-30 | 6 | -10/+10 | |
| | ||||||
* | Rename FnDef -> Fn | Aleksey Kladov | 2020-07-30 | 16 | -86/+86 | |
| | ||||||
* | Rename UseItem -> Use | Aleksey Kladov | 2020-07-30 | 2 | -4/+4 | |
| | ||||||
* | Split ItemList & AssocItemList | Aleksey Kladov | 2020-07-30 | 3 | -37/+43 | |
| | ||||||
* | Rename ModuleItem -> Item | Aleksey Kladov | 2020-07-29 | 2 | -3/+3 | |
| | ||||||
* | Replace rand with oorandom | Aleksey Kladov | 2020-07-29 | 1 | -5/+5 | |
| | ||||||
* | Rename NomialDef -> AdtDef | Aleksey Kladov | 2020-07-29 | 1 | -5/+5 | |
| | ||||||
* | Merge #5564 | bors[bot] | 2020-07-29 | 2 | -4/+9 | |
|\ | | | | | | | | | | | | | | | 5564: SSR: Restrict to current selection if any r=davidlattimore a=davidlattimore The selection is also used to avoid unnecessary work, but only to the file level. Further restricting unnecessary work is left for later. Co-authored-by: David Lattimore <[email protected]> | |||||
| * | SSR: Rename position and lookup_context to resolve_context | David Lattimore | 2020-07-29 | 1 | -2/+2 | |
| | | ||||||
| * | SSR: Restrict to current selection if any | David Lattimore | 2020-07-29 | 2 | -3/+8 | |
| | | | | | | | | | | The selection is also used to avoid unnecessary work, but only to the file level. Further restricting unnecessary work is left for later. | |||||
* | | Allow running more tests at once | Kirill Bulatov | 2020-07-28 | 1 | -54/+110 | |
|/ | ||||||
* | Fold multiline fn parameters | Aleksey Kladov | 2020-07-27 | 1 | -1/+13 | |
| | ||||||
* | add completion for rustc lints | Emil Gardström | 2020-07-27 | 1 | -4/+278 | |
| | ||||||
* | Only display experimental diagnostics when enabled | Jonas Schievink | 2020-07-24 | 2 | -7/+18 | |
| | ||||||
* | Add a builder for DiagnosticSink | Jonas Schievink | 2020-07-24 | 1 | -68/+71 | |
| | ||||||
* | SSR: Allow function calls to match method calls | David Lattimore | 2020-07-24 | 1 | -0/+3 | |
| | | | | | | | | | | | This differs from how this used to work before I removed it in that: a) It's only one direction. Function calls in the pattern can match method calls in the code, but not the other way around. b) We now check that the function call in the pattern resolves to the same function as the method call in the code. The lack of (b) was the reason I felt the need to remove the feature before. | |||||
* | SSR: Match paths based on what they resolve to | David Lattimore | 2020-07-24 | 1 | -1/+11 | |
| | | | | Also render template paths appropriately for their context. | |||||
* | SSR: Pass current file position through to SSR code. | David Lattimore | 2020-07-24 | 2 | -3/+6 | |
| | | | | In a subsequent commit, it will be used for resolving paths. | |||||
* | Move iteration over all files into the SSR crate | David Lattimore | 2020-07-24 | 1 | -13/+3 | |
| | | | | The methods `edits_for_file` and `find_matches_in_file` are replaced with just `edits` and `matches`. This simplifies the API a bit, but more importantly it makes it possible in a subsequent commit for SSR to decide to not search all files. | |||||
* | Merge #5505 | bors[bot] | 2020-07-23 | 1 | -5/+2 | |
|\ | | | | | | | | | | | | | | | | | | | | | 5505: Cleanup CFG API r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]> | |||||
| * | Cleanup CFG API | Aleksey Kladov | 2020-07-23 | 1 | -5/+2 | |
| | | ||||||
* | | Merge #5473 | bors[bot] | 2020-07-23 | 1 | -2/+2 | |
|\ \ | |/ |/| | | | | | | | | | | | 5473: Changes to rust-project.json r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]> | |||||
| * | More Rustic API for Env | Aleksey Kladov | 2020-07-21 | 1 | -2/+2 | |
| | | ||||||
| | | ||||||
| \ | ||||||
*-. \ | Merge #5451 #5463 #5465 #5466 | bors[bot] | 2020-07-21 | 2 | -14/+47 | |
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5451: Highlight more cases of SyntaxKind when it is a punctuation r=matklad a=GrayJack This maybe closes #5406 Closes #5453 Separate what one expect to be a punctuation semantic token (like `,`, `;`, `(`, etc), and what is not (`&`, `::`, `+`, etc) 5463: Bump lexer r=matklad a=kjeremy Since we're now on rust 1.45 5465: Bump chalk r=matklad a=kjeremy 5466: Do not show default types in function and closure return values r=matklad a=SomeoneToIgnore Avoid things like <img width="522" alt="image" src="https://user-images.githubusercontent.com/2690773/87985936-1bbe4f80-cae5-11ea-9b8a-5383d896c296.png"> Co-authored-by: GrayJack <[email protected]> Co-authored-by: kjeremy <[email protected]> Co-authored-by: Kirill Bulatov <[email protected]> | |||||
| | * | Do not show default types in closures | Kirill Bulatov | 2020-07-20 | 1 | -0/+2 | |
| |/ |/| | ||||||
| * | On second thought, we want to preserve the textMate here where all ↵ | GrayJack | 2020-07-21 | 1 | -1/+3 | |
| | | | | | | | | punctuation that are from a Attr be highlited as Attribute | |||||
| * | `#` as Attribute | GrayJack | 2020-07-21 | 1 | -0/+1 | |
| | | | | | | | | - Issue #5453 | |||||
| * | @ as operator | GrayJack | 2020-07-21 | 1 | -2/+3 | |
| | |