aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/ids.rs
Commit message (Collapse)AuthorAgeFilesLines
* migrate ra_hir to the new rowanAleksey Kladov2019-07-191-7/+7
|
* use Parse in mbeAleksey Kladov2019-07-181-7/+7
|
* make Parse fields privateAleksey Kladov2019-07-121-1/+1
| | | | this is in preparation for the new rowan API
* Clippy trivially_copy_pass_by_refJeremy Kolb2019-07-051-2/+2
|
* allow rustfmt to reorder importsAleksey Kladov2019-07-041-6/+4
| | | | | | This wasn't a right decision in the first place, the feature flag was broken in the last rustfmt release, and syntax highlighting of imports is more important anyway
* make sure that CrateDefMap is independent from syntaxAleksey Kladov2019-06-261-9/+9
|
* check for cancellation when executing queriesAleksey Kladov2019-06-121-1/+0
| | | | | | | Note that we can't just remove CheckCanceled trait altogether: sometimes it's useful to check for cancellation while the query is running! We do this, for example, in the name resolution fixed-point loop.
* remove unneded From(..) implAleksey Kladov2019-06-111-3/+3
|
* don't cache parses twiceAleksey Kladov2019-06-021-25/+28
| | | | | | | | | Before this commit, `Parse`s for original file ended up two times in salsa's db: first, when we parse original file, and second, when we parse macro or a file. Given that parse trees are the worst ofenders in terms of memory, it makes sense to make sure we store them only once.
* add AstDatabaseAleksey Kladov2019-06-021-14/+17
|
* fix syntax errors in testsAleksey Kladov2019-05-281-1/+1
|
* check cancellation when expanding macrosAleksey Kladov2019-05-271-0/+1
|
* add profile calls to parsing/expansion routinesAleksey Kladov2019-05-221-0/+2
|
* allow expanding expressionsAleksey Kladov2019-05-141-0/+4
|
* expand to syntax nodeAleksey Kladov2019-05-141-12/+12
|
* store macro kind in HirFileIdAleksey Kladov2019-05-141-15/+28
|
* Move Chalk conversion code to its own moduleFlorian Diebold2019-05-041-46/+4
|
* Chalk integrationFlorian Diebold2019-05-041-0/+54
| | | | | - add proper canonicalization logic - add conversions from/to Chalk IR
* make macro expansion into a proper queryAleksey Kladov2019-05-041-21/+22
|
* minor, moveAleksey Kladov2019-05-041-19/+19
|
* introduce macro_arg intermediate queryAleksey Kladov2019-05-041-5/+9
| | | | | | | | | | | | Currently, when expanding macros, we look at the source code directly (we invoke ast_id_to_node query via to_node method). This is less then ideal, because it make us re-expand macros after every source change. This commit establishes a salsa-firewall: a query to get macro call's token tree. Unlike the syntax tree, token tree changes only if we actually modify the macro itself.
* Add more information on macro rules fail to parseEdwin Cheng2019-04-251-2/+8
|
* Add mbe expand limit and poision macro setEdwin Cheng2019-04-221-0/+7
|
* Add more information on parse_macro failEdwin Cheng2019-04-211-10/+27
|
* Fix bugsEdwin Cheng2019-04-201-2/+22
|
* migrate to salsas interningAleksey Kladov2019-04-091-68/+77
|
* reduce visibilityAleksey Kladov2019-03-261-10/+10
|
* renameAleksey Kladov2019-03-261-1/+1
|
* simplifyAleksey Kladov2019-03-261-3/+4
|
* more type safetyAleksey Kladov2019-03-261-20/+12
|
* strongy-typed ids for macrosAleksey Kladov2019-03-261-12/+6
|
* move source_id to a separate fileAleksey Kladov2019-03-261-111/+3
|
* make macro parsing a queryAleksey Kladov2019-03-261-3/+3
|
* store macro def inside macro idAleksey Kladov2019-03-261-5/+19
| | | | | | | | This solves the problem of "macro expansion can't call into name resolution, because name resolution calls back into macro expansion" Because we store macro def as a part of call id, macro expansion just knows the def!
* rename persistent hir database -> def databaseAleksey Kladov2019-03-231-17/+11
|
* Fixed typo in `Interner`’s name (`Intener`)Vincent Esche2019-03-201-17/+17
|
* remove old macro supportAleksey Kladov2019-03-171-6/+19
|
* rename ModuleId -> CrateModuleIdAleksey Kladov2019-03-171-0/+1
|
* remove lower moduleAleksey Kladov2019-03-171-7/+0
|
* Replace module_tree with CrateDefMapAleksey Kladov2019-03-171-0/+6
|
* add skeleton for macro-aware name resolutionsAleksey Kladov2019-03-171-9/+18
|
* rename type to type_alias in the AST as wellAleksey Kladov2019-02-251-3/+3
|
* Handle impl generics in method callsFlorian Diebold2019-02-161-2/+1
|
* Turn ImplBlock into a copy type just containing IDsFlorian Diebold2019-02-161-1/+4
| | | | | | | 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.
* Fix some typosPascal Hertleif2019-02-121-8/+8
|
* remove query_definitionsAleksey Kladov2019-02-111-3/+18
|
* reformat the worldAleksey Kladov2019-02-081-26/+8
|
* split HirDatabase apicsmoe2019-02-011-5/+9
|
* remove Option<SourceFileItemId> hackAleksey Kladov2019-01-261-3/+2
|
* store syntax ptr in FileItemsAleksey Kladov2019-01-261-19/+10
| | | | we cache the tree in file_item query anyway