aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/validation.rs
Commit message (Collapse)AuthorAgeFilesLines
* Some FIXMEs were outdated:Julian Wollersberger2020-05-241-3/+1
| | | | | | | * Done at line 243: "Add validation of `crate` keyword not appearing in the middle of the symbol path" * Already happened: "Remove validation of unterminated literals (it is already implemented in `tokenize()`)" * Happens in `unescape()`: "Add validation of character literal containing only a single char" * Missing: "raw string literals and raw byte string literals"
* Update to rustc_lexer version 660.Julian Wollersberger2020-05-241-8/+8
| | | | Change `unescape_*()` to `unescape_literal()`.
* Use back ticks instead of single quotes around codeTrevor Spiteri2020-05-141-1/+1
|
* Validate uses of self and superJohn Renner2020-05-011-48/+71
|
* Report invalid, nested, multi-segment crate-pathsJohn Renner2020-04-301-5/+24
| | | | | | | | | | Specifically, things like: use foo::{crate::bar}; Are now being caught, when before we only caught: use foo::{crate};
* Validate the location of `crate` in pathsJohn Renner2020-04-291-0/+39
|
* Switch to TryFromAleksey Kladov2020-04-251-1/+3
|
* Convert code to text-sizeAleksey Kladov2020-04-251-2/+2
|
* Fix unnecessary braces warningsLaurențiu Nicola2020-04-061-6/+6
|
* Rename ast::ImplBlock -> ast::ImplDefAleksey Kladov2020-02-291-3/+2
|
* ra_syntax: reshape SyntaxError for the sake of removing redundancyVeetaha2020-02-171-84/+71
|
* ra_syntax: added tests for tokenization errorsVeetaha2020-02-031-0/+6
|
* refactor(ra_syntax.validation): removed code duplication from ↵Veetaha2020-01-141-35/+26
| | | | validate_literal() function
* Attempt to implement typed accessorsGeoffry Song2019-11-151-6/+2
|
* Move inclusive range check to validationGeoffry Song2019-11-151-0/+14
|
* Forbid visibility qualifiers in traitsAleksey Kladov2019-11-111-1/+22
|
* replace AST visitors with macroEkaterina Babshukova2019-10-051-8/+10
|
* Added test for check doc strings in crates.Alexander Andreev2019-09-301-0/+2
| | | | #1856
* always wrap block into an expressionAleksey Kladov2019-09-021-1/+1
|
* rename struct -> record, pos -> tupleAleksey Kladov2019-08-231-1/+1
|
* :arrow_up: rustc_lexerAleksey Kladov2019-08-201-28/+26
|
* Move numeric names inside of `NameRef`Aleksey Kladov2019-08-091-5/+20
|
* switch to upstream unescapeAleksey Kladov2019-07-241-4/+87
|
* simiplifyAleksey Kladov2019-07-211-3/+3
|
* rename range -> text_rangeAleksey Kladov2019-07-201-4/+4
|
* move debug_dump to fmt::DebugAleksey Kladov2019-07-201-2/+2
|
* migrate ra_syntax to the new rowan APIAleksey Kladov2019-07-191-2/+2
|
* allow rustfmt to reorder importsAleksey Kladov2019-07-041-4/+3
| | | | | | 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
* apply T! macro where it is possibleSergey Parilin2019-05-151-3/+4
|
* share literal validation logic with compilerAleksey Kladov2019-05-071-10/+54
|
* Parse and infer tuple indicesrobojumper2019-04-061-0/+2
|
* switch to new rowanAleksey Kladov2019-04-011-5/+13
|
* kill utils moduleAleksey Kladov2019-02-211-6/+35
|
* flatten modulesAleksey Kladov2019-02-201-1/+1
|
* rename yellow -> syntax_nodeAleksey Kladov2019-02-121-1/+1
| | | | why yellow in the first place? Its red + green.
* Parse and validate attributes in blocksDJMcNab2019-01-281-0/+2
|
* switch ra_syntax to new rowan APIAleksey Kladov2019-01-081-8/+7
|
* grand module renameAleksey Kladov2018-12-081-0/+24
|
* Validate string literalsAdolfo Ochagavía2018-11-091-271/+0
|
* Rename File -> SourceFileNodeAleksey Kladov2018-11-071-5/+5
|
* Merge #207bors[bot]2018-11-071-10/+203
|\ | | | | | | | | | | | | | | 207: Finish implementing char validation r=aochagavia a=aochagavia The only thing missing right now are good integration tests (and maybe more descriptive error messages) Co-authored-by: Adolfo Ochagavía <[email protected]>
| * Fix backslash escapeAdolfo Ochagavía2018-11-071-2/+4
| |
| * Use ArrayString instead of hand rolled data structureAdolfo Ochagavía2018-11-071-3/+3
| |
| * cargo formatAdolfo Ochagavía2018-11-071-28/+33
| |
| * Add lots of testsAdolfo Ochagavía2018-11-071-4/+118
| |
| * Store hex digits in a stack-allocated bufferAdolfo Ochagavía2018-11-071-5/+8
| |
| * Finish implementing char validationAdolfo Ochagavía2018-11-061-7/+76
| |
* | ra_syntax::File is just RootNodeAleksey Kladov2018-11-061-1/+1
|/
* Introduce Location and make SyntaxError fields privateAdolfo Ochagavía2018-11-051-20/+5
|
* Introduce SyntaxErrorKind and TextRange in SyntaxErrorAdolfo Ochagavía2018-11-041-23/+76
|