Round 5: CLI path/JSON/stdin and parser/formatter fixes (#1, #11, #42, #44-#47, #55)

This commit is contained in:
Guoliang Chen committed 2026-11-26 14:35:06 -08:00
1 parent 6d1c68994c
commit 4cf50a0b9c
40 files changed
+2767 -430

No files matched your search

+7
View File
@@ -441,6 +441,13 @@ pub struct GateInstance {
pub struct GenIf {
pub cond: Expr,
pub then: GenBlock,
/// Trailing comment written on `then`'s `end` / `end : label` line when an
/// `else` branch follows (keeping it out of `else`'s leading comments).
pub then_trailing: Option<Comment>,
/// Balanced/non-conditional directives between `then` and `else`.
pub else_directives: Vec<ListDirective>,
/// Comments between `then` (or its intervening directives) and `else`.
pub else_comments: Vec<Comment>,
pub els: Option<Box<GenElse>>,
/// Code extent of the whole `if`, its `else` branch included.
pub span: TextRange,