aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/codegen
Commit message (Collapse)AuthorAgeFilesLines
...
* Put displays at the endAleksey Kladov2020-04-091-12/+16
|
* More compactAleksey Kladov2020-04-091-10/+2
|
* Move the rest of the tokens to generated/tokensAleksey Kladov2020-04-091-80/+90
|
* Move generated tokens to a separate fileAleksey Kladov2020-04-091-37/+61
|
* Start ast/generated/tokensAleksey Kladov2020-04-091-3/+7
|
* Prepare for spliting generated into tokens and nodesAleksey Kladov2020-04-091-1/+1
|
* Cleanup importAleksey Kladov2020-04-091-2/+5
|
* Scale back to only two traitsAleksey Kladov2020-04-091-29/+58
|
* Scale back the traitsAleksey Kladov2020-04-091-140/+28
|
* Add AstElement trait, generate tokens, support tokens in enumsLuca Barbieri2020-04-081-29/+269
| | | | | | | | | - Adds a new AstElement trait that is implemented by all generated node, token and enum structs - Overhauls the code generators to code-generate all tokens, and also enhances enums to support including tokens, node, and nested enums
* gen_assists_docs skip hidden filesJosh Mcguigan2020-03-211-7/+3
|
* implementing Display for enums too.Fireassember2020-03-111-2/+8
|
* added fmt::Display as a supertrait for AstNode and changed generation.Fireassember2020-03-061-0/+6
|
* Some docsAleksey Kladov2020-02-271-0/+2
|
* Doctest autoimportAleksey Kladov2020-02-061-9/+33
|
* fix(xtask.gen_syntax.typo): add s to the verb that refers to the 3d personVeetaha2020-01-151-1/+1
|
* Use correct rustfmt for codegenAleksey Kladov2020-01-102-3/+3
| | | | closes #1569
* Switch ast declaration from ron to a macroAleksey Kladov2020-01-031-136/+98
|
* Use anyhow::Result in xtask, add contextsPascal Hertleif2019-11-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This builds on #2231 but was actually done before that. You see, the cause for #2231 was that I got this error message: Error: Error { kind: Io(Os { code: 2, kind: NotFound, message: "No such file or directory" }) } Just switching to `anyhow::Result` got me stack traces (when setting `RUST_LIB_BACKTRACE=1`) that at least showed stack backtrace: 0: std::backtrace::Backtrace::create 1: std::backtrace::Backtrace::capture 2: anyhow::error::<impl core::convert::From<E> for anyhow::Error>::from 3: xtask::install_server 4: xtask::install 5: xtask::main 6: std::rt::lang_start::{{closure}} 7: std::panicking::try::do_call 8: __rust_maybe_catch_panic 9: std::rt::lang_start_internal 10: std::rt::lang_start 11: main With the added contexts (not at all exhaustive), the error became Error: install server Caused by: 0: build AutoCfg with target directory 1: No such file or directory (os error 2) Since anyhow is such a small thing (no new transitive dependencies!), and in general gives you `Result<T, Box<dyn Error>>` on steroids, I think this a nice small change. The only slightly annoying thing was to replace all the `Err(format!(…))?` calls (haven't even looked at whether we can make it support wrapping strings though), but the `bail!` macro is shorter anyway :)
* Some clippy fixeskjeremy2019-10-302-6/+4
|
* use unicode bar for drawing the cursorAleksey Kladov2019-10-261-2/+6
|
* check style for assist docsAleksey Kladov2019-10-261-0/+6
|
* add blank lines for readabilityAleksey Kladov2019-10-261-1/+1
|
* generate more assists docsAleksey Kladov2019-10-251-3/+7
|
* auto-generate assists docs and testsAleksey Kladov2019-10-252-22/+126
|
* refactor comment extraction from tasksAleksey Kladov2019-10-241-38/+20
|
* simplifyAleksey Kladov2019-10-241-14/+13
|
* xtask: don't depend on itertoolsAleksey Kladov2019-10-231-17/+22
| | | | xtask should be fast to compiler, as it's a gateway to rust-analyzer
* xtask: move codegen to a moduleAleksey Kladov2019-10-232-0/+504