Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Do not process indexed values more than once | Kirill Bulatov | 2021-03-08 | 1 | -29/+31 | |
| | ||||||
* | Deduplicate search_dependencies results | Kirill Bulatov | 2021-03-08 | 1 | -18/+19 | |
| | ||||||
* | Rename a few `crate_def_map`s to `def_map` | Jonas Schievink | 2021-03-06 | 3 | -16/+16 | |
| | | | | These could all be block `DefMap`s instead of crate-level `DefMap`s | |||||
* | Make two calls virtual | Laurențiu Nicola | 2021-03-05 | 1 | -1/+1 | |
| | ||||||
* | Fix some warnings | Laurențiu Nicola | 2021-03-05 | 1 | -1/+1 | |
| | ||||||
* | Remove incorrect broken test | Jonas Schievink | 2021-03-03 | 1 | -24/+0 | |
| | | | | | `Struct` cannot be named at all in that position, since `super` doesn't resolve to the block scope | |||||
* | Fix `find_path` when inner items are present | Jonas Schievink | 2021-03-01 | 4 | -28/+88 | |
| | ||||||
* | Merge #7778 | bors[bot] | 2021-03-01 | 1 | -2/+11 | |
|\ | | | | | | | | | | | | | | | 7778: Fix lowering trailing self paths in UseTrees r=Veykril a=Veykril Noticed that hovering over `self` in a use tree like `use foo::bar::{self}` showing documentation and such for the current module instead of `bar`. Co-authored-by: Lukas Wirth <[email protected]> | |||||
| * | Fix lowering trailing self paths in UseTrees | Lukas Wirth | 2021-02-28 | 1 | -2/+11 | |
| | | ||||||
* | | Merge #7804 | bors[bot] | 2021-02-28 | 3 | -79/+73 | |
|\ \ | | | | | | | | | | | | | | | | | | | | | | 7804: Introduce TypeCtor::Scalar r=lnicola a=Veykril `TypeCtor::Int(..) | TypeCtor::Float(..) | TypeCtor::Char | TypeCtor::Bool` => `TypeCtor::Scalar(..)`, in this case we can actually just straight up use `chalk_ir::Scalar` already since its just a POD without any IDs or anything. Co-authored-by: Lukas Wirth <[email protected]> | |||||
| * | | Introduce TypeCtor::Scalar | Lukas Wirth | 2021-02-28 | 3 | -79/+73 | |
| |/ | ||||||
* | | For unresolved macros, hightlight only the last segment | Aleksey Kladov | 2021-02-28 | 5 | -92/+147 | |
| | | ||||||
* | | Restrict visibilities to the containing DefMap | Jonas Schievink | 2021-02-28 | 2 | -4/+46 | |
|/ | ||||||
* | is_visible_from_def_map: handle block expressions | Jonas Schievink | 2021-02-23 | 3 | -9/+37 | |
| | ||||||
* | Wrap `BuiltinType` in code model | Jonas Schievink | 2021-02-11 | 1 | -0/+1 | |
| | ||||||
* | Remove unneeded return | Jonas Schievink | 2021-02-09 | 1 | -2/+2 | |
| | ||||||
* | Remove `pub` | Jonas Schievink | 2021-02-09 | 1 | -2/+2 | |
| | ||||||
* | Use `block_def_map` in `Resolver` | Jonas Schievink | 2021-02-09 | 1 | -118/+97 | |
| | | | | | | | This required a few changes to not bail out immediately if a `ModuleScope` doesn't resolve a path. The `LocalItemsScope` hack is now removed. | |||||
* | Teach `find_path` about inner items | Jonas Schievink | 2021-02-09 | 1 | -10/+91 | |
| | ||||||
* | Add another block def map test | Jonas Schievink | 2021-02-09 | 1 | -0/+27 | |
| | ||||||
* | Make `with_ancestor_maps` public | Jonas Schievink | 2021-02-09 | 1 | -1/+1 | |
| | ||||||
* | Add `TestDB::module_at_position` | Jonas Schievink | 2021-02-09 | 2 | -104/+99 | |
| | ||||||
* | Add expression scopes for blocks | Jonas Schievink | 2021-02-09 | 1 | -4/+18 | |
| | ||||||
* | Test `super` resolution too | Jonas Schievink | 2021-02-05 | 1 | -0/+2 | |
| | ||||||
* | Fix resolution of `self` module within blocks | Jonas Schievink | 2021-02-05 | 2 | -7/+17 | |
| | ||||||
* | Remove redundant clones | Yoshua Wuyts | 2021-02-05 | 3 | -3/+3 | |
| | ||||||
* | Fix merging of `segment_index` in path resolution | Jonas Schievink | 2021-02-05 | 1 | -2/+5 | |
| | ||||||
* | Avoid using ModPath's fields directly | Jonas Schievink | 2021-02-04 | 3 | -8/+9 | |
| | ||||||
* | Make `ModPath`'s representation private | Jonas Schievink | 2021-02-04 | 9 | -39/+58 | |
| | ||||||
* | Intern `TypeRef`s in the containing `ItemTree` | Jonas Schievink | 2021-02-04 | 4 | -21/+67 | |
| | ||||||
* | Expander: store a LocalModuleId, not ModuleId | Jonas Schievink | 2021-02-04 | 2 | -14/+11 | |
| | | | | | It already stores the DefMap containing the module, so having a full ModuleId is unnecessary and makes it easier to mix things up | |||||
* | Don't keep the parent DefMap alive via Arc | Jonas Schievink | 2021-02-04 | 5 | -36/+67 | |
| | | | | | This seems like it could easily leak a lot of memory since we don't currently run GC | |||||
* | Split out ItemScope::dump from DefMap::dump | Jonas Schievink | 2021-02-03 | 2 | -21/+26 | |
| | ||||||
* | Merge #7546 | bors[bot] | 2021-02-03 | 2 | -0/+11 | |
|\ | | | | | | | | | | | | | | | 7546: Add newline between block and crate maps r=jonas-schievink a=jonas-schievink bors r+ Co-authored-by: Jonas Schievink <[email protected]> | |||||
| * | Add newline between block and crate maps | Jonas Schievink | 2021-02-03 | 2 | -0/+11 | |
| | | ||||||
* | | Add a FIXME to ItemTree | Jonas Schievink | 2021-02-03 | 1 | -0/+1 | |
|/ | ||||||
* | Update `DefMap` and `block_def_map` docs | Jonas Schievink | 2021-02-03 | 2 | -1/+25 | |
| | ||||||
* | Test for name resolution with DefMap shortcut | Jonas Schievink | 2021-02-03 | 1 | -0/+33 | |
| | ||||||
* | Shortcut `block_def_map` if there's no inner items | Jonas Schievink | 2021-02-03 | 5 | -11/+26 | |
| | | | | | This previously didn't work, but apparently only because of the wonky test setup | |||||
* | Use body lowering for block_def_map tests | Jonas Schievink | 2021-02-03 | 3 | -68/+117 | |
| | | | | Removes the hacky and buggy custom lowering code | |||||
* | Use block_def_map in body lowering | Jonas Schievink | 2021-02-03 | 5 | -25/+39 | |
| | ||||||
* | Fix resolution of `crate` paths from within blocks | Jonas Schievink | 2021-02-02 | 2 | -2/+7 | |
| | | | | | They resolve to the crate root, not the DefMap's root module (which can be a block) | |||||
* | Use the right `DefMap` when looking up modules | Jonas Schievink | 2021-02-02 | 3 | -2/+20 | |
| | ||||||
* | Revert "Use block_def_map in body lowering" | Jonas Schievink | 2021-02-02 | 9 | -160/+95 | |
| | ||||||
* | Shortcut `block_def_map` if there's no inner items | Jonas Schievink | 2021-02-01 | 1 | -2/+4 | |
| | | | | | This previously didn't work, but apparently only because of the wonky test setup | |||||
* | Use body lowering for block_def_map tests | Jonas Schievink | 2021-02-01 | 3 | -68/+117 | |
| | | | | Removes the hacky and buggy custom lowering code | |||||
* | Use block_def_map in body lowering | Jonas Schievink | 2021-02-01 | 5 | -25/+39 | |
| | ||||||
* | Merge #7503 | bors[bot] | 2021-01-31 | 1 | -1/+9 | |
|\ | | | | | | | | | | | | | | | 7503: Return inner attributes of outline mod declarations in `attrs_query` r=jonas-schievink a=Veykril Co-authored-by: Lukas Wirth <[email protected]> | |||||
| * | Return inner attributes of outline mod declarations in `attrs_query` | Lukas Wirth | 2021-01-31 | 1 | -1/+9 | |
| | | ||||||
* | | Honor #![macro_use] in mod source files | Lukas Wirth | 2021-01-31 | 2 | -8/+23 | |
|/ |