Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Extract generic_params method to a HasGenericParams trait | Florian Diebold | 2019-04-14 | 1 | -21/+1 |
| | |||||
* | Add Container enum to handle both kinds of container (impl/trait) | Florian Diebold | 2019-04-14 | 1 | -8/+43 |
| | |||||
* | More trait infrastructure | Florian Diebold | 2019-04-14 | 1 | -1/+16 |
| | | | | | | | | | | - make it possible to get parent trait from method - add 'obligation' machinery for checking that a type implements a trait (and inferring facts about type variables from that) - handle type parameters of traits (to a certain degree) - improve the hacky implements check to cover enough cases to exercise the handling of traits with type parameters - basic canonicalization (will probably also be done by Chalk) | ||||
* | make resolver private | Aleksey Kladov | 2019-04-13 | 1 | -8/+8 |
| | |||||
* | fold ScopeWithSyntax into SourceAnalyzer | Aleksey Kladov | 2019-04-13 | 1 | -13/+1 |
| | |||||
* | simplify tests | Aleksey Kladov | 2019-04-12 | 1 | -10/+0 |
| | |||||
* | simplify | Aleksey Kladov | 2019-04-11 | 1 | -5/+3 |
| | |||||
* | generalize SourceAnalyzer to handle all defs with bodies | Aleksey Kladov | 2019-04-11 | 1 | -0/+8 |
| | |||||
* | introduce SourceAnalyzer | Aleksey Kladov | 2019-04-11 | 1 | -7/+3 |
| | |||||
* | use either for uses | Aleksey Kladov | 2019-04-10 | 1 | -3/+9 |
| | |||||
* | Merge #1076 | bors[bot] | 2019-04-02 | 1 | -5/+60 |
|\ | | | | | | | | | | | | | | | | | 1076: Const body inference r=flodiebold a=Lapz This is the second part of #887. I've added type inference on const bodies and introduced the DefWithBody containing Function, Const and Static. I want to add tests but im unsure on how I would go about testing that completions work. Co-authored-by: Lenard Pratt <[email protected]> | ||||
| * | Added const bodies and static body to the ast | Lenard Pratt | 2019-04-02 | 1 | -52/+35 |
| | | | | | | | | | | | | and added inference the inference test reduce code duplication | ||||
| * | Added defWithBody | Lenard Pratt | 2019-03-30 | 1 | -6/+78 |
| | | |||||
* | | always produce source for import | Aleksey Kladov | 2019-04-02 | 1 | -2/+2 |
| | | |||||
* | | fix a panic with glob-import missing a source map | Aleksey Kladov | 2019-04-02 | 1 | -5/+1 |
|/ | |||||
* | reduce visibility | Aleksey Kladov | 2019-03-26 | 1 | -2/+2 |
| | |||||
* | Basics for trait method resolution | Florian Diebold | 2019-03-25 | 1 | -0/+13 |
| | |||||
* | more enterprisey diagnostics setup | Aleksey Kladov | 2019-03-25 | 1 | -0/+16 |
| | |||||
* | cleanup | Aleksey Kladov | 2019-03-25 | 1 | -3/+3 |
| | |||||
* | switch modules to new diagnostics | Aleksey Kladov | 2019-03-25 | 1 | -13/+5 |
| | |||||
* | allow dyn diagnostics | Aleksey Kladov | 2019-03-25 | 1 | -3/+5 |
| | |||||
* | diagnostics | Aleksey Kladov | 2019-03-25 | 1 | -0/+5 |
| | |||||
* | remove obsolete diagnostic | Aleksey Kladov | 2019-03-23 | 1 | -1/+0 |
| | |||||
* | rename persistent hir database -> def database | Aleksey Kladov | 2019-03-23 | 1 | -46/+37 |
| | |||||
* | replace todo with fixme | Aleksey Kladov | 2019-03-23 | 1 | -5/+5 |
| | |||||
* | rename ModuleId -> CrateModuleId | Aleksey Kladov | 2019-03-17 | 1 | -2/+2 |
| | |||||
* | Reorganize name resolution | Aleksey Kladov | 2019-03-17 | 1 | -2/+1 |
| | |||||
* | remove lower module | Aleksey Kladov | 2019-03-17 | 1 | -5/+5 |
| | |||||
* | remove ItemMap | Aleksey Kladov | 2019-03-17 | 1 | -3/+3 |
| | |||||
* | Replace module_tree with CrateDefMap | Aleksey Kladov | 2019-03-17 | 1 | -1/+1 |
| | |||||
* | derive Hash for ra_hir::ModuleDef | pcpthm | 2019-03-14 | 1 | -1/+1 |
| | |||||
* | remove Def | Aleksey Kladov | 2019-03-12 | 1 | -5/+0 |
| | |||||
* | align lower module query names | Aleksey Kladov | 2019-03-02 | 1 | -1/+1 |
| | |||||
* | rename scopes | Aleksey Kladov | 2019-03-02 | 1 | -3/+3 |
| | |||||
* | rename to source_map | Aleksey Kladov | 2019-03-02 | 1 | -2/+2 |
| | |||||
* | dont store body inside source map | Aleksey Kladov | 2019-03-02 | 1 | -2/+2 |
| | |||||
* | rename syntax-mapping -> source-map | Aleksey Kladov | 2019-03-02 | 1 | -4/+4 |
| | |||||
* | Merge #897 | bors[bot] | 2019-02-25 | 1 | -0/+42 |
|\ | | | | | | | | | | | | | | | | | | | 897: Add basic const/static type inference r=flodiebold a=vipentti This adds basic const/static type inference discussed in #887. Currently the inference does not work for const/static declared inside a block. In addition the inference does not work inside the bodies of const/static. Co-authored-by: Ville Penttinen <[email protected]> | ||||
| * | Add static type inference | Ville Penttinen | 2019-02-25 | 1 | -0/+10 |
| | | |||||
| * | Add const type inference | Ville Penttinen | 2019-02-25 | 1 | -0/+32 |
| | | |||||
* | | rename type to type_alias in the AST as well | Aleksey Kladov | 2019-02-25 | 1 | -1/+4 |
|/ | |||||
* | Rename Type => TypeAlias | Florian Diebold | 2019-02-24 | 1 | -6/+16 |
| | |||||
* | Implement support for type aliases | Florian Diebold | 2019-02-24 | 1 | -0/+17 |
| | |||||
* | Clean up imports a bit | Florian Diebold | 2019-02-24 | 1 | -4/+2 |
| | |||||
* | Split ty.rs into several modules | Florian Diebold | 2019-02-23 | 1 | -0/+4 |
| | | | | | | | | | It was just getting too big. We now have: - ty: the `Ty` enum and helpers - ty::infer: actual type inference - ty::lower: lowering from HIR to `Ty` - ty::op: helpers for binary operations, currently | ||||
* | Handle tuple structs / enum variants properly in type inference | Florian Diebold | 2019-02-17 | 1 | -3/+7 |
| | |||||
* | Handle impl generics in method calls | Florian Diebold | 2019-02-16 | 1 | -1/+35 |
| | |||||
* | Turn ImplBlock into a copy type just containing IDs | Florian Diebold | 2019-02-16 | 1 | -10/+5 |
| | | | | | | | This makes it more like the other code model types. Also make Module::definition_source/declaration_source return HirFileIds, to make them more like the other source functions. | ||||
* | Resolve 2015 style imports | Florian Diebold | 2019-02-13 | 1 | -1/+8 |
| | |||||
* | Fix some typos | Pascal Hertleif | 2019-02-12 | 1 | -3/+3 |
| |