diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index ce1f4b1..274cc47 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,3 +1,5 @@ +# Author: Guoliang Chen, a Senior Digital Design Engineer + # CI: the three checks CLAUDE.md requires before any work is finished, # plus the extension's JavaScript tests and the corpus gate, enforced on # every push. Runs on the self-hosted macOS runner in host mode (no @@ -64,3 +66,5 @@ jobs: run: cargo clippy --all-targets -- -D warnings - name: cargo test run: cargo test --workspace + +# Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index ca91a0b..cafb1cc 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -1,3 +1,5 @@ +# Author: Guoliang Chen, a Senior Digital Design Engineer + # Release: pushing a tag `vX.Y.Z` builds every distribution artifact and # publishes a Gitea release with the CHANGELOG section for that version as # its notes. What the release page carries is the seven .vsix packages — @@ -67,3 +69,5 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} LUCISV_API_URL: ${{ vars.LUCISV_API_URL }} run: tools/publish_release.sh "$GITHUB_REF_NAME" dist + +# Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/.gitignore b/.gitignore index 7118527..a661122 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +# Author: Guoliang Chen, a Senior Digital Design Engineer + /target /corpus /corpus-check-results.tsv @@ -8,3 +10,5 @@ /.zcode /.claude __pycache__/ + +# Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/CHANGELOG.md b/CHANGELOG.md index f40e1fb..3237b39 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,28 @@ + + # Changelog All notable changes to lucisv are recorded here. Versions follow [semantic versioning](https://semver.org/); until 1.0 the CLI's exit codes (see `README.md`) are the only frozen contract. +## 0.66.2 — 2026-11-24 + +### Every source file names its author + +- **No behaviour change.** Every tracked file that can carry a comment — 880 + of them: the Rust sources, the extension's JavaScript, the scripts, the + manifests, the workflows and the documentation — now opens with an author + line and closes with one. The binaries and the formatter's, linter's and + language server's output are what 0.66.1 produced. +- `tools/stamp_author.py` writes the lines and is idempotent; run it after + adding files (`--check` lists what is missing). It leaves alone what a + comment would break or what is regenerated: test fixtures, cases and + snapshots, JSON and JSONL, logs, images, lockfiles, the built site under + `docs/site/dist` and the `LICENSE` files. +- `tools/linux_check.sh --help` reads its own header one line further down, + since the author line now sits under the shebang. + ## 0.66.1 — 2026-11-19 ### Sticky scroll pins the module instance @@ -3442,3 +3461,5 @@ compiler directive any more. Details: [macro items](docs/features/macro-items/README.md), [directives in lists](docs/features/directives-in-lists/README.md) and [in instances](docs/features/directives-in-instances/README.md). + + diff --git a/CLAUDE.md b/CLAUDE.md index fd8e737..0438c46 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,3 +1,5 @@ + + # CLAUDE.md — rules for all agents working on lucisv lucisv is a ruff-style Verilog/SystemVerilog formatter/linter in Rust. @@ -225,3 +227,5 @@ proven independent and run serially. Rules for a parallel wave: not actually independent, which is a planning failure to record. - After merging, the lead updates `docs/topo.md` for any edge a lane added or amended, so the next wave plans against reality. + + diff --git a/Cargo.lock b/Cargo.lock index a8e4fcb..5c50100 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -97,7 +97,7 @@ dependencies = [ [[package]] name = "lucisv" -version = "0.66.1" +version = "0.66.2" dependencies = [ "lucisv_core", "rayon", @@ -108,11 +108,11 @@ dependencies = [ [[package]] name = "lucisv_core" -version = "0.66.1" +version = "0.66.2" [[package]] name = "lucisv_mcp" -version = "0.66.1" +version = "0.66.2" dependencies = [ "lucisv_core", "serde", @@ -126,7 +126,7 @@ dependencies = [ [[package]] name = "lucisv_server" -version = "0.66.1" +version = "0.66.2" dependencies = [ "lsp-server", "lsp-types", @@ -262,14 +262,14 @@ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" [[package]] name = "vlog_formatter" -version = "0.66.1" +version = "0.66.2" dependencies = [ "vlog_parser", ] [[package]] name = "vlog_linter" -version = "0.66.1" +version = "0.66.2" dependencies = [ "lucisv_core", "vlog_formatter", @@ -279,11 +279,11 @@ dependencies = [ [[package]] name = "vlog_parser" -version = "0.66.1" +version = "0.66.2" [[package]] name = "vlog_refactor" -version = "0.66.1" +version = "0.66.2" dependencies = [ "vlog_formatter", "vlog_parser", @@ -292,7 +292,7 @@ dependencies = [ [[package]] name = "vlog_semantic" -version = "0.66.1" +version = "0.66.2" dependencies = [ "vlog_parser", ] diff --git a/Cargo.toml b/Cargo.toml index aaed4b0..383c550 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,3 +1,5 @@ +# Author: Guoliang Chen, a Senior Digital Design Engineer + [workspace] resolver = "2" members = [ @@ -13,7 +15,7 @@ members = [ ] [workspace.package] -version = "0.66.1" +version = "0.66.2" authors = ["Guoliang Chen"] edition = "2021" license = "MIT" @@ -44,3 +46,5 @@ serde_json = "=1.0.140" [profile.release] lto = true + +# Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/README.md b/README.md index a73bf53..bedf77b 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ + + # lucisv — Language Utility for Coding In SystemVerilog A Verilog and SystemVerilog formatter, linter, and language server written in Rust. @@ -1145,3 +1147,5 @@ where the version number lives, how the `.vsix` is packaged, and what marketplace publishing would take if it ever happens — is in [`tools/RELEASING.md`](tools/RELEASING.md). lucisv is MIT licensed ([`LICENSE`](LICENSE)). + + diff --git a/ROADMAP.md b/ROADMAP.md index f5f157c..42003c4 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -1,3 +1,5 @@ + + # ROADMAP — autonomous coverage loop Running log of the coverage-improvement loop (started 2026-08-20). The metric @@ -175,3 +177,5 @@ needs macro expansion, a deliberate non-goal) or not valid standalone Verilog. The stop condition holds before round 1 of a restart, so **no dev round was dispatched**. The loop resumes only if open question 2 is decided (a preprocessing model would put ~1.7% back in reach) or the corpus grows. + + diff --git a/TODO-MCP.md b/TODO-MCP.md index fb7c211..09dd1aa 100644 --- a/TODO-MCP.md +++ b/TODO-MCP.md @@ -1,3 +1,5 @@ + + # TODO-MCP — the Model Context Protocol block Planned 2026-09-23 by the lead at 0.55.0. The analysis and design are in @@ -498,3 +500,5 @@ Feature README `docs/features/mcp-read-only`. One dev (Opus), one QA item's lines through `format_range` automatically — costs a refusal path when the safety net objects. Default in this plan: not automatic; the agent calls `format` with `lines`. + + diff --git a/TODO.md b/TODO.md index 44a074d..727348c 100644 --- a/TODO.md +++ b/TODO.md @@ -1,3 +1,5 @@ + + # TODO — best practices adopted from ruff and Verible Curated backlog for lucisv, drawn from `astral-sh/ruff` (architecture, CLI/UX, @@ -7524,3 +7526,5 @@ feature README `docs/features/instance-folding/README.md`. - [x] `editors/vscode/README.md`: the sticky-scroll row names the instance. - [x] Seen in a running VS Code (owner, 2026-11-19, on the local 0.66.1 build). Shipped as 0.66.1. + + diff --git a/crates/lucisv/Cargo.toml b/crates/lucisv/Cargo.toml index 908ff73..e80c16c 100644 --- a/crates/lucisv/Cargo.toml +++ b/crates/lucisv/Cargo.toml @@ -1,3 +1,5 @@ +# Author: Guoliang Chen, a Senior Digital Design Engineer + [package] name = "lucisv" version.workspace = true @@ -15,3 +17,5 @@ vlog_parser = { path = "../vlog_parser" } vlog_formatter = { path = "../vlog_formatter" } vlog_linter = { path = "../vlog_linter" } rayon = { workspace = true } + +# Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv/src/args.rs b/crates/lucisv/src/args.rs index b443278..3207a8a 100644 --- a/crates/lucisv/src/args.rs +++ b/crates/lucisv/src/args.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Hand-rolled command line parsing for the `lucisv` binary. use lucisv_core::cache; @@ -751,3 +753,5 @@ mod tests { assert!(!parse(&["check", "rtl"]).unwrap().rules_doc); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv/src/diff.rs b/crates/lucisv/src/diff.rs index a9e6ff6..537b4e3 100644 --- a/crates/lucisv/src/diff.rs +++ b/crates/lucisv/src/diff.rs @@ -1,5 +1,9 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `--diff`'s unified diff. The printer lives in `lucisv_core::diff`, shared //! with the MCP server's `dry_run` (Handshake MCP-1, a pure move); this module //! keeps the CLI's `diff::unified` path. pub use lucisv_core::diff::unified; + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv/src/lint.rs b/crates/lucisv/src/lint.rs index 12393f8..91eeceb 100644 --- a/crates/lucisv/src/lint.rs +++ b/crates/lucisv/src/lint.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The `lucisv check` driver: lint files, print diagnostics, apply fixes. //! //! Everything about *which* files are linted — the walk, `--exclude`, @@ -880,3 +882,5 @@ mod tests { assert_eq!(quote("bell\u{7}"), "\"bell\\u0007\""); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv/src/main.rs b/crates/lucisv/src/main.rs index 9818e97..c2febf8 100644 --- a/crates/lucisv/src/main.rs +++ b/crates/lucisv/src/main.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! lucisv — a Verilog/SystemVerilog formatter and linter in the spirit of //! `ruff format` and `ruff check`. //! @@ -666,3 +668,5 @@ mod tests { assert!(err.contains("parse error"), "{err}"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv/tests/cli.rs b/crates/lucisv/tests/cli.rs index 0ab7e50..b238f48 100644 --- a/crates/lucisv/tests/cli.rs +++ b/crates/lucisv/tests/cli.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! End-to-end tests that drive the real `lucisv` binary. //! //! Fixtures use the most trivial Verilog possible so these tests stay @@ -2463,3 +2465,5 @@ fn text_that_merely_says_package_changes_no_finding() { "{plain}\n---\n{with_noise}" ); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv/tests/style_cli.rs b/crates/lucisv/tests/style_cli.rs index ad9bd02..71b3cb3 100644 --- a/crates/lucisv/tests/style_cli.rs +++ b/crates/lucisv/tests/style_cli.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `--style` and `[format] style` through the real `lucisv` binary: the //! flag, the config key, their precedence over each other and under the //! explicit `indent`/`line-length`, the error for a name that is not a @@ -169,3 +171,5 @@ fn changing_the_style_invalidates_the_cache_entry() { let out = run(&["--check", &path, "--cache-dir", &cache]); assert_eq!(code(&out), 1, "{}", stderr(&out)); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_core/Cargo.toml b/crates/lucisv_core/Cargo.toml index fe96e65..0a4ae37 100644 --- a/crates/lucisv_core/Cargo.toml +++ b/crates/lucisv_core/Cargo.toml @@ -1,3 +1,5 @@ +# Author: Guoliang Chen, a Senior Digital Design Engineer + [package] name = "lucisv_core" version.workspace = true @@ -10,3 +12,5 @@ name = "lucisv_core" path = "src/lib.rs" [dependencies] + +# Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_core/src/atomic.rs b/crates/lucisv_core/src/atomic.rs index 4a2abfb..98b4f6e 100644 --- a/crates/lucisv_core/src/atomic.rs +++ b/crates/lucisv_core/src/atomic.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Replacing a file's contents without ever leaving it half written. //! //! `fs::write` truncates the target and then writes into it, so a crash, a @@ -449,3 +451,5 @@ mod tests { assert_eq!(fs::metadata(&target).expect("stat").permissions().mode() & 0o777, 0o600); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_core/src/cache.rs b/crates/lucisv_core/src/cache.rs index 163fd0d..d423738 100644 --- a/crates/lucisv_core/src/cache.rs +++ b/crates/lucisv_core/src/cache.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The "already formatted" cache: a per-path record of content that a //! previous run verified is a fixed point, so a repeat run can skip the //! file entirely. @@ -539,3 +541,5 @@ mod tests { assert!(!Cache::load(&dir.path).is_clean(&weird, entry(1))); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_core/src/config.rs b/crates/lucisv_core/src/config.rs index 55258c7..fdcddc9 100644 --- a/crates/lucisv_core/src/config.rs +++ b/crates/lucisv_core/src/config.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `lucisv.toml` / `.lucisv.toml` discovery and its TOML-subset parser. //! //! Only what a small config file needs is supported (comments, `key = int`, @@ -987,3 +989,5 @@ exclude = [ \"build\", \"*_gen.sv\", ] assert_eq!(discovery.for_file(Path::new("y.sv")).unwrap().indent, Some(4)); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_core/src/diff.rs b/crates/lucisv_core/src/diff.rs index 0d595b7..1fc7b6e 100644 --- a/crates/lucisv_core/src/diff.rs +++ b/crates/lucisv_core/src/diff.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! A small line-oriented unified diff: the CLI's `--diff` and the MCP //! server's `dry_run` print the same hunks through this one function. //! Moved here from `crates/lucisv/src/diff.rs` unchanged (Handshake MCP-1, @@ -219,3 +221,5 @@ mod tests { assert!(d.contains("-a\n-b\n+x\n+y\n"), "{d}"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_core/src/filelist.rs b/crates/lucisv_core/src/filelist.rs index fc0a4f2..bb35572 100644 --- a/crates/lucisv_core/src/filelist.rs +++ b/crates/lucisv_core/src/filelist.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! EDA filelist (`-f`) parsing: the project file every Verilog build //! already has. //! @@ -591,3 +593,5 @@ missing.sv assert_eq!(list.warnings.len(), 2, "{:?}", list.warnings); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_core/src/lib.rs b/crates/lucisv_core/src/lib.rs index cfe5a57..297aaa8 100644 --- a/crates/lucisv_core/src/lib.rs +++ b/crates/lucisv_core/src/lib.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The parts of lucisv that decide *which* files are processed and *with what //! settings*, shared by the `lucisv` CLI and the `lucisv-server` language server. //! @@ -20,3 +22,5 @@ pub mod config; pub mod diff; pub mod filelist; pub mod walk; + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_core/src/walk.rs b/crates/lucisv_core/src/walk.rs index d783e78..ef13ca2 100644 --- a/crates/lucisv_core/src/walk.rs +++ b/crates/lucisv_core/src/walk.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! File discovery: directory walking, `--exclude` matching and the //! `.gitignore` subset documented in //! `docs/features/parallel-files/README.md`. @@ -1103,3 +1105,5 @@ mod tests { assert!(!tracker.has_conflict()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/Cargo.toml b/crates/lucisv_mcp/Cargo.toml index df4d522..4e06a13 100644 --- a/crates/lucisv_mcp/Cargo.toml +++ b/crates/lucisv_mcp/Cargo.toml @@ -1,3 +1,5 @@ +# Author: Guoliang Chen, a Senior Digital Design Engineer + [package] name = "lucisv_mcp" version.workspace = true @@ -21,3 +23,5 @@ vlog_formatter = { path = "../vlog_formatter" } vlog_linter = { path = "../vlog_linter" } serde = { workspace = true, features = ["derive"] } serde_json = { workspace = true } + +# Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/apply.rs b/crates/lucisv_mcp/src/apply.rs index e644560..31ea0ff 100644 --- a/crates/lucisv_mcp/src/apply.rs +++ b/crates/lucisv_mcp/src/apply.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The one write path every edit tool goes through. //! //! A tool hands over a [`Plan`] — per file, the text it computed against and @@ -361,3 +363,5 @@ mod tests { fs::remove_dir_all(dir).unwrap(); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/cache.rs b/crates/lucisv_mcp/src/cache.rs index 2b3539c..d082f35 100644 --- a/crates/lucisv_mcp/src/cache.rs +++ b/crates/lucisv_mcp/src/cache.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The index caches a startup reads instead of parsing (PLAN §6): the //! language server's `index-cache`, **read only, never written**, and this //! server's own `index-cache-mcp` beside it, in the same codec, written once @@ -221,3 +223,5 @@ fn store_lines(bytes: &[u8]) -> Vec<&[u8]> { #[cfg(test)] mod tests; + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/cache/tests.rs b/crates/lucisv_mcp/src/cache/tests.rs index ec866cf..7a03477 100644 --- a/crates/lucisv_mcp/src/cache/tests.rs +++ b/crates/lucisv_mcp/src/cache/tests.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The caches against the rebuild oracle: an index started from records is //! the index a cold build over the same files makes //! (`WorkspaceIndex::fingerprint`), and every record that is not exactly @@ -141,3 +143,5 @@ fn a_record_filed_under_another_path_or_hash_is_not_taken() { assert!(parse("0000000000000007\tx").is_none(), "no checksum"); assert!(parse("7\tx\t0000000000000000").is_none(), "a hash of the wrong width"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/main.rs b/crates/lucisv_mcp/src/main.rs index a226930..6a53be3 100644 --- a/crates/lucisv_mcp/src/main.rs +++ b/crates/lucisv_mcp/src/main.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `lucisv-mcp` — lucisv as a Model Context Protocol server, over stdio. //! //! A coding agent (Claude Code, Cursor, VS Code's agent mode) spawns this @@ -142,3 +144,5 @@ mod tests { assert_eq!(parse(&[]).unwrap(), Options::default()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/project/analysis.rs b/crates/lucisv_mcp/src/project/analysis.rs index 487cd8f..dcb72ee 100644 --- a/crates/lucisv_mcp/src/project/analysis.rs +++ b/crates/lucisv_mcp/src/project/analysis.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! One file, fully analyzed, and a small cache of them keyed by content. //! //! The index answers workspace questions without keeping any file's text; @@ -140,3 +142,5 @@ mod tests { assert!(cache.get(Path::new("a"), 1).is_none()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/project/files.rs b/crates/lucisv_mcp/src/project/files.rs index 538102c..b47eaeb 100644 --- a/crates/lucisv_mcp/src/project/files.rs +++ b/crates/lucisv_mcp/src/project/files.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Which files the project is made of, and what each one looked like when it //! was last read: the filelist-or-walk ladder of PLAN §4.4 over //! `lucisv_core`, and the per-file stamp the freshness sweep compares against. @@ -508,3 +510,5 @@ mod tests { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/project/mod.rs b/crates/lucisv_mcp/src/project/mod.rs index 5d96f43..a32207f 100644 --- a/crates/lucisv_mcp/src/project/mod.rs +++ b/crates/lucisv_mcp/src/project/mod.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The project one server answers about: its roots, its files, the workspace //! index over them, and the promise that no answer is older than the disk //! was when the call arrived (PLAN §4.4). @@ -359,3 +361,5 @@ fn relative_to(roots: &[PathBuf], path: &Path) -> String { #[cfg(test)] mod tests; + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/project/tests.rs b/crates/lucisv_mcp/src/project/tests.rs index 2c96559..de57679 100644 --- a/crates/lucisv_mcp/src/project/tests.rs +++ b/crates/lucisv_mcp/src/project/tests.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The freshness promise, against the rebuild oracle: after every update //! path the incrementally maintained index is the index a full build over //! the files now on disk produces (`WorkspaceIndex::fingerprint`). @@ -106,3 +108,5 @@ fn a_path_argument_must_land_inside_a_root() { fs::remove_dir_all(dir).unwrap(); fs::remove_dir_all(outside).unwrap(); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/render.rs b/crates/lucisv_mcp/src/render.rs index bdc6819..51a1ea9 100644 --- a/crates/lucisv_mcp/src/render.rs +++ b/crates/lucisv_mcp/src/render.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The rendering rules every tool's text answer follows (PLAN §10.2): the //! token budget is the product. //! @@ -205,3 +207,5 @@ mod tests { assert_eq!(by_file(&sites), ["b.sv:3,9", "a.sv:1"]); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/resources.rs b/crates/lucisv_mcp/src/resources.rs index d13ea24..db724b9 100644 --- a/crates/lucisv_mcp/src/resources.rs +++ b/crates/lucisv_mcp/src/resources.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The `lucisv://` resources: the project overview, the lint rule //! reference, one unit's outline and one file's outline — the same answers //! `hierarchy` and `outline` give, addressable by URI for a host that @@ -176,3 +178,5 @@ mod tests { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/rpc.rs b/crates/lucisv_mcp/src/rpc.rs index fba191a..02e6c1f 100644 --- a/crates/lucisv_mcp/src/rpc.rs +++ b/crates/lucisv_mcp/src/rpc.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The JSON-RPC 2.0 envelope and the MCP methods this server answers: the //! `initialize` handshake and its version negotiation, `ping`, the tool //! methods, the `lucisv://` resources, and an empty prompt list. @@ -421,3 +423,5 @@ mod tests { assert!(bad_tool["error"]["message"].as_str().unwrap().contains("nope")); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/tools/declared.rs b/crates/lucisv_mcp/src/tools/declared.rs index b510556..64ac79c 100644 --- a/crates/lucisv_mcp/src/tools/declared.rs +++ b/crates/lucisv_mcp/src/tools/declared.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The declarations the files' own symbol tables hold — every one the //! semantic model knows and `outline` lists: typedefs, enum values, //! functions, tasks, genvars, generate blocks and what they declare, @@ -94,3 +96,5 @@ fn unit_at(items: &[Item], span: TextRange) -> Option<&str> { let inner = child_items(&item.kind).into_iter().find_map(|items| unit_at(items, span)); inner.or(own.filter(|(_, name_span)| *name_span != span).map(|(name, _)| name)) } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/tools/diagnostics.rs b/crates/lucisv_mcp/src/tools/diagnostics.rs index 0801e16..abb02be 100644 --- a/crates/lucisv_mcp/src/tools/diagnostics.rs +++ b/crates/lucisv_mcp/src/tools/diagnostics.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `check`: what `lucisv check` would say about one file or the whole //! design — the tolerant parse's errors, then the lint findings — one line //! each, `file:line:col severity message [rule]`, errors first. @@ -325,3 +327,5 @@ impl MentionOracle for Mentions<'_> { PackageExports::exports(self.index, package) } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/tools/edit.rs b/crates/lucisv_mcp/src/tools/edit.rs index bebb110..00d168b 100644 --- a/crates/lucisv_mcp/src/tools/edit.rs +++ b/crates/lucisv_mcp/src/tools/edit.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `rename`, and what every design-wide edit shares: the whole-set read the //! engines are handed, and the step from a verified `RefactorEdit` to a //! written plan with the name's unresolved mentions listed. @@ -221,3 +223,5 @@ fn written_ranges(edits: &[TextEdit]) -> Vec { } out } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/tools/find.rs b/crates/lucisv_mcp/src/tools/find.rs index 670d8f8..88ada44 100644 --- a/crates/lucisv_mcp/src/tools/find.rs +++ b/crates/lucisv_mcp/src/tools/find.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `find`: where a name is declared and, on `refs`, where each declaration //! is used — the question an agent otherwise answers by grepping and //! reading. Declarations come from the index (`names.rs`); uses from @@ -197,3 +199,5 @@ mod tests { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/tools/format.rs b/crates/lucisv_mcp/src/tools/format.rs index d32a109..c3e26a3 100644 --- a/crates/lucisv_mcp/src/tools/format.rs +++ b/crates/lucisv_mcp/src/tools/format.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `format`: the CLI's `lucisv format` over a path or a glob, and with //! `fix` the CLI's `lucisv check --fix` first — each file through the one //! write path (`apply.rs`). @@ -218,3 +220,5 @@ mod tests { assert!(formatter_config(&auto).auto_style); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/tools/glob.rs b/crates/lucisv_mcp/src/tools/glob.rs index bfff8ad..09feebe 100644 --- a/crates/lucisv_mcp/src/tools/glob.rs +++ b/crates/lucisv_mcp/src/tools/glob.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Path globs, as `format`'s `files` takes them: `*` and `?` within one //! path component, `**` for any run of components, and a bare directory //! for everything below it — the `.gitignore` / `rg -g` reading. @@ -100,3 +102,5 @@ mod tests { assert!(!path_match("ip/**", "hw/ip/aes.sv")); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/tools/hierarchy.rs b/crates/lucisv_mcp/src/tools/hierarchy.rs index b0be46b..26b9ee4 100644 --- a/crates/lucisv_mcp/src/tools/hierarchy.rs +++ b/crates/lucisv_mcp/src/tools/hierarchy.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `hierarchy`: the project's shape. Without a `root`, the counts and the //! top modules; with one, the instance tree down from it or every //! instantiation of it up to `depth` levels — read off the index's @@ -369,3 +371,5 @@ fn statement(project: &Project, texts: &mut Texts, child: &Child) -> Vec } out } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/tools/interface.rs b/crates/lucisv_mcp/src/tools/interface.rs index 96cbb6f..95d6565 100644 --- a/crates/lucisv_mcp/src/tools/interface.rs +++ b/crates/lucisv_mcp/src/tools/interface.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `outline unit:` — what a unit offers the code that uses it: a module's //! or interface's parameters and ports in declaration order (plus an //! interface's modports), a package's or class's members — without the @@ -228,3 +230,5 @@ fn class_base(items: &[Item], name_span: TextRange) -> Option { } child_items(&item.kind).into_iter().find_map(|items| class_base(items, name_span)) } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/tools/item.rs b/crates/lucisv_mcp/src/tools/item.rs index 2222a82..1e5cff4 100644 --- a/crates/lucisv_mcp/src/tools/item.rs +++ b/crates/lucisv_mcp/src/tools/item.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `edit_item` — the structural edits under one name (`replace`, //! `insert_before`, `insert_after`, `delete`), the general token saver: an //! agent sends one item's text, never the file. @@ -373,3 +375,5 @@ fn end_spot(analysis: &Analysis, unit: &str, file: &str) -> Result /// The keywords that close a unit `end` may name. const END_WORDS: &[&str] = &["endmodule", "endinterface", "endprogram", "endpackage", "endclass"]; + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/tools/item/lexical.rs b/crates/lucisv_mcp/src/tools/item/lexical.rs index 929e314..684526e 100644 --- a/crates/lucisv_mcp/src/tools/item/lexical.rs +++ b/crates/lucisv_mcp/src/tools/item/lexical.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The verifier's lexical rules — what a splice may do to the token stream //! and its comments, before any parse is asked: //! @@ -173,3 +175,5 @@ fn markers(tokens: &[Token], start: u32, end: u32) -> Vec<&str> { .map(|e| e.text.trim()) .collect() } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/tools/item/macros.rs b/crates/lucisv_mcp/src/tools/item/macros.rs index d6e5861..5210a9b 100644 --- a/crates/lucisv_mcp/src/tools/item/macros.rs +++ b/crates/lucisv_mcp/src/tools/item/macros.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `op: delete`'s macro rule: a name spelled inside a macro call's //! arguments (`` `ASSERT_KNOWN(k, sig) ``) or a `` `define`` body is a use //! no lucisv engine resolves — the lexer keeps a macro call as one token and @@ -106,3 +108,5 @@ mod tests { assert!(spellings("`define S \"sig\"\n", "sig").is_empty(), "a string is not a use"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/tools/item/refs.rs b/crates/lucisv_mcp/src/tools/item/refs.rs index bde85d2..e484f15 100644 --- a/crates/lucisv_mcp/src/tools/item/refs.rs +++ b/crates/lucisv_mcp/src/tools/item/refs.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `edit_item op: delete`'s reference rule: an item is not deleted while a //! name it owns (`verify::owned`) is still used anywhere in the project. //! @@ -260,3 +262,5 @@ fn position(project: &Project, set: &WholeSet, file: &Path, span: TextRange) -> let (line, col) = LineIndex::new(text).line_col(span.start); format!("{}:{line}:{col}", project.relative(file)) } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/tools/item/span.rs b/crates/lucisv_mcp/src/tools/item/span.rs index 9aff1d3..625fedf 100644 --- a/crates/lucisv_mcp/src/tools/item/span.rs +++ b/crates/lucisv_mcp/src/tools/item/span.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Which bytes an item owns: the lines `edit_item`'s inserts and deletes //! work on, and the span its `replace` replaces when its text brings comments. //! @@ -155,3 +157,5 @@ mod tests { assert_eq!(slice(replace_region(src, item, "logic b;\n// own line")), "logic a;"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/tools/item/star.rs b/crates/lucisv_mcp/src/tools/item/star.rs index ba30558..1262196 100644 --- a/crates/lucisv_mcp/src/tools/item/star.rs +++ b/crates/lucisv_mcp/src/tools/item/star.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `op: delete`'s implicit-connection rule: a `.*` binds a signal without //! spelling it, so `find_references` (which returns only spans that spell //! the name) never lists it. For each deleted name, every `.*` @@ -94,3 +96,5 @@ fn binds(index: &WorkspaceIndex, module: &str, name: &str) -> Option { } Some(index.member(module, name).iter().any(|def| def.kind == SymbolKind::Port)) } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/tools/item/verify.rs b/crates/lucisv_mcp/src/tools/item/verify.rs index cdac3a2..bf9f5f7 100644 --- a/crates/lucisv_mcp/src/tools/item/verify.rs +++ b/crates/lucisv_mcp/src/tools/item/verify.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The verifier the three structural edits share — the one new piece of //! logic in the MCP block, so it is guilty until proven innocent: every rule //! here has an attack in `tests/attacks.rs`. @@ -573,3 +575,5 @@ mod tests { assert!(owned_names(&analysis, always).is_empty()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/tools/mentions.rs b/crates/lucisv_mcp/src/tools/mentions.rs index 9821f58..5c04eaf 100644 --- a/crates/lucisv_mcp/src/tools/mentions.rs +++ b/crates/lucisv_mcp/src/tools/mentions.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Unresolved mentions: every whole-word spelling of a name that no engine //! answer accounted for and that sits where no lucisv engine looks — inside //! a string literal, a comment, a macro call's text, a `` `define`` body, or @@ -345,3 +347,5 @@ mod tests { assert_eq!(shared_components(a, b), 4); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/tools/mod.rs b/crates/lucisv_mcp/src/tools/mod.rs index 0d41e98..70e8242 100644 --- a/crates/lucisv_mcp/src/tools/mod.rs +++ b/crates/lucisv_mcp/src/tools/mod.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The tool registry: every tool's name, description, argument list and //! handler, in one table. The argument list is the single source of both the //! `inputSchema` a host shows the agent and the validation a call's @@ -313,3 +315,5 @@ mod tests { assert_eq!(schema(hierarchy.params)["properties"]["depth"], json!({"type": "integer"})); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/tools/names.rs b/crates/lucisv_mcp/src/tools/names.rs index f84504f..bc96f70 100644 --- a/crates/lucisv_mcp/src/tools/names.rs +++ b/crates/lucisv_mcp/src/tools/names.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Names looked up — the by-name half every lean tool shares: every //! declaration of a name (the index's units, exported members and module //! internals, every declaration the files' own symbol tables hold, and the @@ -232,3 +234,5 @@ mod tests { assert_eq!(qualified(".x"), (None, ".x")); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/tools/outline.rs b/crates/lucisv_mcp/src/tools/outline.rs index a6f78fa..1c329fb 100644 --- a/crates/lucisv_mcp/src/tools/outline.rs +++ b/crates/lucisv_mcp/src/tools/outline.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `outline`: a file's declarations as a tree with line ranges (its parse //! errors first), or — for `unit` — what a unit offers the code that uses //! it (`interface.rs`), so an agent reads the shape before the source. @@ -59,3 +61,5 @@ fn tree(analysis: &Analysis, nodes: &[DocumentSymbol], level: usize, out: &mut V tree(analysis, &node.children, level + 1, out); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/tools/place.rs b/crates/lucisv_mcp/src/tools/place.rs index bbf9bef..f28517d 100644 --- a/crates/lucisv_mcp/src/tools/place.rs +++ b/crates/lucisv_mcp/src/tools/place.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `port`'s `after`: the new port placed right after a named one, in the //! layout of the line it follows, and each named connection placed right //! after the instance's `.after(…)`. @@ -446,3 +448,5 @@ mod tests { assert_eq!(appended_expr(".e(x)", "d"), None); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/tools/place/slot.rs b/crates/lucisv_mcp/src/tools/place/slot.rs index 2c573bd..2a06148 100644 --- a/crates/lucisv_mcp/src/tools/place/slot.rs +++ b/crates/lucisv_mcp/src/tools/place/slot.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Where a new list element goes after its anchor, and how it is written. //! //! The element always goes **after the separator that follows the anchor** @@ -304,3 +306,5 @@ mod tests { assert_eq!(split_declaration("input dbg_i").unwrap().ty, ""); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/tools/place/verify.rs b/crates/lucisv_mcp/src/tools/place/verify.rs index 59e6fd3..b9219a0 100644 --- a/crates/lucisv_mcp/src/tools/place/verify.rs +++ b/crates/lucisv_mcp/src/tools/place/verify.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The check a placement must pass before anything is written: the placed //! edit is the engine's verified edit with elements **moved and nothing //! else**. Per file, against the engine's result: @@ -308,3 +310,5 @@ mod tests { ); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/tools/port.rs b/crates/lucisv_mcp/src/tools/port.rs index 8e62475..ab85a98 100644 --- a/crates/lucisv_mcp/src/tools/port.rs +++ b/crates/lucisv_mcp/src/tools/port.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `port`: add a port to a module and connect it by name in every //! instantiation, or remove one and its connection everywhere — the //! design-wide edit a file write cannot do safely. `add` is @@ -144,3 +146,5 @@ fn instantiations(project: &Project, module: &str) -> (usize, usize) { let files: BTreeSet<_> = edges.iter().map(|edge| edge.file).collect(); (count, files.len()) } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/tools/read.rs b/crates/lucisv_mcp/src/tools/read.rs index 1e5ed21..88d130e 100644 --- a/crates/lucisv_mcp/src/tools/read.rs +++ b/crates/lucisv_mcp/src/tools/read.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `read`: one item's exact source — a slice, never the file — preceded by //! `file:first–last`. In a named `file` the item is sliced as //! `read_item::select` slices it; without one the name is looked up @@ -78,3 +80,5 @@ fn locate(project: &mut Project, selector: &str) -> Result { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/tools/read_item.rs b/crates/lucisv_mcp/src/tools/read_item.rs index fa03bb3..5097b8a 100644 --- a/crates/lucisv_mcp/src/tools/read_item.rs +++ b/crates/lucisv_mcp/src/tools/read_item.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The item slicer `read` and `edit_item` share: one item's exact span in //! a file — a module, a function, a declaration, an instance, or an //! unlabelled `always` block named by the line it covers. @@ -317,3 +319,5 @@ module n; logic q; endmodule assert!(refused.contains("`\\b` on line 12"), "{refused}"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/tools/source.rs b/crates/lucisv_mcp/src/tools/source.rs index 164e3f1..3924822 100644 --- a/crates/lucisv_mcp/src/tools/source.rs +++ b/crates/lucisv_mcp/src/tools/source.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Declaration sites read back off the disk: `find` and the by-name tools //! answer with `file:line` for declarations in files no analysis is held //! for. One read per file per call ([`Texts`]); the index's spans are @@ -271,3 +273,5 @@ mod tests { assert_eq!(capped("x y", 3), "x y"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/src/transport.rs b/crates/lucisv_mcp/src/transport.rs index 9b3eaa2..0df0037 100644 --- a/crates/lucisv_mcp/src/transport.rs +++ b/crates/lucisv_mcp/src/transport.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The MCP stdio transport: one JSON-RPC message per line in, one per line //! out. stdout carries protocol lines and nothing else; stderr is the log. //! @@ -93,3 +95,5 @@ mod tests { assert_eq!(written, "{\"text\":\"a\\nb\"}\n"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/tests/attacks.rs b/crates/lucisv_mcp/tests/attacks.rs index 2aa060a..af3ce26 100644 --- a/crates/lucisv_mcp/tests/attacks.rs +++ b/crates/lucisv_mcp/tests/attacks.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The dev's attack suite on the structural edits' verifier (lane M4) — //! CLAUDE.md invariant 4 applied to the MCP block's own safety net: every //! case is an edit the verifier could plausibly let through, asserted @@ -784,3 +786,5 @@ fn a_signal_bound_by_a_dot_star_is_still_referenced() { let clk = json!({"file": "rtl/sw.sv", "item": "clk"}); refused(&tree, &mut server, "delete_item", clk, "bound by `.*` at rtl/sw.sv:7:18 `clk`"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/tests/cache.rs b/crates/lucisv_mcp/tests/cache.rs index 78f1b00..96da25a 100644 --- a/crates/lucisv_mcp/tests/cache.rs +++ b/crates/lucisv_mcp/tests/cache.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The index caches over the wire (TODO-MCP M6, PLAN §6): the language //! server's `index-cache` is read and never written — its bytes are hashed //! before and after a whole session that indexes, answers and edits — every @@ -276,3 +278,5 @@ fn an_unwritable_cache_directory_still_answers_and_says_so_on_exit() { assert_eq!(stderr.matches("cannot write the index cache").count(), 1, "{stderr}"); assert!(fs::read_dir(scratch.cache()).unwrap().next().is_none(), "nothing was written"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/tests/hierarchy_cap.rs b/crates/lucisv_mcp/tests/hierarchy_cap.rs index 51034b9..68eafe4 100644 --- a/crates/lucisv_mcp/tests/hierarchy_cap.rs +++ b/crates/lucisv_mcp/tests/hierarchy_cap.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The `hierarchy` cap counts instances, never `peek` lines (census round 5, //! 2026-09-29): an agent asking for every instantiation of a module with //! `peek` gets every one up to 100 (300 without `peek`), each with its @@ -135,3 +137,5 @@ fn over_100_instances_with_peek_shows_100_and_over_300_without_shows_300() { assert_eq!(plain.lines().count(), 301); assert!(plain.ends_with("\n… and 51 more\n"), "{plain}"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/tests/opentitan.rs b/crates/lucisv_mcp/tests/opentitan.rs index 6615973..bbe1568 100644 --- a/crates/lucisv_mcp/tests/opentitan.rs +++ b/crates/lucisv_mcp/tests/opentitan.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The opentitan census (TODO-MCP M2, ported to the lean catalogue in M7): //! `find`, `hierarchy`, `check` and `outline` over a real checkout, //! read-only, each answer checked against what the language server answers @@ -288,3 +290,5 @@ fn opentitan_startup_cold_and_warm_and_the_stat_sweep() { let _ = std::fs::remove_dir_all(&cache); assert_eq!(status(&root), before, "the checkout was only read"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/tests/qa_f1.rs b/crates/lucisv_mcp/tests/qa_f1.rs index bc1f16c..28ccc02 100644 --- a/crates/lucisv_mcp/tests/qa_f1.rs +++ b/crates/lucisv_mcp/tests/qa_f1.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! QA attacks on lane feedback-1 (unresolved mentions, `add_port`'s `after` //! and its move-checker, the trimmed catalogue, the temp-store sweep), //! 2026-09-23 — ported to the lean catalogue: `add_port` is `port` with @@ -696,3 +698,5 @@ fn qa_the_sweep_takes_only_old_files_of_the_exact_temp_name() { } assert!(dir.join("inside").is_dir(), "a directory is never swept"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/tests/qa_f2.rs b/crates/lucisv_mcp/tests/qa_f2.rs index a190426..abdbd9d 100644 --- a/crates/lucisv_mcp/tests/qa_f2.rs +++ b/crates/lucisv_mcp/tests/qa_f2.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! QA attacks on lane feedback-2 (the count line on every paged answer, the //! `in` path glob, the post-edit check line), 2026-09-23 — ported to the //! lean catalogue: paging, `in` and the check line are gone (PLAN §10.2), @@ -282,3 +284,5 @@ fn qa_the_glob_matches_paths_never_names_even_escaped_ones_holding_a_star() { assert_eq!(formatted("esc/*.sv"), "1"); assert!(formatted("\\esc*mod").contains("\\esc*mod"), "a unit name is not a path"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/tests/qa_m1.rs b/crates/lucisv_mcp/tests/qa_m1.rs index d2767c6..12342e0 100644 --- a/crates/lucisv_mcp/tests/qa_m1.rs +++ b/crates/lucisv_mcp/tests/qa_m1.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! QA attacks on lane M1 (transport + read tools), 2026-09-23. //! //! Every test spawns the real binary over a scratch tree, as a host would. @@ -954,3 +956,5 @@ fn qa_rework_a_rename_over_with_an_old_mtime_and_the_same_size_is_seen() { set_mtime(&scratch.path("c.sv"), long_ago); assert_eq!(s.text("find", json!({"name": "chyrlie"})), "module chyrlie c.sv:1\n"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/tests/qa_m2.rs b/crates/lucisv_mcp/tests/qa_m2.rs index 1f63217..6fd2e1c 100644 --- a/crates/lucisv_mcp/tests/qa_m2.rs +++ b/crates/lucisv_mcp/tests/qa_m2.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! QA attacks on lane M2 (navigation, diagnostics, defines, resources), //! 2026-09-23 — ported to the lean catalogue (`find`, `hierarchy`, `check`; //! `docs/features/mcp-lean-catalogue/README.md` lists what was deleted: the @@ -796,3 +798,5 @@ fn qa_recheck_one_files_check_is_its_lines_of_lucisv_check_dot() { ); assert_eq!(s.text("check", json!({"file": "leaf.sv"})), "ok\n"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/tests/qa_m3.rs b/crates/lucisv_mcp/tests/qa_m3.rs index 5aa31b8..72d323f 100644 --- a/crates/lucisv_mcp/tests/qa_m3.rs +++ b/crates/lucisv_mcp/tests/qa_m3.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! QA attacks on lane M3 (the edit tools and their one write path), //! 2026-09-23 — ported to the lean catalogue (`rename`, `port`, //! `edit_item`, `format`); the tools it dropped took their attacks with @@ -1226,3 +1228,5 @@ fn qa_a_large_file_behind_a_link_out_of_the_root_is_not_in_the_skipped_set() { let text = text_of(&server.rename_d()); assert!(!text.contains(outside.root()), "{text}"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/tests/qa_m4.rs b/crates/lucisv_mcp/tests/qa_m4.rs index 7ac4277..3c7af22 100644 --- a/crates/lucisv_mcp/tests/qa_m4.rs +++ b/crates/lucisv_mcp/tests/qa_m4.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! QA attacks on lane M4 (the structural edits and their verifier), //! 2026-09-23. //! @@ -1308,3 +1310,5 @@ fn qa_recheck_a_define_item_may_be_inserted_but_not_nested_in_an_always() { } assert!(strict(&tree.read("rtl/d.sv"))); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/tests/qa_m6.rs b/crates/lucisv_mcp/tests/qa_m6.rs index 716e2ac..972bdfc 100644 --- a/crates/lucisv_mcp/tests/qa_m6.rs +++ b/crates/lucisv_mcp/tests/qa_m6.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! QA attacks on lane M6 (the index caches and the rule-6 ruling), //! 2026-09-23. //! @@ -702,3 +704,5 @@ fn qa_the_instructions_are_short_and_name_only_real_tools() { assert!(text.contains(phrase), "{phrase}: {text}"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/tests/qa_m7.rs b/crates/lucisv_mcp/tests/qa_m7.rs index 0257bf5..98aaa22 100644 --- a/crates/lucisv_mcp/tests/qa_m7.rs +++ b/crates/lucisv_mcp/tests/qa_m7.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! QA attacks on lane M7 (the lean catalogue), 2026-09-24. //! //! Every test writes a small design into its own scratch directory, spawns @@ -867,3 +869,5 @@ fn a_members_rename_lists_only_its_own_mentions_and_dotted_ones_elsewhere() { let found = text(&tree, "find", json!({"name": "p.W", "refs": true})); assert!(found.contains("unresolved:\n rtl/u.sv:2\n"), "a package member lists all: {found}"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/tests/qa_m8.rs b/crates/lucisv_mcp/tests/qa_m8.rs index 691b95d..e0ecc1c 100644 --- a/crates/lucisv_mcp/tests/qa_m8.rs +++ b/crates/lucisv_mcp/tests/qa_m8.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! QA attacks on lane M8 (`--read-only`), 2026-09-29. //! //! Every test copies a fixture into its own scratch directory, spawns the @@ -562,3 +564,5 @@ fn qa_the_node_cap_is_exact_at_300_and_301_plain_and_100_and_101_with_peek() { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/tests/read_only.rs b/crates/lucisv_mcp/tests/read_only.rs index 000e198..f3f98b6 100644 --- a/crates/lucisv_mcp/tests/read_only.rs +++ b/crates/lucisv_mcp/tests/read_only.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `lucisv-mcp --read-only` (PLAN §11), pinned against the real binary: the //! five read tools within their budget, the edit tools unknown, full mode as //! 0.58.0 shipped it, and the promise that nothing inside a root is created, @@ -339,3 +341,5 @@ fn the_edit_calls_write_in_full_mode() { assert_ne!(before, snapshot(&tree), "{name} wrote nothing in full mode"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_mcp/tests/wire.rs b/crates/lucisv_mcp/tests/wire.rs index 770b1d8..5e5b90e 100644 --- a/crates/lucisv_mcp/tests/wire.rs +++ b/crates/lucisv_mcp/tests/wire.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The wire contract, pinned against the real binary: each test copies the //! fixture design into its own temporary directory, spawns `lucisv-mcp` over //! it and talks newline-delimited JSON-RPC to it, as a host would. @@ -1264,3 +1266,5 @@ fn a_stale_temp_store_is_swept_and_a_young_one_and_other_files_are_spared() { assert!(young.exists(), "a young one may be a live writer's"); assert!(other.exists(), "only `..tmp` is ours to sweep"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/Cargo.toml b/crates/lucisv_server/Cargo.toml index d1443c8..a9e14a7 100644 --- a/crates/lucisv_server/Cargo.toml +++ b/crates/lucisv_server/Cargo.toml @@ -1,3 +1,5 @@ +# Author: Guoliang Chen, a Senior Digital Design Engineer + [package] name = "lucisv_server" version.workspace = true @@ -19,3 +21,5 @@ lsp-server = { workspace = true } lsp-types = { workspace = true } serde = { workspace = true } serde_json = { workspace = true } + +# Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/auto_style.rs b/crates/lucisv_server/src/auto_style.rs index 4f13e10..14d8b49 100644 --- a/crates/lucisv_server/src/auto_style.rs +++ b/crates/lucisv_server/src/auto_style.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The preset `style = "auto"` last settled on, per document. //! //! Under `auto`, every formatting request needs a concrete preset, and @@ -402,3 +404,5 @@ endmodule assert_eq!(styles.recall(&uri), None, "a whole-document format under a named style"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/candidates.rs b/crates/lucisv_server/src/candidates.rs index eb82eef..2a78376 100644 --- a/crates/lucisv_server/src/candidates.rs +++ b/crates/lucisv_server/src/candidates.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The tables a completion request reads instead of walking the workspace. //! //! Completion fires on every keystroke, so nothing here may be computed per @@ -1670,3 +1672,5 @@ mod tests { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/caret.rs b/crates/lucisv_server/src/caret.rs index 3f45b48..2b80b4e 100644 --- a/crates/lucisv_server/src/caret.rs +++ b/crates/lucisv_server/src/caret.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Which byte a "symbol under the cursor" request is about. //! //! An LSP position is a caret *between* two characters, and a span here is @@ -125,3 +127,5 @@ mod tests { assert_eq!(lands_on("é|;"), Some(';'), "a non-ASCII letter is not a name"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/code_action.rs b/crates/lucisv_server/src/code_action.rs index 28e468a..8f0755e 100644 --- a/crates/lucisv_server/src/code_action.rs +++ b/crates/lucisv_server/src/code_action.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `textDocument/codeAction` — one quick fix per Safe lint fix, plus one //! `source.fixAll.lucisv` that applies all of them in a single pass. //! @@ -476,3 +478,5 @@ mod tests { ); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/completion/buffer.rs b/crates/lucisv_server/src/completion/buffer.rs index a9434ce..9a6a2d8 100644 --- a/crates/lucisv_server/src/completion/buffer.rs +++ b/crates/lucisv_server/src/completion/buffer.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Tiers 2 and 3: what the buffer being typed in declares, and the words it //! uses (TODO §68.1, `completion-ux`). //! @@ -142,3 +144,5 @@ endmodule assert!(sort("al_used") < sort("always_ff")); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/completion/connection.rs b/crates/lucisv_server/src/completion/connection.rs index f49657f..faae233 100644 --- a/crates/lucisv_server/src/completion/connection.rs +++ b/crates/lucisv_server/src/completion/connection.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! What a connection-list entry inserts (TODO §68.1, `completion-ux`). //! //! After the `.` of `sub u_sub (.cl|` or `sub #(.WI|`, accepting a port or a @@ -100,3 +102,5 @@ mod tests { assert!(!paren_follows(".cl, .b(x)", 1)); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/completion/harness.rs b/crates/lucisv_server/src/completion/harness.rs index d4ba555..a4c32f0 100644 --- a/crates/lucisv_server/src/completion/harness.rs +++ b/crates/lucisv_server/src/completion/harness.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The completion tests' harness: a scratch workspace on disk, and the //! handful of helpers every provider's tests ask through. //! @@ -112,3 +114,5 @@ pub(super) fn find<'a>(items: &'a [CompletionItem], label: &str) -> Option<&'a C pub(super) fn labels(items: &[CompletionItem]) -> Vec<&str> { items.iter().map(|item| item.label.as_str()).collect() } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/completion/member.rs b/crates/lucisv_server/src/completion/member.rs index d1014da..12e2bf9 100644 --- a/crates/lucisv_server/src/completion/member.rs +++ b/crates/lucisv_server/src/completion/member.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The member answer: after a `.` or a `::`, the members of what stands //! before it and nothing else. //! @@ -1203,3 +1205,5 @@ endmodule assert!(items.iter().any(|i| tier(i) == TIER_WORD || tier(i) == TIER_KEYWORD)); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/completion/mod.rs b/crates/lucisv_server/src/completion/mod.rs index e77b40b..2579a42 100644 --- a/crates/lucisv_server/src/completion/mod.rs +++ b/crates/lucisv_server/src/completion/mod.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `textDocument/completion` — module hinting, templates, keywords, and every //! name the project uses. //! @@ -917,3 +919,5 @@ mod tests { ); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/completion/module.rs b/crates/lucisv_server/src/completion/module.rs index 29731c3..dd66332 100644 --- a/crates/lucisv_server/src/completion/module.rs +++ b/crates/lucisv_server/src/completion/module.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Tier 0 — module names at module-item position — and the instantiation //! planning that `inline.rs`'s ghost and `instantiate.rs`'s command share. //! @@ -921,3 +923,5 @@ endmodule assert!(vlog_refactor::module_definition(&index, "nope").is_err()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/completion/related.rs b/crates/lucisv_server/src/completion/related.rs index b9711af..01e61e0 100644 --- a/crates/lucisv_server/src/completion/related.rs +++ b/crates/lucisv_server/src/completion/related.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The **related** tier: what this file is related to through the workspace //! index, ranked above the rest of the workspace and below the file itself //! (`docs/features/fast-actions/README.md`, completion through the @@ -339,3 +341,5 @@ mod tests { assert_eq!(mid.detail.as_deref(), Some("variable — mid_c::zed_mid")); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/completion/site.rs b/crates/lucisv_server/src/completion/site.rs index e1edb67..8389fd4 100644 --- a/crates/lucisv_server/src/completion/site.rs +++ b/crates/lucisv_server/src/completion/site.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! What may be written here: the module-item gate and the statement gate, //! judged over the token stream's scope chain. //! @@ -262,3 +264,5 @@ mod tests { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/completion/tiers.rs b/crates/lucisv_server/src/completion/tiers.rs index ec5ec99..4bd5b93 100644 --- a/crates/lucisv_server/src/completion/tiers.rs +++ b/crates/lucisv_server/src/completion/tiers.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Tiers 1 to 5: the five ordinary tiers, in the order they fill the //! response. //! @@ -944,3 +946,5 @@ endmodule assert!(labels(&items).contains(&"ov_in_buffer"), "{:?}", labels(&items)); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/completion/wire.rs b/crates/lucisv_server/src/completion/wire.rs index 7f51f6b..f99ecdd 100644 --- a/crates/lucisv_server/src/completion/wire.rs +++ b/crates/lucisv_server/src/completion/wire.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! What a completion answer costs on the wire, for a client that can take //! less (`docs/features/fast-actions/README.md`, "payload"). //! @@ -146,3 +148,5 @@ mod tests { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/completion/word.rs b/crates/lucisv_server/src/completion/word.rs index 3649426..5c41980 100644 --- a/crates/lucisv_server/src/completion/word.rs +++ b/crates/lucisv_server/src/completion/word.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! What is typed: the identifier run ending at the cursor and what stands //! around it — a backtick, a `.` or a `::`, and the spine a separator //! follows. @@ -244,3 +246,5 @@ pub(super) fn line_head_is_blank(text: &str, at: u32) -> bool { let line_start = head.rfind('\n').map_or(0, |newline| newline + 1); head.get(line_start..).is_some_and(|head| head.chars().all(|c| c == ' ' || c == '\t')) } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/convert.rs b/crates/lucisv_server/src/convert.rs index 628d3f1..6086d52 100644 --- a/crates/lucisv_server/src/convert.rs +++ b/crates/lucisv_server/src/convert.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Byte offsets ↔ LSP positions. //! //! Everything below the protocol speaks UTF-8 byte offsets; LSP `Position` @@ -518,3 +520,5 @@ mod tests { }); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/design_hierarchy.rs b/crates/lucisv_server/src/design_hierarchy.rs index f3e6407..66e9151 100644 --- a/crates/lucisv_server/src/design_hierarchy.rs +++ b/crates/lucisv_server/src/design_hierarchy.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The VS Code instance-oriented design hierarchy. //! //! LSP call hierarchy deliberately groups a module's calls by target module @@ -523,3 +525,5 @@ mod tests { .unwrap_or_else(|| panic!("no module {name}: {modules:#?}")) } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/diagnostics.rs b/crates/lucisv_server/src/diagnostics.rs index c4ad7da..d5ce4a3 100644 --- a/crates/lucisv_server/src/diagnostics.rs +++ b/crates/lucisv_server/src/diagnostics.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Diagnostics, published on every buffer change. use lsp_types::{Diagnostic, DiagnosticSeverity}; @@ -199,3 +201,5 @@ mod tests { assert!(diags[0].range.start < diags[0].range.end, "must be drawable"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/expand.rs b/crates/lucisv_server/src/expand.rs index bc11505..6a58e29 100644 --- a/crates/lucisv_server/src/expand.rs +++ b/crates/lucisv_server/src/expand.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Single-step macro expansion, for hover **display** only. //! //! One step means one thing: the definition's body with the call site's @@ -430,3 +432,5 @@ mod tests { assert!(!has_macro_use("plain text")); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/extract.rs b/crates/lucisv_server/src/extract.rs index 1408b15..2c5fda1 100644 --- a/crates/lucisv_server/src/extract.rs +++ b/crates/lucisv_server/src/extract.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Extract a selection into a module of its own, on the wire: //! `textDocument/codeAction` under LSP's own `refactor.extract`, and //! `workspace/executeCommand` for the editors that have no lightbulb. @@ -464,3 +466,5 @@ endmodule assert!(run(&ws, &uri, selection(), "sum", true).is_ok()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/fences.rs b/crates/lucisv_server/src/fences.rs index c040c9d..63afead 100644 --- a/crates/lucisv_server/src/fences.rs +++ b/crates/lucisv_server/src/fences.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The fenced regions of an open buffer, asked once per document revision. //! //! `vlog_formatter::fence::protected_regions` takes **text** and parses it @@ -38,3 +40,5 @@ pub fn of(doc: &Document) -> &[Region] { pub fn held(doc: &Document) -> bool { doc.fences.get().is_some() } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/file_ops.rs b/crates/lucisv_server/src/file_ops.rs index 3baebbe..d3fbbd0 100644 --- a/crates/lucisv_server/src/file_ops.rs +++ b/crates/lucisv_server/src/file_ops.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `workspace/willRenameFiles`, `workspace/didRenameFiles` and //! `workspace/didDeleteFiles`. //! @@ -1665,3 +1667,5 @@ mod tests { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/folding.rs b/crates/lucisv_server/src/folding.rs index 5402acc..42ae4c4 100644 --- a/crates/lucisv_server/src/folding.rs +++ b/crates/lucisv_server/src/folding.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `textDocument/foldingRange`. //! //! No new analysis: a foldable region is a matched scope pair, which @@ -376,3 +378,5 @@ mod tests { assert_eq!(folds(text), vec![(1, 2, "region")]); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/folding/directives.rs b/crates/lucisv_server/src/folding/directives.rs index 9f00d14..02ba290 100644 --- a/crates/lucisv_server/src/folding/directives.rs +++ b/crates/lucisv_server/src/folding/directives.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Folding for conditional compilation: one range per branch of every //! `` `ifdef `` / `` `ifndef `` … `` `endif `` region. //! @@ -83,3 +85,5 @@ fn directive_word(text: &str) -> &str { let end = rest.find(|c: char| !c.is_ascii_alphanumeric() && c != '_').unwrap_or(rest.len()); rest.get(..end).unwrap_or("") } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/folding/ifdef_tests.rs b/crates/lucisv_server/src/folding/ifdef_tests.rs index f2570ce..00f3913 100644 --- a/crates/lucisv_server/src/folding/ifdef_tests.rs +++ b/crates/lucisv_server/src/folding/ifdef_tests.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `` `ifdef `` branch folds, through the whole [`folding_ranges`] answer so //! every test also sees how they sit beside the scope and comment folds. @@ -335,3 +337,5 @@ fn a_comment_spanning_exactly_a_branch_stays_a_comment() { ); assert_eq!(folds(text), vec![(0, 2, "comment"), (3, 4, "region")]); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/folding/instance_tests.rs b/crates/lucisv_server/src/folding/instance_tests.rs index e9b1b7f..1a35e15 100644 --- a/crates/lucisv_server/src/folding/instance_tests.rs +++ b/crates/lucisv_server/src/folding/instance_tests.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Module-instantiation folds, through the whole [`folding_ranges`] answer so //! every test also sees how they sit beside the scope, comment and branch //! folds — and, on every text, that the answer without them is exactly the @@ -611,3 +613,5 @@ fn class_and_procedural_lookalikes_are_not_instances() { ); assert!(instance_lines(text).is_empty(), "{:?}", folds(text)); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/folding/instances.rs b/crates/lucisv_server/src/folding/instances.rs index bbde25a..01bfd02 100644 --- a/crates/lucisv_server/src/folding/instances.rs +++ b/crates/lucisv_server/src/folding/instances.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Folding for module instantiations, so sticky scroll pins the instance a //! reader is wiring up: one range per multi-line instantiation statement, from //! its module-type line, and one more per instance whose name sits on a later @@ -136,3 +138,5 @@ fn matching(tokens: &[Token], at: usize, limit: u32, pair: (&str, &str)) -> Opti } None } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/folding/opentitan_sweep.rs b/crates/lucisv_server/src/folding/opentitan_sweep.rs index deef494..9dbe799 100644 --- a/crates/lucisv_server/src/folding/opentitan_sweep.rs +++ b/crates/lucisv_server/src/folding/opentitan_sweep.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The real-world proof for `` `ifdef `` and instantiation folding: every //! `.sv`/`.svh`/`.v` file under an OpenTitan `hw` tree, through //! [`folding_ranges`], with the ranges checked against the file and the @@ -546,3 +548,5 @@ fn assert_instances_complete(t: &InstanceTally) { assert_eq!(t.missing, 0, "{t:#?}"); assert_eq!(t.unexpected, 0, "{t:#?}"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/format.rs b/crates/lucisv_server/src/format.rs index ea65635..61ac66f 100644 --- a/crates/lucisv_server/src/format.rs +++ b/crates/lucisv_server/src/format.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `textDocument/formatting`, `textDocument/rangeFormatting` and //! `textDocument/rangesFormatting`. //! @@ -993,3 +995,5 @@ mod tests { assert_eq!(edit.range.end.line, 4); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/hierarchy.rs b/crates/lucisv_server/src/hierarchy.rs index ee5131b..ca91de2 100644 --- a/crates/lucisv_server/src/hierarchy.rs +++ b/crates/lucisv_server/src/hierarchy.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `textDocument/prepareCallHierarchy`, `callHierarchy/incomingCalls` and //! `callHierarchy/outgoingCalls` — the module hierarchy, both directions. //! @@ -1123,3 +1125,5 @@ endmodule assert!(worst < std::time::Duration::from_millis(1500), "incomingCalls cost {worst:?}"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/hierarchy/calls.rs b/crates/lucisv_server/src/hierarchy/calls.rs index ce7d7c7..fb1b1e6 100644 --- a/crates/lucisv_server/src/hierarchy/calls.rs +++ b/crates/lucisv_server/src/hierarchy/calls.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `incomingCalls` and `outgoingCalls` for a function or task item. //! //! A call is a *use* of the function's name that the semantic layer resolved @@ -510,3 +512,5 @@ endmodule assert_eq!(caller_of(&semantics, call.scope), None); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/hierarchy/tf.rs b/crates/lucisv_server/src/hierarchy/tf.rs index e328a30..426d8b3 100644 --- a/crates/lucisv_server/src/hierarchy/tf.rs +++ b/crates/lucisv_server/src/hierarchy/tf.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Function and task items for the call hierarchy: what the cursor names, //! what encloses it, and how an item handed back by the client is found //! again. @@ -414,3 +416,5 @@ mod tests { assert_eq!(name(at("wire")), None, "a module item is in no task"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/hover.rs b/crates/lucisv_server/src/hover.rs index 663c388..603e93e 100644 --- a/crates/lucisv_server/src/hover.rs +++ b/crates/lucisv_server/src/hover.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `textDocument/hover`. //! //! Four things can be under the cursor, tried in this order: a macro usage, a @@ -1906,3 +1908,5 @@ mod qa_hover_declarations { let _ = fs::remove_dir_all(&dir); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/imports.rs b/crates/lucisv_server/src/imports.rs index 97d308a..f57e823 100644 --- a/crates/lucisv_server/src/imports.rs +++ b/crates/lucisv_server/src/imports.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Organize imports on the wire: `textDocument/codeAction` under LSP's own //! `source.organizeImports` kind, and `workspace/executeCommand` for the //! editors that have no lightbulb. @@ -424,3 +426,5 @@ mod tests { let _ = Range::default(); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/includes.rs b/crates/lucisv_server/src/includes.rs index c9e3b61..57cd6aa 100644 --- a/crates/lucisv_server/src/includes.rs +++ b/crates/lucisv_server/src/includes.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `` `include`` lines: what they name, which file that is, and what a file //! reaches through them. //! @@ -1104,3 +1106,5 @@ mod qa_round2 { ); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/index_cache.rs b/crates/lucisv_server/src/index_cache.rs index c594104..97562f8 100644 --- a/crates/lucisv_server/src/index_cache.rs +++ b/crates/lucisv_server/src/index_cache.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The persistent index cache: what a previous session's parse of a file //! found, kept on disk so reopening a workspace does not start from zero. //! @@ -1837,3 +1839,5 @@ mod tests { ); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/inlay.rs b/crates/lucisv_server/src/inlay.rs index a5e5e78..952db14 100644 --- a/crates/lucisv_server/src/inlay.rs +++ b/crates/lucisv_server/src/inlay.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `textDocument/inlayHint` — the port and parameter names an *ordered* //! connection list leaves unwritten. //! @@ -925,3 +927,5 @@ endmodule } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/inline.rs b/crates/lucisv_server/src/inline.rs index 3d25d0e..b20fd83 100644 --- a/crates/lucisv_server/src/inline.rs +++ b/crates/lucisv_server/src/inline.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `textDocument/inlineCompletion` — the ghost text that finishes a block as //! you open it, and the instantiation that follows a module's name. //! @@ -2309,3 +2311,5 @@ sub #( ); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/inline/keywords.rs b/crates/lucisv_server/src/inline/keywords.rs index 724e677..3c3eacf 100644 --- a/crates/lucisv_server/src/inline/keywords.rs +++ b/crates/lucisv_server/src/inline/keywords.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Keyword ghosts (TODO §68.1): a typed proper prefix of a keyword shows the //! rest of it as grey text — `alw` grows `ays_ff`, Tab accepts. //! @@ -517,3 +519,5 @@ mod tests { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/inline_module.rs b/crates/lucisv_server/src/inline_module.rs index 10ab6a2..fed0a78 100644 --- a/crates/lucisv_server/src/inline_module.rs +++ b/crates/lucisv_server/src/inline_module.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Inline a module at the cursor, on the wire: `textDocument/codeAction` under //! LSP's own `refactor.inline`, and `workspace/executeCommand` for the editors //! that have no lightbulb. @@ -268,3 +270,5 @@ endmodule assert!(!crate::code_action::wanted(Some(&filter), &CodeActionKind::QUICKFIX)); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/instantiate.rs b/crates/lucisv_server/src/instantiate.rs index b528568..ef9b97c 100644 --- a/crates/lucisv_server/src/instantiate.rs +++ b/crates/lucisv_server/src/instantiate.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `lucisv.instantiate` — the instantiation skeleton as an execute command, //! for clients that have no `textDocument/inlineCompletion`. //! @@ -290,3 +292,5 @@ mod tests { assert!(execute(&ws, &[uri_value, position]).expect_err("no module").contains("module")); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/large.rs b/crates/lucisv_server/src/large.rs index 20b1506..068a626 100644 --- a/crates/lucisv_server/src/large.rs +++ b/crates/lucisv_server/src/large.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The large-file fast path: what a buffer nobody lexed can still answer. //! //! A buffer over `lucisv.largeFile.threshold` is opened by @@ -952,3 +954,5 @@ mod tests { ); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/lens.rs b/crates/lucisv_server/src/lens.rs index 8fdcf7b..7798cf9 100644 --- a/crates/lucisv_server/src/lens.rs +++ b/crates/lucisv_server/src/lens.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `textDocument/codeLens`: how often the workspace instantiates the module //! written on this line. //! @@ -759,3 +761,5 @@ endmodule ); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/linked.rs b/crates/lucisv_server/src/linked.rs index 18545d4..1999424 100644 --- a/crates/lucisv_server/src/linked.rs +++ b/crates/lucisv_server/src/linked.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `textDocument/linkedEditingRange`: a closing label edits with the name it //! repeats. //! @@ -911,3 +913,5 @@ mod tests { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/lint.rs b/crates/lucisv_server/src/lint.rs index a9820bc..f850d6c 100644 --- a/crates/lucisv_server/src/lint.rs +++ b/crates/lucisv_server/src/lint.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Lint findings, and the diagnostics they become. //! //! `vlog_linter` is the same engine `lucisv check` runs, with the same default @@ -1312,3 +1314,5 @@ mod tests { let _ = std::fs::remove_dir_all(&dir); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/lint/project.rs b/crates/lucisv_server/src/lint/project.rs index 03d7fa4..e1805e0 100644 --- a/crates/lucisv_server/src/lint/project.rs +++ b/crates/lucisv_server/src/lint/project.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! What a buffer's `lucisv.toml` says about linting, and what could not be //! used from it. //! @@ -396,3 +398,5 @@ mod tests { assert!(log.unsaid(&nowhere).is_empty()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/lint_snapshot.rs b/crates/lucisv_server/src/lint_snapshot.rs index d3e507f..61832f6 100644 --- a/crates/lucisv_server/src/lint_snapshot.rs +++ b/crates/lucisv_server/src/lint_snapshot.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! One lint pass's findings, kept for as long as they are still the answer. //! //! Take 5 **review** round §R1a (`docs/features/perf5r-lint-snapshot/README.md`, @@ -243,3 +245,5 @@ mod tests { assert_eq!(found[0].message, "new"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/lint_trace.rs b/crates/lucisv_server/src/lint_trace.rs index 8f62b66..f95bbaa 100644 --- a/crates/lucisv_server/src/lint_trace.rs +++ b/crates/lucisv_server/src/lint_trace.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Where a lint-answering request's milliseconds went. //! //! Take 5 **review** round §R1b (`docs/performance_take5_review.md` §1, @@ -605,3 +607,5 @@ mod tests { assert!(!disarm().expect("armed").is_empty()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/locate.rs b/crates/lucisv_server/src/locate.rs index d9b2233..ac45383 100644 --- a/crates/lucisv_server/src/locate.rs +++ b/crates/lucisv_server/src/locate.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Turning a `(file, byte span)` pair into an LSP `Location`. //! //! The workspace index deliberately keeps no file contents @@ -284,3 +286,5 @@ mod tests { ); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/main.rs b/crates/lucisv_server/src/main.rs index 6a524c7..2a6dd1b 100644 --- a/crates/lucisv_server/src/main.rs +++ b/crates/lucisv_server/src/main.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `lucisv-server` — the lucisv language server, speaking LSP over stdio. //! //! One binary for every editor: VS Code through a thin extension, Vim/Neovim @@ -1437,3 +1439,5 @@ mod tests { assert_eq!(capabilities().position_encoding, Some(PositionEncodingKind::UTF16)); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/module_select.rs b/crates/lucisv_server/src/module_select.rs index 300ac1a..0d62aed 100644 --- a/crates/lucisv_server/src/module_select.rs +++ b/crates/lucisv_server/src/module_select.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Which files can name a scope *inside* the module a refactoring rewrites. //! //! [`Workspace::module_sources`](crate::state::Workspace::module_sources)'s @@ -177,3 +179,5 @@ mod tests { assert!(hierarchical_users(&index, Reach::none()).is_empty()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/nav.rs b/crates/lucisv_server/src/nav.rs index 1c37b31..ccaa75f 100644 --- a/crates/lucisv_server/src/nav.rs +++ b/crates/lucisv_server/src/nav.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `textDocument/definition`, `textDocument/references` and the symbol half of //! `textDocument/documentHighlight`. @@ -3405,3 +3407,5 @@ endmodule let _ = fs::remove_dir_all(&dir); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/on_type.rs b/crates/lucisv_server/src/on_type.rs index bd3ac21..60edc94 100644 --- a/crates/lucisv_server/src/on_type.rs +++ b/crates/lucisv_server/src/on_type.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `textDocument/onTypeFormatting` — the two keystrokes worth answering. //! //! On-type formatting runs on a keystroke, over code that is by definition @@ -1299,3 +1301,5 @@ mod tests { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/on_type/auto_end.rs b/crates/lucisv_server/src/on_type/auto_end.rs index e0d4801..0aaf556 100644 --- a/crates/lucisv_server/src/on_type/auto_end.rs +++ b/crates/lucisv_server/src/on_type/auto_end.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `begin` + Enter writes the `end` (TODO §68.1). //! //! The newline answer's second half. When the line above the one a `\n` just @@ -579,3 +581,5 @@ mod tests { assert!(wrote_an_end(&edits), "{edits:?}"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/pairs.rs b/crates/lucisv_server/src/pairs.rs index 2c46322..3b4f1ae 100644 --- a/crates/lucisv_server/src/pairs.rs +++ b/crates/lucisv_server/src/pairs.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Scope pairs — `begin`/`end` and its sixteen relatives — matched with a //! stack over the token stream. //! @@ -1904,3 +1906,5 @@ mod tests { ); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/perf.rs b/crates/lucisv_server/src/perf.rs index 6a49078..eb4b5a8 100644 --- a/crates/lucisv_server/src/perf.rs +++ b/crates/lucisv_server/src/perf.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Perf measurements for the paths a keystroke and a hover run through. //! //! Not a benchmark harness: every test here is `#[ignore]`d, asserts nothing @@ -1203,3 +1205,5 @@ fn a_will_rename_before_and_after() { ); let _ = std::fs::remove_dir_all(&dir); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/ports.rs b/crates/lucisv_server/src/ports.rs index 7a33694..d50741e 100644 --- a/crates/lucisv_server/src/ports.rs +++ b/crates/lucisv_server/src/ports.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The port refactorings on the wire: `textDocument/codeAction` for the four //! that need no typing, and `workspace/executeCommand` for all five. //! @@ -1562,3 +1564,5 @@ mod tests { ); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/rename.rs b/crates/lucisv_server/src/rename.rs index d05d630..36db893 100644 --- a/crates/lucisv_server/src/rename.rs +++ b/crates/lucisv_server/src/rename.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `textDocument/prepareRename` and `textDocument/rename`. //! //! Protocol only: every edit is computed by `vlog_refactor` over the same file @@ -1293,3 +1295,5 @@ mod tests { ); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/rename_trace.rs b/crates/lucisv_server/src/rename_trace.rs index 2d3d880..75b0589 100644 --- a/crates/lucisv_server/src/rename_trace.rs +++ b/crates/lucisv_server/src/rename_trace.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Which rung of the rename fan-out put each file in the engine's input. //! //! Take 5 §P2a (`docs/features/perf5-p2/README.md`). `Workspace::rename_sources_traced` @@ -300,3 +302,5 @@ mod tests { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/same_file.rs b/crates/lucisv_server/src/same_file.rs index 30dd7ae..c9ce551 100644 --- a/crates/lucisv_server/src/same_file.rs +++ b/crates/lucisv_server/src/same_file.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Same file first: whether a request's **whole** answer comes from its own //! buffer, so that it need not wait for the workspace index //! (`docs/features/fast-actions/README.md`). @@ -193,3 +195,5 @@ fn renamed_here(doc: &Document, offset: u32) -> bool { }; symbol.scope != doc.semantics.file_scope() } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/same_file/tests.rs b/crates/lucisv_server/src/same_file/tests.rs index c5f942a..bbb7606 100644 --- a/crates/lucisv_server/src/same_file/tests.rs +++ b/crates/lucisv_server/src/same_file/tests.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The locality rule, shape by shape: each test is one position a user can //! put the cursor on, and whether the buffer alone answers it. The proof that //! a yes is the settled answer is the differential test @@ -250,3 +252,5 @@ fn the_readme_table_names_every_request_the_dispatch_answers() { assert!(answered.contains(method), "{method} is not a dispatch arm"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/scan_order.rs b/crates/lucisv_server/src/scan_order.rs index 5994efc..7cfb989 100644 --- a/crates/lucisv_server/src/scan_order.rs +++ b/crates/lucisv_server/src/scan_order.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! What order a scan walks its work list in, and how much of that order a //! request answered mid-scan is owed. //! @@ -191,3 +193,5 @@ mod tests { assert_eq!(list.head, 1); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/scan_trace.rs b/crates/lucisv_server/src/scan_trace.rs index 18a3aeb..abcd624 100644 --- a/crates/lucisv_server/src/scan_trace.rs +++ b/crates/lucisv_server/src/scan_trace.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! What one workspace scan spent its time on, and what the tables it left //! behind weigh — the startup breakdown take 5 §P4a exists to measure. //! @@ -594,3 +596,5 @@ mod tests { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/selection.rs b/crates/lucisv_server/src/selection.rs index b928af3..5abd512 100644 --- a/crates/lucisv_server/src/selection.rs +++ b/crates/lucisv_server/src/selection.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `textDocument/selectionRange` — expand-selection. //! //! No new analysis: everything the chain is built from is already computed for @@ -575,3 +577,5 @@ mod tests { assert_eq!(kept.iter().map(|s| (s.start, s.end)).collect::>(), vec![(2, 9), (0, 9)]); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/ahead.rs b/crates/lucisv_server/src/server/ahead.rs index 723cf8e..5063a5a 100644 --- a/crates/lucisv_server/src/server/ahead.rs +++ b/crates/lucisv_server/src/server/ahead.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Answering a request **ahead** of whatever holds the rest, from its buffer //! alone: the colours (`viewport.rs`) and every request whose whole answer the //! buffer gives (`crate::same_file`) — where in a burst, a held batch and a @@ -438,3 +440,5 @@ impl Server { self.dirty.iter().any(|(pending, _)| pending == uri) } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/batch.rs b/crates/lucisv_server/src/server/batch.rs index 24fdb34..24bbd27 100644 --- a/crates/lucisv_server/src/server/batch.rs +++ b/crates/lucisv_server/src/server/batch.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Reading a burst of messages before any of it is served. //! //! `lsp-server` hands messages over a rendezvous channel, one at a time; the @@ -173,3 +175,5 @@ pub(super) fn widen_of(before: &[std::path::PathBuf], after: &[std::path::PathBu pub(super) fn changes_state(message: &Message) -> bool { matches!(message, Message::Notification(n) if n.method != Cancel::METHOD) } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/client.rs b/crates/lucisv_server/src/server/client.rs index 3cf44d4..9583b2b 100644 --- a/crates/lucisv_server/src/server/client.rs +++ b/crates/lucisv_server/src/server/client.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! What goes to the client other than a response. //! //! Three kinds of traffic, all server-initiated: the requests the server @@ -351,3 +353,5 @@ pub(super) fn plural(count: usize) -> &'static str { "s" } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/diagnostics.rs b/crates/lucisv_server/src/server/diagnostics.rs index 7e21ab8..eab3a85 100644 --- a/crates/lucisv_server/src/server/diagnostics.rs +++ b/crates/lucisv_server/src/server/diagnostics.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! What the server says about a buffer's contents, and when. //! //! *When* is the change debounce: a `didChange` marks a buffer dirty and the @@ -296,3 +298,5 @@ impl Server { self.generation.to_string() } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/dispatch.rs b/crates/lucisv_server/src/server/dispatch.rs index b0a2570..3a31cd8 100644 --- a/crates/lucisv_server/src/server/dispatch.rs +++ b/crates/lucisv_server/src/server/dispatch.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `answer_request`: the dispatch table over request methods. //! //! One `match` arm per method, each a decode and a call into the module that @@ -757,3 +759,5 @@ fn decode(request: Request) -> Result { pub(super) fn to_value(value: impl serde::Serialize) -> Result { serde_json::to_value(value).map_err(|e| Failure::Internal(e.to_string())) } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/formatting.rs b/crates/lucisv_server/src/server/formatting.rs index 15b911e..8245f9d 100644 --- a/crates/lucisv_server/src/server/formatting.rs +++ b/crates/lucisv_server/src/server/formatting.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The five formatting entries — whole document, one range, several ranges, //! on-type, and the save hook — and what each says when the engine refuses. //! @@ -179,3 +181,5 @@ impl Server { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/index.rs b/crates/lucisv_server/src/server/index.rs index 830ff0a..dba60f2 100644 --- a/crates/lucisv_server/src/server/index.rs +++ b/crates/lucisv_server/src/server/index.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The rescans: how the workspace index is rebuilt, and what a rebuild owes //! every open buffer afterwards. //! @@ -586,3 +588,5 @@ impl Server { ); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/large_file.rs b/crates/lucisv_server/src/server/large_file.rs index 921e8f0..f800224 100644 --- a/crates/lucisv_server/src/server/large_file.rs +++ b/crates/lucisv_server/src/server/large_file.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The large-file fast path: what a buffer over `lucisv.largeFile.threshold` //! answers *instead of* the dispatch. //! @@ -196,3 +198,5 @@ impl Server { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/mod.rs b/crates/lucisv_server/src/server/mod.rs index e48f238..b37ce0f 100644 --- a/crates/lucisv_server/src/server/mod.rs +++ b/crates/lucisv_server/src/server/mod.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The request loop: one burst in, one response per request, on one thread. //! //! `lsp-server` runs two I/O threads of its own and hands this loop framed @@ -720,3 +722,5 @@ impl Server { !self.scanning && !self.must_wait() } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/notification.rs b/crates/lucisv_server/src/server/notification.rs index 2915d5c..4b09101 100644 --- a/crates/lucisv_server/src/server/notification.rs +++ b/crates/lucisv_server/src/server/notification.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `handle_notification`: the dispatch table over notification methods. //! //! Everything the client tells the server without expecting an answer — @@ -465,3 +467,5 @@ fn waiver_problems( fn unsaid<'a>(warnings: &'a [String], said: &[String]) -> Vec<&'a String> { warnings.iter().filter(|w| !said.contains(w)).collect() } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/probe.rs b/crates/lucisv_server/src/server/probe.rs index 56b1939..85ec99e 100644 --- a/crates/lucisv_server/src/server/probe.rs +++ b/crates/lucisv_server/src/server/probe.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! A test's hand on the mid-scan drain: what the client "sends" at each //! interleave point, and how often a scan handed back what it was holding. //! @@ -91,3 +93,5 @@ pub(super) fn went_ahead(id: &RequestId) { pub(super) fn take_ahead() -> Vec { PROBE.with(|probe| std::mem::take(&mut probe.borrow_mut().ahead)) } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/progress.rs b/crates/lucisv_server/src/server/progress.rs index f233ae2..fd4e006 100644 --- a/crates/lucisv_server/src/server/progress.rs +++ b/crates/lucisv_server/src/server/progress.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The indexing bar and the per-file log a rescan runs under. //! //! `begin_indexing` puts the bar up and `end_indexing` takes it down with @@ -270,3 +272,5 @@ mod human_size_tests { assert_eq!(human_size(2_411_724), "2.3 MiB"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/semantic_tokens.rs b/crates/lucisv_server/src/server/semantic_tokens.rs index 79ffe79..cd04bf4 100644 --- a/crates/lucisv_server/src/server/semantic_tokens.rs +++ b/crates/lucisv_server/src/server/semantic_tokens.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Semantic tokens with a memory: the full answer that is stamped and kept, //! and the delta computed against it. //! @@ -62,3 +64,5 @@ impl Server { result_id } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/startup.rs b/crates/lucisv_server/src/server/startup.rs index e21f205..a1e849b 100644 --- a/crates/lucisv_server/src/server/startup.rs +++ b/crates/lucisv_server/src/server/startup.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! What a session does before its message loop: ask the client for its //! settings, wait a bounded moment for the answer, and run **one** startup //! scan at the scope that answer decided. @@ -375,3 +377,5 @@ impl Server { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/apply_edit.rs b/crates/lucisv_server/src/server/tests/apply_edit.rs index 1fd1303..14a5c7b 100644 --- a/crates/lucisv_server/src/server/tests/apply_edit.rs +++ b/crates/lucisv_server/src/server/tests/apply_edit.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `workspace/applyEdit`: how a command's edit reaches the client, and what a refusal says. use super::*; @@ -124,3 +126,5 @@ fn a_watcher_registration_answer_is_still_ignored() { session.server.response(Response::new_err(id, 1, "no thanks".to_string())); assert!(session.shown().is_empty(), "nothing to tell the user"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/cancel.rs b/crates/lucisv_server/src/server/tests/cancel.rs index cc785a6..d32f317 100644 --- a/crates/lucisv_server/src/server/tests/cancel.rs +++ b/crates/lucisv_server/src/server/tests/cancel.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `$/cancelRequest` (`docs/features/cancel-request/README.md`). use super::*; @@ -418,3 +420,5 @@ fn a_cancel_for_a_deferred_request_answers_it_cancelled_and_forgets_it() { session.server.process_batch(vec![cancel(serde_json::json!(42))]).expect("a burst"); assert!(outcomes(&session).is_empty()); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/caret_boundary.rs b/crates/lucisv_server/src/server/tests/caret_boundary.rs index 8763923..c91cc75 100644 --- a/crates/lucisv_server/src/server/tests/caret_boundary.rs +++ b/crates/lucisv_server/src/server/tests/caret_boundary.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! A caret just past a name is on that name, for every request about the //! symbol under the cursor (`docs/features/scan-ordering/README.md`, A1). //! @@ -151,3 +153,5 @@ fn the_column_past_a_name_is_counted_in_utf16_after_non_ascii_text() { assert_eq!(refs(&mut session, start + 2), at_start, "just past `tx`, in UTF-16 units"); assert!(says_nothing(&refs(&mut session, start + 3)), "past the `;`"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/code_action.rs b/crates/lucisv_server/src/server/tests/code_action.rs index 8597f90..2580f93 100644 --- a/crates/lucisv_server/src/server/tests/code_action.rs +++ b/crates/lucisv_server/src/server/tests/code_action.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! What a `textDocument/codeAction` request does, and — just as much — what //! it no longer does. //! @@ -543,3 +545,5 @@ fn a_large_buffer_still_answers_its_command_from_its_text() { "a large buffer's selector reads its text, so the instantiation is found" ); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/fast_actions.rs b/crates/lucisv_server/src/server/tests/fast_actions.rs index 7155b04..ec10e38 100644 --- a/crates/lucisv_server/src/server/tests/fast_actions.rs +++ b/crates/lucisv_server/src/server/tests/fast_actions.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Same file first, on the wire: each claim of `ahead.rs` about a request //! `same_file` proves local is one test. It goes ahead of what a scan holds; //! a cross-file one at the same moment waits, in order; a dirty buffer is @@ -207,3 +209,5 @@ fn a_client_that_takes_item_defaults_is_sent_the_range_once() { .all(|i| i.get("textEdit").is_none())); assert!(compact.to_string().len() < whole.to_string().len()); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/fast_actions_bursts.rs b/crates/lucisv_server/src/server/tests/fast_actions_bursts.rs index c3d36e7..3116ea2 100644 --- a/crates/lucisv_server/src/server/tests/fast_actions_bursts.rs +++ b/crates/lucisv_server/src/server/tests/fast_actions_bursts.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! **An answer given ahead is the answer a server taking one message at a //! time gives** — the randomized differential behind the precondition on //! `Server::answer_from_the_buffer` (`docs/features/fast-actions/README.md`). @@ -497,3 +499,5 @@ fn answers_given_ahead_equal_a_one_message_at_a_time_server_long_run() { ); assert!(tally.ahead > rounds / 4, "{} of {}", tally.ahead, tally.asked); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/fast_actions_differential.rs b/crates/lucisv_server/src/server/tests/fast_actions_differential.rs index 1f5ed25..e7d7d48 100644 --- a/crates/lucisv_server/src/server/tests/fast_actions_differential.rs +++ b/crates/lucisv_server/src/server/tests/fast_actions_differential.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! **Early answers are settled answers** — the safety net of //! `docs/features/fast-actions/README.md`. //! @@ -373,3 +375,5 @@ fn early_answers_equal_settled_over_real_trees() { eprintln!("fast actions, all trees: {}", total.line()); assert!(total.differed.is_empty(), "{}", total.differed.join("\n")); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/fast_actions_precondition.rs b/crates/lucisv_server/src/server/tests/fast_actions_precondition.rs index aadc2d0..ea17235 100644 --- a/crates/lucisv_server/src/server/tests/fast_actions_precondition.rs +++ b/crates/lucisv_server/src/server/tests/fast_actions_precondition.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The precondition for answering ahead, one clause at a time //! (`Server::answer_from_the_buffer`, `docs/features/fast-actions/README.md`, //! "When a request is answered early"). A request that breaks exactly one @@ -543,3 +545,5 @@ fn every_notification_the_server_handles_says_which_buffers_it_can_reach() { assert_eq!(by_name.len(), 4, "{by_name:?}"); assert!(by_name.iter().all(|m| m.starts_with("textDocument/did")), "{by_name:?}"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/fast_actions_staging.rs b/crates/lucisv_server/src/server/tests/fast_actions_staging.rs index c79a062..77a43ac 100644 --- a/crates/lucisv_server/src/server/tests/fast_actions_staging.rs +++ b/crates/lucisv_server/src/server/tests/fast_actions_staging.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Same file first **around the settings answer** (QA Q1 and R1 of //! `docs/features/fast-actions/README.md`): the one setting a buffer's //! `Document` depends on is `largeFile.threshold`, read where the buffer is @@ -231,3 +233,5 @@ fn a_buffer_that_changes_mode_has_its_colours_asked_for_again() { assert_eq!(refreshes(&mut session, threshold(10)), 1, "the buffer went onto the fast path"); assert_eq!(refreshes(&mut session, threshold(20)), 0, "still large: nothing moved"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/file_ops.rs b/crates/lucisv_server/src/server/tests/file_ops.rs index 9ae8b66..8d80080 100644 --- a/crates/lucisv_server/src/server/tests/file_ops.rs +++ b/crates/lucisv_server/src/server/tests/file_ops.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! File operations (`docs/features/file-operations/README.md`). use super::*; @@ -173,3 +175,5 @@ fn a_file_operation_notification_for_nothing_the_index_reads_costs_no_rebuild() ); assert_eq!(session.publishes(), 0, "neither is a path the index reads"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/folders.rs b/crates/lucisv_server/src/server/tests/folders.rs index 6087cf2..b1ddd8f 100644 --- a/crates/lucisv_server/src/server/tests/folders.rs +++ b/crates/lucisv_server/src/server/tests/folders.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Workspace folders (2026-08-27) and the scope a `didOpen` widens. use super::*; @@ -440,3 +442,5 @@ fn a_folder_change_re_registers_the_watchers_only_when_the_watched_path_moves() "{requests:#?}" ); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/formatting.rs b/crates/lucisv_server/src/server/tests/formatting.rs index 95e5bfe..7251095 100644 --- a/crates/lucisv_server/src/server/tests/formatting.rs +++ b/crates/lucisv_server/src/server/tests/formatting.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `onTypeFormatting`, `rangesFormatting` and `willSaveWaitUntil`, through the real dispatch. use super::*; @@ -834,3 +836,5 @@ fn auto_a_rename_forgets_both_names() { ); assert!(session.server.auto_styles.is_empty()); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/hierarchy_everywhere.rs b/crates/lucisv_server/src/server/tests/hierarchy_everywhere.rs index b6a9587..4552f72 100644 --- a/crates/lucisv_server/src/server/tests/hierarchy_everywhere.rs +++ b/crates/lucisv_server/src/server/tests/hierarchy_everywhere.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Call hierarchy from wherever the cursor is, and for functions and tasks //! (`docs/features/call-hierarchy-everywhere/README.md`), driven through the //! real dispatch. @@ -689,3 +691,5 @@ fn inside_a_class_body_prepares_the_class_and_super_prepares_its_base() { ); assert!(prepare_type(&mut session, &core, pos(CORE, "int r", 0, 4)).is_empty(), "a module"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/hierarchy_reach.rs b/crates/lucisv_server/src/server/tests/hierarchy_reach.rs index 098106a..4651e1a 100644 --- a/crates/lucisv_server/src/server/tests/hierarchy_reach.rs +++ b/crates/lucisv_server/src/server/tests/hierarchy_reach.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Topology handshake 33: the file that reaches an instance through modules //! it does not itself instantiate. //! @@ -342,3 +344,5 @@ fn the_four_rung_selector_answers_exactly_what_it_did_before() { assert!(five.contains(path), "the fifth rung only ever adds: {path:?} went missing"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/index.rs b/crates/lucisv_server/src/server/tests/index.rs index 7d85d57..7e3de2d 100644 --- a/crates/lucisv_server/src/server/tests/index.rs +++ b/crates/lucisv_server/src/server/tests/index.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The index rebuild as the client sees it: the persistent cache, the size cap, the per-file log, and one bar per rescan path. use super::*; @@ -566,3 +568,5 @@ fn a_rootless_workspace_with_no_open_files_says_zero_at_startup_without_crashing let session = Session::with(Vec::new(), watching_progress()); assert_eq!(session.ended(), vec![Some("0 files indexed".to_string())]); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/large_file.rs b/crates/lucisv_server/src/server/tests/large_file.rs index 728740c..3649952 100644 --- a/crates/lucisv_server/src/server/tests/large_file.rs +++ b/crates/lucisv_server/src/server/tests/large_file.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The large-file fast path (`docs/features/large-file-mode/README.md`). use super::*; @@ -420,3 +422,5 @@ fn an_edit_to_a_large_buffer_moves_its_lines_and_the_next_window_agrees() { ); assert_eq!(found[0]["range"]["start"]["line"], 2, "{found}"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/lint_snapshot.rs b/crates/lucisv_server/src/server/tests/lint_snapshot.rs index fb7b4a0..f91a026 100644 --- a/crates/lucisv_server/src/server/tests/lint_snapshot.rs +++ b/crates/lucisv_server/src/server/tests/lint_snapshot.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! One test per row of the lint snapshot's invalidation table. //! //! Take 5 **review** round §R1a @@ -368,3 +370,5 @@ fn a_fix_is_never_offered_for_a_span_the_buffer_no_longer_has() { "the buffer the answer describes is the buffer the client has" ); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/localized_reindex.rs b/crates/lucisv_server/src/server/tests/localized_reindex.rs index e87bdc4..6a875b7 100644 --- a/crates/lucisv_server/src/server/tests/localized_reindex.rs +++ b/crates/lucisv_server/src/server/tests/localized_reindex.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The localized reindex held to a whole rebuild through the real server //! (`docs/features/localized-reindex/README.md`). //! @@ -752,3 +754,5 @@ fn a_seeded_sweep_over_an_opentitan_sample_holds() { sweep(tree, 6, seed, 60); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/mod.rs b/crates/lucisv_server/src/server/tests/mod.rs index eb9f10c..e677d48 100644 --- a/crates/lucisv_server/src/server/tests/mod.rs +++ b/crates/lucisv_server/src/server/tests/mod.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The `Server` tests: one file per feature, every one driven through the //! real `process_batch` against a scratch workspace on disk. //! @@ -660,3 +662,5 @@ fn configuration_request(session: &Session) -> (RequestId, Value) { assert_eq!(asked.len(), 1, "exactly one pull is outstanding: {sent:#?}"); (asked[0].id.clone(), asked[0].params.clone()) } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/ordering_random.rs b/crates/lucisv_server/src/server/tests/ordering_random.rs index d4e123d..eb54ebf 100644 --- a/crates/lucisv_server/src/server/tests/ordering_random.rs +++ b/crates/lucisv_server/src/server/tests/ordering_random.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Random interleavings of the client's bursts against the real loop, mid-scan //! and between scans (`docs/features/scan-ordering/README.md`, B and C). //! @@ -339,3 +341,5 @@ fn random_bursts_long_run() { let mid_scan: usize = (100..400).map(|seed| run_seed(seed, 40)).sum(); assert!(mid_scan >= 10_000, "only {mid_scan} bursts landed mid-scan"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/progress.rs b/crates/lucisv_server/src/server/tests/progress.rs index da0a378..bcb81c6 100644 --- a/crates/lucisv_server/src/server/tests/progress.rs +++ b/crates/lucisv_server/src/server/tests/progress.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The indexing bar: when it goes up, what it counts, when it comes down. use super::*; @@ -330,3 +332,5 @@ fn the_bar_is_down_before_the_republish() { .collect(); assert_eq!(order, vec!["create", "begin", "report", "report", "end", "publish"]); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/pull_diagnostics.rs b/crates/lucisv_server/src/server/tests/pull_diagnostics.rs index de0d737..34ffcd9 100644 --- a/crates/lucisv_server/src/server/tests/pull_diagnostics.rs +++ b/crates/lucisv_server/src/server/tests/pull_diagnostics.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Pull diagnostics (LSP 3.17): one client is never served both models. use super::*; @@ -268,3 +270,5 @@ fn both_models_say_exactly_the_same_thing_about_a_buffer() { serde_json::to_value(&published[0].diagnostics).expect("diagnostics"), ); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/qa_generate_label.rs b/crates/lucisv_server/src/server/tests/qa_generate_label.rs index 6c81609..a3df81e 100644 --- a/crates/lucisv_server/src/server/tests/qa_generate_label.rs +++ b/crates/lucisv_server/src/server/tests/qa_generate_label.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! QA attacks on TODO §65.1 over the wire: `references` and `rename` through //! a block label with the other files closed, and the `member_key` spelling //! of a block that lives inside a function. @@ -84,3 +86,5 @@ fn a_two_instance_path_through_a_block_is_renamed_with_every_other_file_closed() let tb = path_to_uri(&tree.path.join("tbq.sv")).expect("a uri"); assert_eq!(changes.get(tb.as_str()).and_then(Value::as_array).map_or(0, Vec::len), 1); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/qa_rename_implicit.rs b/crates/lucisv_server/src/server/tests/qa_rename_implicit.rs index f91c4fc..2bef9a6 100644 --- a/crates/lucisv_server/src/server/tests/qa_rename_implicit.rs +++ b/crates/lucisv_server/src/server/tests/qa_rename_implicit.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! QA M3.5 (2026-09-23): the LSP's rename against `.*`/`.name`, over the wire, //! on the engine tests' fixtures — the fan-out must hand the engine every //! file an implicit connection of the name lives in, open buffer or disk. @@ -116,3 +118,5 @@ fn qa_lsp_net_rename_reaches_a_bind_file_spelling_neither_name() { "{answer:#}" ); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/references_scope.rs b/crates/lucisv_server/src/server/tests/references_scope.rs index b438d04..dfc93b0 100644 --- a/crates/lucisv_server/src/server/tests/references_scope.rs +++ b/crates/lucisv_server/src/server/tests/references_scope.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! TODO §65.2 over the wire: `references` from a testbench answers within //! the active index scope, and within an equal file set it answers exactly //! what the whole-set engine (`vlog_refactor::find_references`) answers. @@ -168,3 +170,5 @@ fn over_the_whole_workspace_a_module_rename_edits_the_generated_top() { assert_eq!(changes.get(top.as_str()).and_then(Value::as_array).map_or(0, Vec::len), 1); assert_eq!(changes.len(), 3, "blk.sv, tb.sv and the top: {answer:#}"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/references_top_rooted.rs b/crates/lucisv_server/src/server/tests/references_top_rooted.rs index cc26bdd..fba342c 100644 --- a/crates/lucisv_server/src/server/tests/references_top_rooted.rs +++ b/crates/lucisv_server/src/server/tests/references_top_rooted.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! A hierarchical path rooted at a top module another file declares, over //! the wire (TODO §65.4): `references` at a member of the DUT lists every //! segment of `tb.dut.g_sw[0].buf_q` in a DV file, whichever side is open, @@ -104,3 +106,5 @@ fn rename_at_the_block_label_rewrites_the_paths_in_the_dv_file() { let mut texts = changes.values().flat_map(|e| e.as_array().into_iter().flatten()); assert!(texts.all(|e| e["newText"] == "g_hw"), "{answer:#}"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/rename_generate_label.rs b/crates/lucisv_server/src/server/tests/rename_generate_label.rs index 076ee9d..4649540 100644 --- a/crates/lucisv_server/src/server/tests/rename_generate_label.rs +++ b/crates/lucisv_server/src/server/tests/rename_generate_label.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! A generate block label over the wire (TODO §65.1, topo §2.9-43). //! //! `references`, `prepareRename` and `rename` at a block label reach the @@ -150,3 +152,5 @@ fn an_unresolved_path_in_an_open_buffer_is_shown_as_a_rename_warning() { ); assert!(!shown.iter().any(|(_, m)| m.contains("more")), "said once: {shown:?}"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/rename_implicit.rs b/crates/lucisv_server/src/server/tests/rename_implicit.rs index e8a5b85..d4dcfcc 100644 --- a/crates/lucisv_server/src/server/tests/rename_implicit.rs +++ b/crates/lucisv_server/src/server/tests/rename_implicit.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! A rename against `.*` connections, over the wire (TODO-MCP M3.5). //! //! The engine refuses a rename it cannot check against a `.*` whose module it @@ -65,3 +67,5 @@ fn a_net_rename_beside_a_wildcard_into_a_module_outside_the_workspace_is_refused error.message ); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/rename_top_rooted_scope.rs b/crates/lucisv_server/src/server/tests/rename_top_rooted_scope.rs index 90bdbfd..c1b244d 100644 --- a/crates/lucisv_server/src/server/tests/rename_top_rooted_scope.rs +++ b/crates/lucisv_server/src/server/tests/rename_top_rooted_scope.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! A rename through a hierarchical path rooted at a top module, under the //! shipped **folder** scope (top-rooted-paths QA F3): the rename's file set //! holds the files declaring every unit the path walks through — the root @@ -119,3 +121,5 @@ fn a_root_outside_the_scope_is_warned_and_refused_accurately() { assert!(why.contains("hierarchical path"), "{why}"); assert!(!why.contains("declared outside"), "{why}"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/requests.rs b/crates/lucisv_server/src/server/tests/requests.rs index ea91730..14d9253 100644 --- a/crates/lucisv_server/src/server/tests/requests.rs +++ b/crates/lucisv_server/src/server/tests/requests.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Small document requests through the real dispatch: `selectionRange`, `linkedEditingRange`, `codeLens` and its command, the hierarchy view. use super::*; @@ -463,3 +465,5 @@ fn qa_a_showdocument_push_and_an_applyedit_push_stay_independent_when_both_are_o session.answer(apply_id, serde_json::json!({ "applied": true })); assert!(session.shown().is_empty(), "a successful apply reports nothing"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/scan.rs b/crates/lucisv_server/src/server/tests/scan.rs index 90461e3..53f1eaa 100644 --- a/crates/lucisv_server/src/server/tests/scan.rs +++ b/crates/lucisv_server/src/server/tests/scan.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! A scan that answers messages while it runs (`docs/features/scan-interleave/README.md`). use super::*; @@ -388,3 +390,5 @@ fn a_buffer_opened_during_the_startup_scan_is_published_and_lenses_refreshed_onc .count(); assert_eq!(refreshes, 1, "exactly one lens refresh, not one per drain: {said:#?}"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/scan_ordering.rs b/crates/lucisv_server/src/server/tests/scan_ordering.rs index 7037570..69103c1 100644 --- a/crates/lucisv_server/src/server/tests/scan_ordering.rs +++ b/crates/lucisv_server/src/server/tests/scan_ordering.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! No client message overtakes an older one while a scan answers messages //! (`docs/features/scan-ordering/README.md`, B and C). //! @@ -306,3 +308,5 @@ fn a_request_behind_a_didopen_mid_startup_still_waits_for_the_buffer_it_names() .collect(); assert_eq!(names, ["bmod"], "answered off the buffer the didOpen installed"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/scan_trace.rs b/crates/lucisv_server/src/server/tests/scan_trace.rs index e66b6b2..aae604a 100644 --- a/crates/lucisv_server/src/server/tests/scan_trace.rs +++ b/crates/lucisv_server/src/server/tests/scan_trace.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! What a scan says it spent its time on (`docs/features/perf5-p4/README.md`). //! //! Three claims, one test each: the lines exist only under `--verbose`, the @@ -338,3 +340,5 @@ fn the_discovery_split_is_a_split_of_discovery_and_not_stages_beside_it() { assert_eq!(field(&counts, "walk_dirs"), "1", "one root, walked once: {counts}"); assert_eq!(field(&counts, "stats"), "0", "the cap stats nothing the walk already read"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/settings.rs b/crates/lucisv_server/src/server/tests/settings.rs index 1ede026..29fabe0 100644 --- a/crates/lucisv_server/src/server/tests/settings.rs +++ b/crates/lucisv_server/src/server/tests/settings.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Pulled settings (2026-08-27): `workspace/configuration` beside the push. use super::*; @@ -508,3 +510,5 @@ fn a_select_emptied_by_the_dropping_falls_through_the_ladder_unchanged() { assert!(now.lint_select.is_empty(), "the dropping left an empty select"); assert_eq!(settings::lint_selection(now), base, "and the rule set is untouched"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/startup.rs b/crates/lucisv_server/src/server/tests/startup.rs index 395e3b2..f9a3f8b 100644 --- a/crates/lucisv_server/src/server/tests/startup.rs +++ b/crates/lucisv_server/src/server/tests/startup.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The staged startup (`server/startup.rs`): the settings pull goes out //! first, the one scan runs at the scope the answer decided, and a client //! that never answers is bounded rather than waited on for ever. @@ -1486,3 +1488,5 @@ fn a_same_named_file_symlink_outside_the_head_is_not_a_second_copy_of_the_buffer assert!(said.renamable, "`tb` is declared once, whatever the disk spells"); assert!(said.diagnostics.is_empty(), "{:#?}", said.diagnostics); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/sync.rs b/crates/lucisv_server/src/server/tests/sync.rs index 7de4cf8..cde9efe 100644 --- a/crates/lucisv_server/src/server/tests/sync.rs +++ b/crates/lucisv_server/src/server/tests/sync.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Incremental text sync and the change debounce. use super::*; @@ -258,3 +260,5 @@ fn a_ranged_change_republishes_diagnostics_for_what_it_produced() { assert_eq!(published.len(), 1); assert!(published[0].diagnostics.is_empty(), "{published:#?}"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/tokens.rs b/crates/lucisv_server/src/server/tests/tokens.rs index 0f0f882..257a314 100644 --- a/crates/lucisv_server/src/server/tests/tokens.rs +++ b/crates/lucisv_server/src/server/tests/tokens.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Semantic tokens: full, range, full/delta. use super::*; @@ -356,3 +358,5 @@ fn qa_a_deltas_own_id_chains_directly_into_the_next_delta_without_a_full_in_betw assert_eq!(held, ground_truth(&session, &uri), "step {i}: the chain matches the truth"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/tests/watchers.rs b/crates/lucisv_server/src/server/tests/watchers.rs index 298b302..a671f47 100644 --- a/crates/lucisv_server/src/server/tests/watchers.rs +++ b/crates/lucisv_server/src/server/tests/watchers.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! File watchers: the registration, and the rebuilds a watched-file event does or does not cost. use super::*; @@ -262,3 +264,5 @@ fn a_non_file_uri_in_an_event_is_ignored() { session.notify(DidChangeWatchedFiles::METHOD, DidChangeWatchedFilesParams { changes }); assert_eq!(session.publishes(), 0); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/viewport.rs b/crates/lucisv_server/src/server/viewport.rs index 149cccc..13dec20 100644 --- a/crates/lucisv_server/src/server/viewport.rs +++ b/crates/lucisv_server/src/server/viewport.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Colours that never wait for the index: the semantic-token requests //! answered from the buffer alone while a scan holds everything else, and the //! one `workspace/semanticTokens/refresh` that replaces them once the index @@ -207,3 +209,5 @@ impl Server { .count() } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/server/viewport/tests.rs b/crates/lucisv_server/src/server/viewport/tests.rs index 2a20f22..1b977f4 100644 --- a/crates/lucisv_server/src/server/viewport/tests.rs +++ b/crates/lucisv_server/src/server/viewport/tests.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The viewport exemption and the refresh behind it, on the wire. //! //! Each claim of `viewport.rs` is one test: a colouring request is answered @@ -512,3 +514,5 @@ fn colours_arriving_during_a_widen_are_answered_and_the_rest_waits_in_order() { assert_eq!(held, vec![CodeLensRequest::METHOD]); assert!(lane.server.viewport.guessed.contains(&first_uri), "a range off a widening index"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/settings.rs b/crates/lucisv_server/src/settings.rs index e50424d..b625b6c 100644 --- a/crates/lucisv_server/src/settings.rs +++ b/crates/lucisv_server/src/settings.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The `lucisv.*` settings a client pushes over `workspace/didChangeConfiguration` //! — or answers when the server pulls them with `workspace/configuration`. //! @@ -1423,3 +1425,5 @@ mod tests { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/signature.rs b/crates/lucisv_server/src/signature.rs index 5f9b3f6..34a2d89 100644 --- a/crates/lucisv_server/src/signature.rs +++ b/crates/lucisv_server/src/signature.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `textDocument/signatureHelp` — the ports of the module whose connection //! list the cursor is inside, with the one being connected highlighted. //! @@ -485,3 +487,5 @@ endmodule assert_eq!(end - start, utf16_len("output logic b")); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/state/buffers.rs b/crates/lucisv_server/src/state/buffers.rs index a564ac9..bbbbd02 100644 --- a/crates/lucisv_server/src/state/buffers.rs +++ b/crates/lucisv_server/src/state/buffers.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The open buffers: installing, closing and finding them, and which //! text — the buffer's or the disk's — speaks for a path when the index //! or a refactoring asks. @@ -132,3 +134,5 @@ impl Workspace { (!doc.large).then(|| (doc.facts(path.to_path_buf()), doc.words())) } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/state/discover.rs b/crates/lucisv_server/src/state/discover.rs index 81c76db..a2fdfbd 100644 --- a/crates/lucisv_server/src/state/discover.rs +++ b/crates/lucisv_server/src/state/discover.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Which files a scan will index, how they were found, and what the finding //! cost. //! @@ -784,3 +786,5 @@ fn sibling_files(dirs: &[PathBuf], trace: &mut ScanTrace) -> Vec { ScanTrace::add(&mut trace.sort_ms, sorting); out } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/state/document.rs b/crates/lucisv_server/src/state/document.rs index f1a7bb0..ba75c92 100644 --- a/crates/lucisv_server/src/state/document.rs +++ b/crates/lucisv_server/src/state/document.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! One open buffer, analyzed once from its text — [`Document`] and //! everything derived from it — and the two binary searches that find a //! token in it by offset without sweeping the buffer. @@ -230,3 +232,5 @@ pub fn mixed_buffer(blocks: usize) -> String { src.push_str("endmodule\n"); src } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/state/incremental.rs b/crates/lucisv_server/src/state/incremental.rs index 3aeb87f..dacea42 100644 --- a/crates/lucisv_server/src/state/incremental.rs +++ b/crates/lucisv_server/src/state/incremental.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Re-indexing one saved file the index already holds, patching every //! table rather than rebuilding it — the cheap path a `didSave` takes //! before falling back to a whole rescan — and doing only the work the @@ -271,3 +273,5 @@ impl Workspace { ) } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/state/mod.rs b/crates/lucisv_server/src/state/mod.rs index 5da4eb7..30389ec 100644 --- a/crates/lucisv_server/src/state/mod.rs +++ b/crates/lucisv_server/src/state/mod.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! What the server remembers: one analysis per open buffer, one index for the //! workspace. The invalidation rules are in //! `docs/features/lucisv-server/README.md`; the short version is that a buffer's @@ -181,3 +183,5 @@ impl Workspace { #[cfg(test)] mod tests; + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/state/port_grace.rs b/crates/lucisv_server/src/state/port_grace.rs index 6e40142..f0af308 100644 --- a/crates/lucisv_server/src/state/port_grace.rs +++ b/crates/lucisv_server/src/state/port_grace.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The connection being typed: where each buffer's last edit ended, the //! connection-list entry around it, and the diagnostics held back from that //! entry while the typing goes on (`docs/features/port-entry-grace/README.md`). @@ -330,3 +332,5 @@ fn is_close(t: &Token) -> bool { #[cfg(test)] mod tests; + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/state/port_grace/tests.rs b/crates/lucisv_server/src/state/port_grace/tests.rs index 01392b1..6cea93d 100644 --- a/crates/lucisv_server/src/state/port_grace/tests.rs +++ b/crates/lucisv_server/src/state/port_grace/tests.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The entry bounds, the withhold/release state machine with time injected, //! and what the parser's half buys the editor: the tokens and the findings //! after an unfinished entry are those of the completed one. @@ -348,3 +350,5 @@ fn an_unfinished_entry_costs_one_error_and_no_cascade() { assert_eq!(errors[0].range.start.line, 5, "on the entry's own line"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/state/rescan.rs b/crates/lucisv_server/src/state/rescan.rs index 6d11f83..59079c6 100644 --- a/crates/lucisv_server/src/state/rescan.rs +++ b/crates/lucisv_server/src/state/rescan.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Driving a scan, whole or widen, from its work list to the landed //! tables: `begin_scan`/`begin_widen` take the list, `scan_step` indexes //! one file, `publish_scan` makes the tables answer for what has been @@ -756,3 +758,5 @@ impl Workspace { fn held_bytes(buffered: &HashMap) -> usize { buffered.values().map(String::len).sum() } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/state/scan.rs b/crates/lucisv_server/src/state/scan.rs index bc6fb0a..18260c2 100644 --- a/crates/lucisv_server/src/state/scan.rs +++ b/crates/lucisv_server/src/state/scan.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! One workspace scan in flight: the work list it took, the text and the //! records it has gathered so far, and what it reports about itself as it //! runs. @@ -444,3 +446,5 @@ pub enum IndexEvent<'a> { /// than the size cap in force. Skipped { path: &'a Path, size: u64, cap: u64 }, } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/state/scope.rs b/crates/lucisv_server/src/state/scope.rs index 7f96daf..9265882 100644 --- a/crates/lucisv_server/src/state/scope.rs +++ b/crates/lucisv_server/src/state/scope.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! What decides the scope: the workspace roots, the `lucisv.*` settings a //! client pushed, and the ladder they select — which rung is in force and //! which directories it walks. @@ -225,3 +227,5 @@ impl Workspace { self.storage = storage; } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/state/sources.rs b/crates/lucisv_server/src/state/sources.rs index 8c40915..01e0e3f 100644 --- a/crates/lucisv_server/src/state/sources.rs +++ b/crates/lucisv_server/src/state/sources.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The file sets handed to the refactorings: the whole scope, or — for a //! port edit, a rename, a file rename — the fan-out the index already //! bounds, so a request reads a handful of files instead of the workspace. @@ -368,3 +370,5 @@ impl Workspace { .collect() } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/state/tests/document.rs b/crates/lucisv_server/src/state/tests/document.rs index b992a0b..f4e71af 100644 --- a/crates/lucisv_server/src/state/tests/document.rs +++ b/crates/lucisv_server/src/state/tests/document.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! A `Document`'s own analysis: the two token searches against the sweep //! they replaced, what a buffer holds once analyzed, and — TODO §63.2 QA — //! the trace's arithmetic, attacked with the three shapes TODO.md names: a @@ -140,3 +142,5 @@ fn a_define_edit_changes_the_macro_table_the_rebuild_reports_on() { let line = trace.line(); assert!(line.contains("documents=2"), "two fresh Document::new calls, two rebuilds: {line}"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/state/tests/filelist.rs b/crates/lucisv_server/src/state/tests/filelist.rs index b3d1798..88fed76 100644 --- a/crates/lucisv_server/src/state/tests/filelist.rs +++ b/crates/lucisv_server/src/state/tests/filelist.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Rung 1 of the scope ladder: a filelist defines the index exactly, its //! warnings reach the caller, and its `+incdir+`s reach the include graph. @@ -242,3 +244,5 @@ fn a_broken_filelist_leaves_the_include_graph_without_incdirs() { "the walk fallback names no include path" ); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/state/tests/folder_scope.rs b/crates/lucisv_server/src/state/tests/folder_scope.rs index 7adf493..c5f4edd 100644 --- a/crates/lucisv_server/src/state/tests/folder_scope.rs +++ b/crates/lucisv_server/src/state/tests/folder_scope.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The folder scope (index-scope, 2026-08-27): rung 3's climb and the two //! clamps on it, what outranks it, and the inherited obligations from that //! round's review. @@ -404,3 +406,5 @@ fn a_buffer_opened_outside_every_root_rides_the_folder_rung_like_a_rootless_one( "and with nothing to clamp against the climb stops at the filesystem root" ); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/state/tests/folders.rs b/crates/lucisv_server/src/state/tests/folders.rs index 0cbdeb6..ba133c2 100644 --- a/crates/lucisv_server/src/state/tests/folders.rs +++ b/crates/lucisv_server/src/state/tests/folders.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Workspace folders added and removed mid-session //! (`didChangeWorkspaceFolders`): what widens the scan, what narrows it, //! what changes nothing, and what is left when the last root goes. @@ -231,3 +233,5 @@ fn removing_the_last_root_leaves_a_relative_filelist_unanchored() { "with no roots left, the same setting comes back bare — anchored at nothing" ); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/state/tests/incremental.rs b/crates/lucisv_server/src/state/tests/incremental.rs index c4a618a..c5c205e 100644 --- a/crates/lucisv_server/src/state/tests/incremental.rs +++ b/crates/lucisv_server/src/state/tests/incremental.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The incremental path (incremental-index, 2026-08-27): one saved file //! re-indexed in place, checked against the whole rebuild it stands in for. @@ -189,3 +191,5 @@ fn qa_perf_one_file_against_the_whole_rebuild() { whole.as_secs_f64() / single.as_secs_f64().max(f64::MIN_POSITIVE) ); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/state/tests/interleave.rs b/crates/lucisv_server/src/state/tests/interleave.rs index 9541d4a..c4ae096 100644 --- a/crates/lucisv_server/src/state/tests/interleave.rs +++ b/crates/lucisv_server/src/state/tests/interleave.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! An interleaved scan against the one-shot scan it must equal: the //! publication cadence, the tables however often they were published, a //! buffer opened mid-scan, and the events in the same order either way. @@ -185,3 +187,5 @@ fn a_scan_reports_the_same_events_in_the_same_order_however_it_is_driven() { assert_eq!(said, also); assert_eq!(said.len(), 4, "one event per file, and nothing else: {said:?}"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/state/tests/large_file.rs b/crates/lucisv_server/src/state/tests/large_file.rs index d393a15..e089667 100644 --- a/crates/lucisv_server/src/state/tests/large_file.rs +++ b/crates/lucisv_server/src/state/tests/large_file.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The large-file fast path: the threshold is strict and `0` turns it off, //! a fast-path buffer holds the analysis of an empty file and contributes //! nothing to the index, and a buffer changes mode as it crosses the line. @@ -88,3 +90,5 @@ fn a_buffer_edited_past_the_threshold_changes_mode_and_back() { assert!(!doc.large, "and shrank back under it"); assert!(!doc.tokens.is_empty(), "with a full analysis again"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/state/tests/lazy_read.rs b/crates/lucisv_server/src/state/tests/lazy_read.rs index 22d2107..14cba3e 100644 --- a/crates/lucisv_server/src/state/tests/lazy_read.rs +++ b/crates/lucisv_server/src/state/tests/lazy_read.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The lazy read and the folder-first order (perf5-p4 §P4b3, 2026-09-08): //! each file's bytes read once, at its own step, with the open buffer's //! neighbourhood indexed before the rest of the workspace is even walked. @@ -222,3 +224,5 @@ fn the_tables_a_scan_lands_are_the_ones_the_texts_would_have_built() { ); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/state/tests/mod.rs b/crates/lucisv_server/src/state/tests/mod.rs index bd3ab7e..8762223 100644 --- a/crates/lucisv_server/src/state/tests/mod.rs +++ b/crates/lucisv_server/src/state/tests/mod.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The `Workspace` tests: one file per topic, every one driven through the //! real `Workspace` against a scratch tree on disk. //! @@ -282,3 +284,5 @@ fn walk_sources(dir: &Path) -> Vec { out.sort(); out } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/state/tests/open_buffers.rs b/crates/lucisv_server/src/state/tests/open_buffers.rs index 805f9e0..cf74540 100644 --- a/crates/lucisv_server/src/state/tests/open_buffers.rs +++ b/crates/lucisv_server/src/state/tests/open_buffers.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! An open buffer's own analysis (index-scope, 2026-08-28) beats disk in //! the index and is what the index reuses — and the QA attacks on that: //! staleness across a close, and crossing the large-file threshold. @@ -375,3 +377,5 @@ fn qa_a_buffer_huge_on_disk_shrunk_live_becomes_a_real_analysis_to_reuse() { assert_eq!(seen.analyzed, ["p.sv"], "the shrunk buffer's own analysis is reused: {seen:?}"); assert_eq!(ws.index().member("p", "SHRUNK").len(), 1); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/state/tests/persistence.rs b/crates/lucisv_server/src/state/tests/persistence.rs index cb42fce..78540f6 100644 --- a/crates/lucisv_server/src/state/tests/persistence.rs +++ b/crates/lucisv_server/src/state/tests/persistence.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The persistent index cache (docs/features/index-persistence): what a //! warm scan parses, what the key is, where the store lives, and when it //! is read, written or left exactly as it was found. @@ -540,3 +542,5 @@ fn qa_perf_cold_warm_and_half_warm_scans() { } eprintln!("hashing {bytes} bytes of {files} files: {:?} ({sink:016x})", started.elapsed()); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/state/tests/reindex_perf.rs b/crates/lucisv_server/src/state/tests/reindex_perf.rs index 41efee4..fae8300 100644 --- a/crates/lucisv_server/src/state/tests/reindex_perf.rs +++ b/crates/lucisv_server/src/state/tests/reindex_perf.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! What a save and a keystroke cost the index at OpenTitan scale — the //! measurements behind `docs/features/localized-reindex/README.md`. //! @@ -204,3 +206,5 @@ fn what_the_readers_table_holds_at_opentitan_scale() { readers * 4 / 1024 ); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/state/tests/settings.rs b/crates/lucisv_server/src/state/tests/settings.rs index 6ba7562..5c502f9 100644 --- a/crates/lucisv_server/src/state/tests/settings.rs +++ b/crates/lucisv_server/src/state/tests/settings.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! What the walk takes — source extensions, gitignores, the root config's //! excludes and the client's — and which pushed settings ask for a rescan. @@ -182,3 +184,5 @@ fn the_scan_takes_only_source_extensions() { } assert_eq!(ws.index().member("e", "K").len(), 0, "a .txt is not"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/state/tests/size_cap.rs b/crates/lucisv_server/src/state/tests/size_cap.rs index 599b97d..5b2503c 100644 --- a/crates/lucisv_server/src/state/tests/size_cap.rs +++ b/crates/lucisv_server/src/state/tests/size_cap.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `lucisv.index.maxFileSize`: a walked file over the cap is left out of //! the index, an open buffer never is, and every skip is reported with its //! size and the cap. @@ -183,3 +185,5 @@ fn the_default_cap_changes_nothing_about_the_real_corpus() { assert_eq!(capped.index().counts(), uncapped.index().counts(), "and the same index"); assert!(capped.index().files().len() > 500, "premise: the corpus was really scanned"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/state/tests/views.rs b/crates/lucisv_server/src/state/tests/views.rs index 2b47512..bb60d2a 100644 --- a/crates/lucisv_server/src/state/tests/views.rs +++ b/crates/lucisv_server/src/state/tests/views.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The closed-file view cache. //! //! Every test below observes the cache the only honest way there is: it @@ -216,3 +218,5 @@ fn re_hovering_the_oldest_cached_file_saves_it_from_eviction() { "the file nobody has touched since must be what falls off instead: {paths_held:?}" ); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/state/tests/widen.rs b/crates/lucisv_server/src/state/tests/widen.rs index a6ba202..ebb66aa 100644 --- a/crates/lucisv_server/src/state/tests/widen.rs +++ b/crates/lucisv_server/src/state/tests/widen.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The incremental scope widen (docs/features/index-scope): the tables a //! widen lands are the ones a whole rescan would have left, and it reads //! only the files the new folders brought in. @@ -457,3 +459,5 @@ fn a_widen_that_adds_nothing_new_still_refreshes_the_open_buffers() { assert_eq!(ws.index().member("a_pkg", "EDITED").len(), 1, "the live edit is indexed"); assert_eq!(ws.index().member("a_pkg", "K").len(), 0); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/state/views.rs b/crates/lucisv_server/src/state/views.rs index d3bb43f..213ed5f 100644 --- a/crates/lucisv_server/src/state/views.rs +++ b/crates/lucisv_server/src/state/views.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The closed-file view cache: the last few files an answer needed the //! text of, held with their line index so that answering twice about one //! file reads it once — and every rule that drops an entry. @@ -131,3 +133,5 @@ fn trim_views(views: &mut Vec>) { } views.truncate(kept); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/state/watched.rs b/crates/lucisv_server/src/state/watched.rs index d2d9f14..29d2f2d 100644 --- a/crates/lucisv_server/src/state/watched.rs +++ b/crates/lucisv_server/src/state/watched.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! What one path a file watcher named is to the index: a file it holds //! (perhaps under another spelling), a file the scope provably cannot take, //! or neither — which only a rescan can settle @@ -154,3 +156,5 @@ fn canonical(path: &Path) -> Option { Some(real.join(path.file_name()?)) }) } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/symbols.rs b/crates/lucisv_server/src/symbols.rs index 14fe859..8a52176 100644 --- a/crates/lucisv_server/src/symbols.rs +++ b/crates/lucisv_server/src/symbols.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `textDocument/documentSymbol` and `workspace/symbol`, plus the //! `SymbolKind` mapping the rest of the crate shares. @@ -273,3 +275,5 @@ mod tests { assert_eq!(symbols[0].name, "top"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/sync.rs b/crates/lucisv_server/src/sync.rs index ec9fa82..03e2462 100644 --- a/crates/lucisv_server/src/sync.rs +++ b/crates/lucisv_server/src/sync.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Applying a `didChange`'s edits to a buffer. //! //! With `TextDocumentSyncKind::INCREMENTAL` the client stops sending the whole @@ -474,3 +476,5 @@ mod tests { assert_eq!(after, "21x"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/templates.rs b/crates/lucisv_server/src/templates.rs index dfba694..3c83d5e 100644 --- a/crates/lucisv_server/src/templates.rs +++ b/crates/lucisv_server/src/templates.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The template registry — the skeletons `if`, `case`, `always_ff` and a //! declaration expand to, with tabstops. //! @@ -613,3 +615,5 @@ mod tests { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/tokens.rs b/crates/lucisv_server/src/tokens.rs index db1cd8c..af4a1a7 100644 --- a/crates/lucisv_server/src/tokens.rs +++ b/crates/lucisv_server/src/tokens.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `textDocument/semanticTokens/full`, `/range` and `/full/delta`. //! //! Classification comes from the lexer's token stream, refined for plain @@ -1496,3 +1498,5 @@ endmodule reconstructs(src, MODULE); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/tokens/instantiation.rs b/crates/lucisv_server/src/tokens/instantiation.rs index edd1616..2f23583 100644 --- a/crates/lucisv_server/src/tokens/instantiation.rs +++ b/crates/lucisv_server/src/tokens/instantiation.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! AST-guided semantic token overrides for module instantiations and `#(...)` //! parameter lists. //! @@ -334,3 +336,5 @@ impl<'a> Ctx<'a> { &slice[..len] } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/tokens/viewport_sweep.rs b/crates/lucisv_server/src/tokens/viewport_sweep.rs index 3b4b527..3ba2b86 100644 --- a/crates/lucisv_server/src/tokens/viewport_sweep.rs +++ b/crates/lucisv_server/src/tokens/viewport_sweep.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The real-code proof for the viewport answer //! (`docs/features/viewport-highlight/README.md`): over every corpus file and //! a sample of OpenTitan, several windows per file, the **local** range answer @@ -254,3 +256,5 @@ fn viewport_sweep_local_answers_are_valid_and_agree_with_the_accurate_ones() { eprintln!(" other: {example}"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/tokens/window_tests.rs b/crates/lucisv_server/src/tokens/window_tests.rs index 6c3e38e..b36890c 100644 --- a/crates/lucisv_server/src/tokens/window_tests.rs +++ b/crates/lucisv_server/src/tokens/window_tests.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The range answer's window (`semantic_tokens_in_range`): the shapes where //! selecting a window's tokens could lose a piece the full answer has — a //! comment hanging off a token outside the window — and the claim that its @@ -118,3 +120,5 @@ fn a_viewport_costs_the_window_not_the_file() { ); assert!(growth < 3.0, "8x the file cost {growth:.1}x the viewport: {fastest:?}"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/type_def.rs b/crates/lucisv_server/src/type_def.rs index 906776b..d094103 100644 --- a/crates/lucisv_server/src/type_def.rs +++ b/crates/lucisv_server/src/type_def.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `textDocument/typeDefinition`: from a name to where its *type* is declared. //! //! Go-to-definition answers "where does this name come from"; this answers @@ -1543,3 +1545,5 @@ endclass let _ = fs::remove_dir_all(&dir); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/type_hierarchy.rs b/crates/lucisv_server/src/type_hierarchy.rs index ec69656..7cd009e 100644 --- a/crates/lucisv_server/src/type_hierarchy.rs +++ b/crates/lucisv_server/src/type_hierarchy.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `textDocument/prepareTypeHierarchy`, `typeHierarchy/supertypes` and //! `typeHierarchy/subtypes` — the class inheritance tree, both directions. //! @@ -1293,3 +1295,5 @@ endclass ); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/uri.rs b/crates/lucisv_server/src/uri.rs index 2578303..920e8e0 100644 --- a/crates/lucisv_server/src/uri.rs +++ b/crates/lucisv_server/src/uri.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `file:` URI ↔ filesystem path. //! //! `lsp-types` 0.97 models a URI as a `fluent_uri::Uri`, which parses and @@ -148,3 +150,5 @@ mod tests { assert_eq!(percent_decode("%zz"), b"%zz".to_vec()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/src/watch.rs b/crates/lucisv_server/src/watch.rs index 27f641a..cccd512 100644 --- a/crates/lucisv_server/src/watch.rs +++ b/crates/lucisv_server/src/watch.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `workspace/didChangeWatchedFiles`: the index's answer to changes lucisv never //! saw an editor make. //! @@ -300,3 +302,5 @@ mod tests { assert!(!touches_scope(&[event], None)); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/tests/e2e.rs b/crates/lucisv_server/tests/e2e.rs index d42467b..4a3a4fe 100644 --- a/crates/lucisv_server/tests/e2e.rs +++ b/crates/lucisv_server/tests/e2e.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! One end-to-end smoke test: spawn the real binary and speak framed //! JSON-RPC at it over stdio. //! @@ -9246,3 +9248,5 @@ fn a_pulling_client_that_can_refresh_is_asked_to_after_the_grace() { live.finish(); let _ = std::fs::remove_dir_all(&dir); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/tests/grammar.rs b/crates/lucisv_server/tests/grammar.rs index 38b47b8..67c06f2 100644 --- a/crates/lucisv_server/tests/grammar.rs +++ b/crates/lucisv_server/tests/grammar.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The VS Code extension's TextMate grammar, checked against this workspace. //! //! The grammar exists so that fenced code in the server's markdown — hover @@ -175,3 +177,5 @@ fn both_language_ids_are_registered_for_the_grammar() { assert!(declared.contains(language), "grammar registered for undeclared id {language}"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/tests/ifdef_folding.rs b/crates/lucisv_server/tests/ifdef_folding.rs index 07e8131..d4e8099 100644 --- a/crates/lucisv_server/tests/ifdef_folding.rs +++ b/crates/lucisv_server/tests/ifdef_folding.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `` `ifdef `` branch folds over the wire: spawn the real binary, open a //! buffer, ask `textDocument/foldingRange`, and read back the exact ranges an //! editor (and VS Code's sticky scroll, which pins every fold's first line) @@ -123,3 +125,5 @@ fn ifdef_branches_come_back_as_region_folds_over_the_wire() { ); let _ = std::fs::remove_dir_all(&dir); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/lucisv_server/tests/opentitan_references.rs b/crates/lucisv_server/tests/opentitan_references.rs index 8a196c8..ef494f7 100644 --- a/crates/lucisv_server/tests/opentitan_references.rs +++ b/crates/lucisv_server/tests/opentitan_references.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! TODO §65.2 on a real checkout: `textDocument/references` at the `aes` //! instantiation in `hw/ip/aes/dv/tb/tb.sv` and at its `.clk_i` connection. //! @@ -281,3 +283,5 @@ fn under_the_folder_scope_references_stop_at_the_ip_block() { let in_block = |found: &[String]| found.iter().all(|hit| hit.starts_with("hw/ip/aes/")); assert!(in_block(&module) && in_block(&port), "only hw/ip/aes is in scope"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/Cargo.toml b/crates/vlog_formatter/Cargo.toml index 72a1566..e98b785 100644 --- a/crates/vlog_formatter/Cargo.toml +++ b/crates/vlog_formatter/Cargo.toml @@ -1,3 +1,5 @@ +# Author: Guoliang Chen, a Senior Digital Design Engineer + [package] name = "vlog_formatter" version.workspace = true @@ -7,3 +9,5 @@ description = "Verilog/SystemVerilog formatter engine for lucisv" [dependencies] vlog_parser = { path = "../vlog_parser" } + +# Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/examples/auto_sweep.rs b/crates/vlog_formatter/examples/auto_sweep.rs index d8195a8..2faeff9 100644 --- a/crates/vlog_formatter/examples/auto_sweep.rs +++ b/crates/vlog_formatter/examples/auto_sweep.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The `style = "auto"` proof sweep: for every source file under the given //! directories, format it with auto, then ask auto again about the output. //! Counts the files where the second or third format changed a byte (an @@ -127,3 +129,5 @@ fn collect(dir: &Path, out: &mut Vec) { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/src/align.rs b/crates/vlog_formatter/src/align.rs index 5f06651..a807f8c 100644 --- a/crates/vlog_formatter/src/align.rs +++ b/crates/vlog_formatter/src/align.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Alignment inference: read the author's intent out of the original spacing //! and decide, per group of similar lines, whether a construct is laid out //! aligned (padded to a common column) or flush-left (one separator). @@ -311,3 +313,5 @@ mod tests { assert_eq!(flat_width(&doc), Some(14)); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/src/auto.rs b/crates/vlog_formatter/src/auto.rs index dcc2b4e..8468798 100644 --- a/crates/vlog_formatter/src/auto.rs +++ b/crates/vlog_formatter/src/auto.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `style = "auto"`: lay a file out in the preset it is already closest to. //! //! Rather than guess each layout switch from clues in the text, auto formats @@ -167,3 +169,5 @@ mod tests { assert!(one_line_rebroken < reindented); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/src/doc.rs b/crates/vlog_formatter/src/doc.rs index d4997a7..09f2fdf 100644 --- a/crates/vlog_formatter/src/doc.rs +++ b/crates/vlog_formatter/src/doc.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Wadler-style document IR, the same core idea as `ruff_formatter` (and //! prettier): build a tree of texts, line-break opportunities, groups, and //! indents; the printer then picks flat or broken layouts based on the @@ -70,3 +72,5 @@ pub fn join(items: Vec, sep: Doc) -> Vec { } out } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/src/fence.rs b/crates/vlog_formatter/src/fence.rs index 601b992..2eb2aaa 100644 --- a/crates/vlog_formatter/src/fence.rs +++ b/crates/vlog_formatter/src/fence.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `// verilog_format: off` / `// verilog_format: on` fences. //! //! A fenced region is emitted as the exact source bytes it was written with, @@ -559,3 +561,5 @@ mod tests { assert!(protected_regions("module m;\n\ta = 1;\nendmodule\n").is_empty()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/src/format/branch.rs b/crates/vlog_formatter/src/format/branch.rs index a205e57..da227a5 100644 --- a/crates/vlog_formatter/src/format/branch.rs +++ b/crates/vlog_formatter/src/format/branch.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `if`/`else` chains — procedural and generate — and the two style //! switches that decide where their keywords go: a body's `begin` //! (`Style::begin`) and the `else` after an `end` (`Style::else_keyword`). @@ -132,3 +134,5 @@ impl<'a> Fmt<'a> { fn ends_labelled(s: &Stmt) -> bool { matches!(&s.kind, StmtKind::Block { end_label: Some(_), .. }) } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/src/format/class.rs b/crates/vlog_formatter/src/format/class.rs index 7038e15..7c56d50 100644 --- a/crates/vlog_formatter/src/format/class.rs +++ b/crates/vlog_formatter/src/format/class.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Classes and constraints: the `class` header and body, and every //! constraint form — the `constraint c { ... }` declaration, a //! `randomize() with { ... }` block, the `->`/`if`/`foreach`/`solve`/ @@ -375,3 +377,5 @@ impl<'a> Fmt<'a> { concat(docs) } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/src/format/comment.rs b/crates/vlog_formatter/src/format/comment.rs index 0ebe699..529b13d 100644 --- a/crates/vlog_formatter/src/format/comment.rs +++ b/crates/vlog_formatter/src/format/comment.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Where a comment prints relative to the tokens around it: the leading //! and trailing comments a node owns (`Meta`), the comments written in a //! construct's own gaps (`slot_comments`, `inline_comments`), the ones @@ -299,3 +301,5 @@ pub(super) fn trailing_ends_line(meta: &Meta) -> bool { None => meta.before_sep.last().is_some_and(|c| is_line_comment(&c.text)), } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/src/format/cover.rs b/crates/vlog_formatter/src/format/cover.rs index 65210d7..e0b494e 100644 --- a/crates/vlog_formatter/src/format/cover.rs +++ b/crates/vlog_formatter/src/format/cover.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Covergroups: the `covergroup` header with its sampling event, the //! coverpoint and cross items, bins with their value, transition and //! `binsof` specs, and `option`/`type_option` assignments. @@ -416,3 +418,5 @@ impl<'a> Fmt<'a> { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/src/format/decl.rs b/crates/vlog_formatter/src/format/decl.rs index 1d0f78a..870ce8c 100644 --- a/crates/vlog_formatter/src/format/decl.rs +++ b/crates/vlog_formatter/src/format/decl.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Declarations and the types they name: a `DataType` with its packed //! dimensions, unpacked dimensions, the declarator list of a //! `logic a, b = 1;`, `parameter`/`localparam` and their alignment, @@ -478,3 +480,5 @@ impl<'a> Fmt<'a> { concat(vec![concat(head), indent(inner), Doc::HardLine, text("}")]) } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/src/format/expr.rs b/crates/vlog_formatter/src/format/expr.rs index 51b4da0..ff0e82f 100644 --- a/crates/vlog_formatter/src/format/expr.rs +++ b/crates/vlog_formatter/src/format/expr.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Expressions: the dispatch from `ExprKind` to its layout, the binary //! chain that breaks `a + b + c` as one unit, the ternary with comments //! inside it, the compact spelling used inside `[ ... ]`, and the small @@ -508,3 +510,5 @@ impl<'a> Fmt<'a> { concat(docs) } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/src/format/instance.rs b/crates/vlog_formatter/src/format/instance.rs index 2189f56..c40dd98 100644 --- a/crates/vlog_formatter/src/format/instance.rs +++ b/crates/vlog_formatter/src/format/instance.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Instantiations: a module instance with its parameter overrides and //! named or ordered connections, the alignment of a connection list, //! `bind`, and gate instances. @@ -492,3 +494,5 @@ pub(super) fn drive_strength(fmt: &Fmt<'_>, s: &DriveStrength) -> Doc { docs.push(text(")")); concat(docs) } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/src/format/item.rs b/crates/vlog_formatter/src/format/item.rs index 47ab5c0..e51e800 100644 --- a/crates/vlog_formatter/src/format/item.rs +++ b/crates/vlog_formatter/src/format/item.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The file and its items: a source file or fragment, the sequence of //! items at one indent level with the blank lines the source wrote, the //! dispatch from `ItemKind` to the construct that prints it, and the @@ -580,3 +582,5 @@ impl<'a> Fmt<'a> { concat(docs) } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/src/format/list.rs b/crates/vlog_formatter/src/format/list.rs index 080d44b..a60308f 100644 --- a/crates/vlog_formatter/src/format/list.rs +++ b/crates/vlog_formatter/src/format/list.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Comma-separated lists and how their elements are aligned: the //! bracketed list that breaks one element per line when it does not fit //! (`delimited`), the bare list with no brackets to open (`plain_list`), @@ -424,3 +426,5 @@ impl<'a> Fmt<'a> { breaks } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/src/format/mod.rs b/crates/vlog_formatter/src/format/mod.rs index ce189ea..6470c67 100644 --- a/crates/vlog_formatter/src/format/mod.rs +++ b/crates/vlog_formatter/src/format/mod.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Formatting rules: AST → Doc. //! //! The default style follows Verible's defaults: 2-space indent, @@ -366,3 +368,5 @@ fn skip_trivia(src: &str, from: usize) -> Option { } None } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/src/format/module.rs b/crates/vlog_formatter/src/format/module.rs index 0e0edb2..5d7098a 100644 --- a/crates/vlog_formatter/src/format/module.rs +++ b/crates/vlog_formatter/src/format/module.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! What a module or interface declares at its boundary: the header //! through its `;` (name, imports, parameter ports, ANSI or non-ANSI //! ports), the alignment of an ANSI port list, `modport`s and clocking @@ -450,3 +452,5 @@ impl<'a> Fmt<'a> { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/src/format/phrase.rs b/crates/vlog_formatter/src/format/phrase.rs index 19e0b6e..cc03019 100644 --- a/crates/vlog_formatter/src/format/phrase.rs +++ b/crates/vlog_formatter/src/format/phrase.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Recurring two- and three-token phrases, each printed with the //! comments written in its gaps: a keyword and what follows it, `= value`, //! the `;` that ends a statement, `end : label`, `[msb:lsb]`, the @@ -255,3 +257,5 @@ impl<'a> Fmt<'a> { concat(docs) } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/src/format/randsequence.rs b/crates/vlog_formatter/src/format/randsequence.rs index b99113f..dea7db9 100644 --- a/crates/vlog_formatter/src/format/randsequence.rs +++ b/crates/vlog_formatter/src/format/randsequence.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `randsequence` — laying out the production grammar of IEEE 1800 §18.17. //! //! One production per line, indented inside the `randsequence`/`endsequence` @@ -223,3 +225,5 @@ impl<'a> Fmt<'a> { concat(vec![text("{"), indent(body), Doc::HardLine, text("}")]) } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/src/format/routine.rs b/crates/vlog_formatter/src/format/routine.rs index d710bc8..d66b8ac 100644 --- a/crates/vlog_formatter/src/format/routine.rs +++ b/crates/vlog_formatter/src/format/routine.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Functions and tasks: the argument list a `function`, `task`, //! `covergroup` and `property` share (`tf_args`), the two declarations //! with their prototype forms, `let`, and the DPI `import`/`export` @@ -296,3 +298,5 @@ fn dpi_import_prefix(d: &DpiImport) -> String { } s } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/src/format/stmt.rs b/crates/vlog_formatter/src/format/stmt.rs index 86a17e9..addf6fd 100644 --- a/crates/vlog_formatter/src/format/stmt.rs +++ b/crates/vlog_formatter/src/format/stmt.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Statements: the `begin … end` block, a statement as the body of a //! header (a cuddled block or an indented line), the dispatch from //! `StmtKind` to its layout, `case` items, and the @@ -653,3 +655,5 @@ fn is_bare(meta: &Meta) -> bool { && meta.before_sep.is_empty() && meta.attrs.is_empty() } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/src/format/sva.rs b/crates/vlog_formatter/src/format/sva.rs index d33c1af..252cd35 100644 --- a/crates/vlog_formatter/src/format/sva.rs +++ b/crates/vlog_formatter/src/format/sva.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Assertions (IEEE 1800-2017 §16): `property`/`sequence` declarations, //! concurrent assertions with their action blocks, `disable iff`, and //! the property-expression grammar. @@ -517,3 +519,5 @@ impl<'a> Fmt<'a> { docs.push(text(" ")); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/src/format/verbatim.rs b/crates/vlog_formatter/src/format/verbatim.rs index c2741a6..3c4f161 100644 --- a/crates/vlog_formatter/src/format/verbatim.rs +++ b/crates/vlog_formatter/src/format/verbatim.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Bytes the formatter copies rather than lays out: fenced //! (`// verilog_format: off`) regions, the untouched runs of a `--lines` //! pass, compiler directives, attributes and macro invocations — and the @@ -169,3 +171,5 @@ fn strip_blanks(line: &str, n: usize) -> &str { } rest } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/src/lib.rs b/crates/vlog_formatter/src/lib.rs index 3d076c8..004363d 100644 --- a/crates/vlog_formatter/src/lib.rs +++ b/crates/vlog_formatter/src/lib.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Formatter engine: document IR + printer + formatting rules. pub mod align; @@ -17,3 +19,5 @@ pub use range::LineRanges; pub use selection::format_selection; pub use style::Style; pub use verify::{verify_convergence, verify_equivalence, VerificationError}; + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/src/printer.rs b/crates/vlog_formatter/src/printer.rs index 1935e11..513d3a5 100644 --- a/crates/vlog_formatter/src/printer.rs +++ b/crates/vlog_formatter/src/printer.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The printer: renders a [`Doc`] tree to text within a target line width. //! //! This is the classic "strictly pretty" algorithm (also at the heart of @@ -308,3 +310,5 @@ mod tests { assert_eq!(p(80, d), "a\nb"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/src/range.rs b/crates/vlog_formatter/src/range.rs index 43e1ac4..d2c59c6 100644 --- a/crates/vlog_formatter/src/range.rs +++ b/crates/vlog_formatter/src/range.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `--lines M-N` range formatting: lay out only what the caller selected. //! //! A range is morally an inverted fence. The unit of formatting is an *item*: @@ -536,3 +538,5 @@ mod tests { assert_eq!(next_code("a;\n\n ", 2), None, "nothing but whitespace left"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/src/selection/locate.rs b/crates/vlog_formatter/src/selection/locate.rs index ccee056..f36f93d 100644 --- a/crates/vlog_formatter/src/selection/locate.rs +++ b/crates/vlog_formatter/src/selection/locate.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Finding the run of sibling units one selected line span names. //! //! The walk starts at the file scope and goes down while the selection sits @@ -260,3 +262,5 @@ pub(super) fn line_start(src: &str, at: usize) -> usize { fn is_indent(c: char) -> bool { c == ' ' || c == '\t' } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/src/selection/mod.rs b/crates/vlog_formatter/src/selection/mod.rs index 113ccf7..c16d2f7 100644 --- a/crates/vlog_formatter/src/selection/mod.rs +++ b/crates/vlog_formatter/src/selection/mod.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Selection formatting: lay out the smallest run of sibling items or //! statements the selected lines cover, at the indentation it was written //! at, and splice it into otherwise untouched bytes. @@ -240,3 +242,5 @@ fn to_crlf(text: &str) -> String { } out } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/src/selection/scope.rs b/crates/vlog_formatter/src/selection/scope.rs index 1cefd21..8274850 100644 --- a/crates/vlog_formatter/src/selection/scope.rs +++ b/crates/vlog_formatter/src/selection/scope.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The sibling lists a selection can land in, and the units they hold. //! //! A *scope* is a sibling list exactly as `fence.rs` defines one — an item @@ -232,3 +234,5 @@ fn stmt_scopes<'t>(stmt: &'t Stmt, out: &mut Vec>) { _ => {} } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/src/style.rs b/crates/vlog_formatter/src/style.rs index b5c3505..ab73171 100644 --- a/crates/vlog_formatter/src/style.rs +++ b/crates/vlog_formatter/src/style.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Named formatting styles: the house layouts a project picks with //! `[format] style = ""`, `--style ` or `lucisv.format.style`. //! @@ -234,3 +236,5 @@ mod tests { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/src/verify.rs b/crates/vlog_formatter/src/verify.rs index 33569ec..20adf40 100644 --- a/crates/vlog_formatter/src/verify.rs +++ b/crates/vlog_formatter/src/verify.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Runtime safety net: token-stream equivalence and convergence checks. //! //! These are the two checks Verible runs before it writes a formatted file @@ -373,3 +375,5 @@ fn first_line_difference(a: &str, b: &str) -> (usize, String, String) { ); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/tests/cases.rs b/crates/vlog_formatter/tests/cases.rs index 0957212..0918b2a 100644 --- a/crates/vlog_formatter/tests/cases.rs +++ b/crates/vlog_formatter/tests/cases.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Table tests: every `tests/cases/*.cases` file holds a list of small //! `{input, expected}` pairs, in the spirit of Verible's `formatter_test.cc`. //! Cases are separated by a `====` line, input from expected by a `----` line, @@ -189,3 +191,5 @@ fn case_tables() { failures.join("\n") ); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/tests/deep_nesting.rs b/crates/vlog_formatter/tests/deep_nesting.rs index 72785d9..08f80c0 100644 --- a/crates/vlog_formatter/tests/deep_nesting.rs +++ b/crates/vlog_formatter/tests/deep_nesting.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The formatter's recursive walk against the parser's depth limit. //! //! `vlog_parser` bounds AST depth (`MAX_NESTING_DEPTH`), and every recursive @@ -103,3 +105,5 @@ fn nesting_past_the_limit_never_reaches_the_formatter() { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/tests/fences.rs b/crates/vlog_formatter/tests/fences.rs index 469e7c0..5d96d4d 100644 --- a/crates/vlog_formatter/tests/fences.rs +++ b/crates/vlog_formatter/tests/fences.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `// verilog_format: off` fences: the properties the `.cases` table cannot //! state directly — byte-exactness of the spliced range, idempotency of a //! second pass, and that the safety net still rejects a *corrupted* region. @@ -245,3 +247,5 @@ fn the_matcher_agrees_with_what_the_formatter_honours() { assert!(out.contains("wire a;"), "{spelling} fenced but should not have:\n{out}"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/tests/fixtures.rs b/crates/vlog_formatter/tests/fixtures.rs index 18b2f22..024dbd4 100644 --- a/crates/vlog_formatter/tests/fixtures.rs +++ b/crates/vlog_formatter/tests/fixtures.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Snapshot tests: every file in `tests/fixtures/` is formatted and compared //! against `tests/snapshots/.formatted`; the result must also be //! idempotent (formatting the output again changes nothing). @@ -95,3 +97,5 @@ fn small_cases() { assert_eq!(&got, expected, "input: {input}"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/tests/format_options.rs b/crates/vlog_formatter/tests/format_options.rs index 52010c3..ae2d4e7 100644 --- a/crates/vlog_formatter/tests/format_options.rs +++ b/crates/vlog_formatter/tests/format_options.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The `[format]` config keys — the layout choices that are off unless a //! project turns them on (TODO §54.3). //! @@ -238,3 +240,5 @@ endclass "; assert_eq!(format(after, &on()), after); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/tests/port_entry_refusal.rs b/crates/vlog_formatter/tests/port_entry_refusal.rs index 16476f1..699c0de 100644 --- a/crates/vlog_formatter/tests/port_entry_refusal.rs +++ b/crates/vlog_formatter/tests/port_entry_refusal.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The formatter still refuses every unfinished-connection shape the tolerant //! parser now keeps inside its own entry (TODO §68.2, //! `docs/features/port-entry-grace/README.md`). @@ -51,3 +53,5 @@ fn the_completed_entries_format() { let src = "module m;\n sub u0 (.a(x), .po(), .b(y));\nendmodule\n"; assert!(format_source(src, &Config::default()).is_ok()); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/tests/ranges.rs b/crates/vlog_formatter/tests/ranges.rs index 0104eb1..163df94 100644 --- a/crates/vlog_formatter/tests/ranges.rs +++ b/crates/vlog_formatter/tests/ranges.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `--lines` range formatting: only the selected constructs are laid out, and //! every other byte comes back exactly as it was written. //! @@ -449,3 +451,5 @@ fn corpus_files(want: usize) -> Option> { } (found.len() == want).then_some(found) } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/tests/selection.rs b/crates/vlog_formatter/tests/selection.rs index 22f4ed1..bf2eca5 100644 --- a/crates/vlog_formatter/tests/selection.rs +++ b/crates/vlog_formatter/tests/selection.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Selection formatting (`format_selection`): the smallest run of sibling //! items or statements a selection covers is laid out at the indentation it //! was written at, and every other byte of the file stays as written. @@ -449,3 +451,5 @@ fn a_column_zero_directive_does_not_set_the_indentation_of_the_code_it_guards() // it, as a whole-file run indents them. assert_eq!(middle(src, &out, 2, 4), " `ifdef A\n wire a;\n `endif\n"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/tests/styles.rs b/crates/vlog_formatter/tests/styles.rs index 5093d2a..c5bf706 100644 --- a/crates/vlog_formatter/tests/styles.rs +++ b/crates/vlog_formatter/tests/styles.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The named styles (`vlog_formatter::style`): one test per layout switch, //! each flipping that switch alone on top of the default, then every preset //! on one module. @@ -684,3 +686,5 @@ endmodule let plain = format(BRANCHES, style::GOOGLE); assert!(plain.contains(" end else if (b) begin\n"), "{plain}"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_formatter/tests/verification.rs b/crates/vlog_formatter/tests/verification.rs index 22e2961..dcda3a7 100644 --- a/crates/vlog_formatter/tests/verification.rs +++ b/crates/vlog_formatter/tests/verification.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Tests for the runtime safety net: token-stream equivalence, convergence, //! and the failsafe behavior of `format_source`. @@ -3153,3 +3155,5 @@ fn a_dropped_packed_keyword_in_an_override_argument_is_rejected() { "module m;\n sub #(.T(struct {logic a;})) u ();\nendmodule\n", ); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/Cargo.toml b/crates/vlog_linter/Cargo.toml index 6667297..736e77d 100644 --- a/crates/vlog_linter/Cargo.toml +++ b/crates/vlog_linter/Cargo.toml @@ -1,3 +1,5 @@ +# Author: Guoliang Chen, a Senior Digital Design Engineer + [package] name = "vlog_linter" version.workspace = true @@ -24,3 +26,5 @@ lucisv_core = { path = "../lucisv_core" } # something the formatter would refuse. The library still depends on # vlog_parser + std alone (`cargo tree -p vlog_linter -e normal`). vlog_formatter = { path = "../vlog_formatter" } + +# Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/examples/vscode_lint_settings.rs b/crates/vlog_linter/examples/vscode_lint_settings.rs index 037014c..677a5d4 100644 --- a/crates/vlog_linter/examples/vscode_lint_settings.rs +++ b/crates/vlog_linter/examples/vscode_lint_settings.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Prints the `lucisv.lint.severity.*` and `lucisv.lint.rules.*` settings for //! `editors/vscode/package.json`, generated from the rule registry. //! @@ -14,3 +16,5 @@ fn main() { print!("{}", vlog_linter::vscode_lint_settings()); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/context.rs b/crates/vlog_linter/src/context.rs index 6d07537..5aed628 100644 --- a/crates/vlog_linter/src/context.rs +++ b/crates/vlog_linter/src/context.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Everything a rule is given to look at: text, tokens, tree, positions. use std::cell::OnceCell; @@ -631,3 +633,5 @@ mod tests { assert_eq!(format!("{:?}", ctx.file()), format!("{old_tree:?}")); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/decls.rs b/crates/vlog_linter/src/decls.rs index a1f4f00..a08fc3e 100644 --- a/crates/vlog_linter/src/decls.rs +++ b/crates/vlog_linter/src/decls.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Every declared type and every dimension in a file. //! //! A `DataType` is written in a dozen places — a port, a parameter, a @@ -329,3 +331,5 @@ mod tests { assert_eq!(packed_widths(src), vec!["[9:0]"]); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/exprs.rs b/crates/vlog_linter/src/exprs.rs index b001ce1..d5aa6e9 100644 --- a/crates/vlog_linter/src/exprs.rs +++ b/crates/vlog_linter/src/exprs.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Every expression written in a file. //! //! `visit` walks the item and statement spines and `decls` the types and @@ -313,3 +315,5 @@ mod tests { assert_eq!(ternaries("module m;\nendmodule\n"), 0); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/interfaces.rs b/crates/vlog_linter/src/interfaces.rs index 3ced497..8b3449b 100644 --- a/crates/vlog_linter/src/interfaces.rs +++ b/crates/vlog_linter/src/interfaces.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! What one file declares that a project census has to know: each module's //! connectable surface, and each package's exported names. //! @@ -484,3 +486,5 @@ mod package_tests { assert_eq!(swapped, vec![("p".to_string(), Some(vec!["B".to_string()]))]); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/lib.rs b/crates/vlog_linter/src/lib.rs index f4afc30..29c2f68 100644 --- a/crates/vlog_linter/src/lib.rs +++ b/crates/vlog_linter/src/lib.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Syntactic lint rules for Verilog/SystemVerilog — the engine behind //! `lucisv check`. //! @@ -335,3 +337,5 @@ mod tests { assert!(run(&src, None, &default_rules()).is_empty()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/literal.rs b/crates/vlog_linter/src/literal.rs index e90d17b..40b6a1d 100644 --- a/crates/vlog_linter/src/literal.rs +++ b/crates/vlog_linter/src/literal.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Sized based literals, read the way the two width rules need them. //! //! `truncated-numeric-literal` asks "how many bits does what is written @@ -154,3 +156,5 @@ mod tests { assert_eq!(bits("8'dx"), None, "a decimal unknown says nothing about width"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/module_decls.rs b/crates/vlog_linter/src/module_decls.rs index 0f6de23..5975f4a 100644 --- a/crates/vlog_linter/src/module_decls.rs +++ b/crates/vlog_linter/src/module_decls.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The nets, variables and ports a module declares — what the two signal //! naming rules judge. //! @@ -232,3 +234,5 @@ mod tests { assert!(signals(src).is_empty()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/naming.rs b/crates/vlog_linter/src/naming.rs index 33edf3e..79f3c26 100644 --- a/crates/vlog_linter/src/naming.rs +++ b/crates/vlog_linter/src/naming.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The naming-style presets the naming rules check against. //! //! Verible spells its naming conventions as RE2 regular expressions, and @@ -176,3 +178,5 @@ mod tests { assert!(!is_escaped("my_name")); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/options.rs b/crates/vlog_linter/src/options.rs index e2a4a20..46b6a50 100644 --- a/crates/vlog_linter/src/options.rs +++ b/crates/vlog_linter/src/options.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Per-rule options: what a rule may be configured with, and the validated //! map one run carries. //! @@ -600,3 +602,5 @@ mod tests { assert_eq!(OptionDefault::List(&[]).as_written(), "[]"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/preproc.rs b/crates/vlog_linter/src/preproc.rs index ff24fff..2f161f9 100644 --- a/crates/vlog_linter/src/preproc.rs +++ b/crates/vlog_linter/src/preproc.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! What a preprocessor token says: the name a macro invocation calls, and the //! word and operand a compiler directive carries. //! @@ -103,3 +105,5 @@ mod tests { .all(|t| directive_word(t).is_none())); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/regex.rs b/crates/vlog_linter/src/regex.rs index aba8338..14976c4 100644 --- a/crates/vlog_linter/src/regex.rs +++ b/crates/vlog_linter/src/regex.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The small regular-expression engine the naming options are spelled with. //! //! Verible spells every naming convention as an RE2 pattern, and §34's @@ -714,3 +716,5 @@ mod tests { assert!(Regex::compile("\\é").is_err()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/registry.rs b/crates/vlog_linter/src/registry.rs index 4798ebf..bdc5586 100644 --- a/crates/vlog_linter/src/registry.rs +++ b/crates/vlog_linter/src/registry.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The rule trait and the table of rules that exist. use crate::context::LintContext; @@ -547,3 +549,5 @@ mod tests { assert!(rule_by_name("no-such-rule").is_none()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rule_docs.rs b/crates/vlog_linter/src/rule_docs.rs index 5128e2c..1128208 100644 --- a/crates/vlog_linter/src/rule_docs.rs +++ b/crates/vlog_linter/src/rule_docs.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The rule reference, generated from the registry. //! //! Verible ships `--generate_markdown` so its rule documentation cannot drift @@ -322,3 +324,5 @@ mod tests { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/always_comb.rs b/crates/vlog_linter/src/rules/always_comb.rs index 7d2fd44..7097266 100644 --- a/crates/vlog_linter/src/rules/always_comb.rs +++ b/crates/vlog_linter/src/rules/always_comb.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `always-comb` — write combinational logic as `always_comb`. use crate::context::LintContext; @@ -162,3 +164,5 @@ mod tests { assert_eq!(violations(src).len(), 1, "{:?}", violations(src)); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/always_comb_blocking.rs b/crates/vlog_linter/src/rules/always_comb_blocking.rs index 4f04d86..b0fdd88 100644 --- a/crates/vlog_linter/src/rules/always_comb_blocking.rs +++ b/crates/vlog_linter/src/rules/always_comb_blocking.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `always-comb-blocking` — combinational logic assigns with `=`. use crate::context::LintContext; @@ -99,3 +101,5 @@ mod tests { assert!(violations(src).is_empty()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/always_ff_non_blocking.rs b/crates/vlog_linter/src/rules/always_ff_non_blocking.rs index 2fd2709..c99ca12 100644 --- a/crates/vlog_linter/src/rules/always_ff_non_blocking.rs +++ b/crates/vlog_linter/src/rules/always_ff_non_blocking.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `always-ff-non-blocking` — clocked logic assigns with `<=`. use crate::context::LintContext; @@ -103,3 +105,5 @@ mod tests { assert!(violations(src).is_empty()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/banned_declared_name_patterns.rs b/crates/vlog_linter/src/rules/banned_declared_name_patterns.rs index bf80b76..1221318 100644 --- a/crates/vlog_linter/src/rules/banned_declared_name_patterns.rs +++ b/crates/vlog_linter/src/rules/banned_declared_name_patterns.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `banned-declared-name-patterns` — names a project has forbidden. use crate::context::LintContext; @@ -137,3 +139,5 @@ mod tests { assert!(found[0].span.start < found[1].span.start); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/case_missing_default.rs b/crates/vlog_linter/src/rules/case_missing_default.rs index 22f6241..704bd51 100644 --- a/crates/vlog_linter/src/rules/case_missing_default.rs +++ b/crates/vlog_linter/src/rules/case_missing_default.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `case-missing-default` — every case statement needs a `default` branch. use crate::context::LintContext; @@ -160,3 +162,5 @@ mod tests { assert_eq!(&src[found[0].span.as_range()], "case (WIDTH)", "header only"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/constraint_name_style.rs b/crates/vlog_linter/src/rules/constraint_name_style.rs index 7ee61fc..a819143 100644 --- a/crates/vlog_linter/src/rules/constraint_name_style.rs +++ b/crates/vlog_linter/src/rules/constraint_name_style.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `constraint-name-style` — constraint names end in `_c`. use crate::context::LintContext; @@ -125,3 +127,5 @@ mod tests { assert_eq!(ConstraintNameStyle.check(&ctx).len(), 1); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/create_object_name_match.rs b/crates/vlog_linter/src/rules/create_object_name_match.rs index 0f9621c..01303a6 100644 --- a/crates/vlog_linter/src/rules/create_object_name_match.rs +++ b/crates/vlog_linter/src/rules/create_object_name_match.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `create-object-name-match` — `type_id::create("x")` names the variable `x`. use crate::context::LintContext; @@ -176,3 +178,5 @@ mod tests { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/dff_name_style.rs b/crates/vlog_linter/src/rules/dff_name_style.rs index 439d5bc..9d23e17 100644 --- a/crates/vlog_linter/src/rules/dff_name_style.rs +++ b/crates/vlog_linter/src/rules/dff_name_style.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `dff-name-style` — a flip-flop's output and its next-state input are named //! for each other. @@ -457,3 +459,5 @@ mod tests { assert!(with(&src, "waive_ifs_with_conditions", "[\"my_reset\"]").is_empty()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/disable_statement.rs b/crates/vlog_linter/src/rules/disable_statement.rs index fad040c..7407a3b 100644 --- a/crates/vlog_linter/src/rules/disable_statement.rs +++ b/crates/vlog_linter/src/rules/disable_statement.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `disable-statement` — `disable` only a sequential block, or `disable fork`. use std::collections::BTreeSet; @@ -155,3 +157,5 @@ mod tests { assert_eq!(violations(src).len(), 1); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/duplicate_declaration.rs b/crates/vlog_linter/src/rules/duplicate_declaration.rs index c88b1a2..aa6190e 100644 --- a/crates/vlog_linter/src/rules/duplicate_declaration.rs +++ b/crates/vlog_linter/src/rules/duplicate_declaration.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `duplicate-declaration` — one name declared twice in one scope. use crate::context::LintContext; @@ -311,3 +313,5 @@ mod tests { assert!(violations(two).is_empty()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/empty_item.rs b/crates/vlog_linter/src/rules/empty_item.rs index 88a9377..6a7fd67 100644 --- a/crates/vlog_linter/src/rules/empty_item.rs +++ b/crates/vlog_linter/src/rules/empty_item.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `empty-item` — no stray `;` where an item belongs. use crate::context::LintContext; @@ -192,3 +194,5 @@ mod tests { assert!(violations("module m;\n wire a;\nendmodule\n").is_empty()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/endif_comment.rs b/crates/vlog_linter/src/rules/endif_comment.rs index 10513e8..014cdde 100644 --- a/crates/vlog_linter/src/rules/endif_comment.rs +++ b/crates/vlog_linter/src/rules/endif_comment.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `endif-comment` — say which `` `ifdef `` an `` `endif `` closes. use crate::context::LintContext; @@ -192,3 +194,5 @@ mod tests { assert_eq!(violations(src).len(), 1); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/enum_name_style.rs b/crates/vlog_linter/src/rules/enum_name_style.rs index 1d1a731..f2311bf 100644 --- a/crates/vlog_linter/src/rules/enum_name_style.rs +++ b/crates/vlog_linter/src/rules/enum_name_style.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `enum-name-style` — enum typedef names are `lower_snake_case` ending `_e` //! or `_t`. @@ -160,3 +162,5 @@ mod tests { assert!(EnumNameStyle.check(&ctx).is_empty(), "and a leading `_` now passes"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/explicit_begin.rs b/crates/vlog_linter/src/rules/explicit_begin.rs index d845dfa..16bc5e1 100644 --- a/crates/vlog_linter/src/rules/explicit_begin.rs +++ b/crates/vlog_linter/src/rules/explicit_begin.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `explicit-begin` — a body is a `begin ... end` block, always. use crate::context::LintContext; @@ -328,3 +330,5 @@ mod tests { assert!(violations(src).is_empty(), "{:?}", violations(src)); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/explicit_function_lifetime.rs b/crates/vlog_linter/src/rules/explicit_function_lifetime.rs index 0804737..163458b 100644 --- a/crates/vlog_linter/src/rules/explicit_function_lifetime.rs +++ b/crates/vlog_linter/src/rules/explicit_function_lifetime.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `explicit-function-lifetime` — say `automatic` or `static` outside a class. use crate::context::LintContext; @@ -147,3 +149,5 @@ mod tests { assert!(violations(src).is_empty(), "{:?}", violations(src)); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/explicit_function_task_parameter_type.rs b/crates/vlog_linter/src/rules/explicit_function_task_parameter_type.rs index c45fb8d..2780598 100644 --- a/crates/vlog_linter/src/rules/explicit_function_task_parameter_type.rs +++ b/crates/vlog_linter/src/rules/explicit_function_task_parameter_type.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `explicit-function-task-parameter-type` — every formal gets a storage type. use crate::context::LintContext; @@ -150,3 +152,5 @@ mod tests { assert_eq!(violations(src).len(), 1); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/explicit_parameter_storage_type.rs b/crates/vlog_linter/src/rules/explicit_parameter_storage_type.rs index 87f8ce3..d1ac6a2 100644 --- a/crates/vlog_linter/src/rules/explicit_parameter_storage_type.rs +++ b/crates/vlog_linter/src/rules/explicit_parameter_storage_type.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `explicit-parameter-storage-type` — every parameter names its type. use crate::context::LintContext; @@ -148,3 +150,5 @@ mod tests { assert_ne!(found[0].span.start, found[1].span.start); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/explicit_task_lifetime.rs b/crates/vlog_linter/src/rules/explicit_task_lifetime.rs index 13dfa38..0726551 100644 --- a/crates/vlog_linter/src/rules/explicit_task_lifetime.rs +++ b/crates/vlog_linter/src/rules/explicit_task_lifetime.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `explicit-task-lifetime` — say `automatic` or `static` outside a class. use crate::context::LintContext; @@ -118,3 +120,5 @@ mod tests { assert!(violations(src).is_empty(), "{:?}", violations(src)); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/forbid_consecutive_null_statements.rs b/crates/vlog_linter/src/rules/forbid_consecutive_null_statements.rs index cc0aaae..bf35d53 100644 --- a/crates/vlog_linter/src/rules/forbid_consecutive_null_statements.rs +++ b/crates/vlog_linter/src/rules/forbid_consecutive_null_statements.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `forbid-consecutive-null-statements` — no `;;` where a statement belongs. use crate::context::LintContext; @@ -118,3 +120,5 @@ mod tests { assert!(violations(src).is_empty(), "{:?}", violations(src)); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/forbid_defparam.rs b/crates/vlog_linter/src/rules/forbid_defparam.rs index c3dbe5a..6e8833e 100644 --- a/crates/vlog_linter/src/rules/forbid_defparam.rs +++ b/crates/vlog_linter/src/rules/forbid_defparam.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `forbid-defparam` — `defparam` is deprecated; override at instantiation. use crate::context::LintContext; @@ -91,3 +93,5 @@ mod tests { assert_eq!(violations(src).len(), 1); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/forbid_line_continuations.rs b/crates/vlog_linter/src/rules/forbid_line_continuations.rs index 5e394f3..e792a8c 100644 --- a/crates/vlog_linter/src/rules/forbid_line_continuations.rs +++ b/crates/vlog_linter/src/rules/forbid_line_continuations.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `forbid-line-continuations` — no `\` breaking a string literal. use crate::context::LintContext; @@ -127,3 +129,5 @@ mod tests { assert_eq!(violations(src).len(), 2, "{:?}", violations(src)); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/forbid_negative_array_dim.rs b/crates/vlog_linter/src/rules/forbid_negative_array_dim.rs index 3812f6a..0a704d1 100644 --- a/crates/vlog_linter/src/rules/forbid_negative_array_dim.rs +++ b/crates/vlog_linter/src/rules/forbid_negative_array_dim.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `forbid-negative-array-dim` — a negative literal inside a dimension. use crate::context::LintContext; @@ -142,3 +144,5 @@ mod tests { assert!(violations("module m;\n logic [WIDTH-1:0] v;\nendmodule\n").is_empty()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/forbidden_macro.rs b/crates/vlog_linter/src/rules/forbidden_macro.rs index dfdf889..b9c178b 100644 --- a/crates/vlog_linter/src/rules/forbidden_macro.rs +++ b/crates/vlog_linter/src/rules/forbidden_macro.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `forbidden-macro` — macros a project has decided nothing should call. use crate::context::LintContext; @@ -150,3 +152,5 @@ mod tests { assert!(with(src, "[]").is_empty()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/generate_label.rs b/crates/vlog_linter/src/rules/generate_label.rs index 777735d..cc677d0 100644 --- a/crates/vlog_linter/src/rules/generate_label.rs +++ b/crates/vlog_linter/src/rules/generate_label.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `generate-label` — every generate block carries a label. use crate::context::LintContext; @@ -116,3 +118,5 @@ mod tests { assert!(GenerateLabel.check(&ctx).is_empty()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/generate_label_prefix.rs b/crates/vlog_linter/src/rules/generate_label_prefix.rs index 32cbbba..3254ce5 100644 --- a/crates/vlog_linter/src/rules/generate_label_prefix.rs +++ b/crates/vlog_linter/src/rules/generate_label_prefix.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `generate-label-prefix` — a generate block's label says it is one. use crate::context::LintContext; @@ -148,3 +150,5 @@ mod tests { .is_empty()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/incomplete_assignment.rs b/crates/vlog_linter/src/rules/incomplete_assignment.rs index a2423df..8d84fa8 100644 --- a/crates/vlog_linter/src/rules/incomplete_assignment.rs +++ b/crates/vlog_linter/src/rules/incomplete_assignment.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `incomplete-assignment` — a latch inferred in an `always_comb`. use std::collections::BTreeSet; @@ -347,3 +349,5 @@ mod tests { assert_eq!(violations(src).len(), 1); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/instance_shadowing.rs b/crates/vlog_linter/src/rules/instance_shadowing.rs index dfb7675..6370fd6 100644 --- a/crates/vlog_linter/src/rules/instance_shadowing.rs +++ b/crates/vlog_linter/src/rules/instance_shadowing.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `instance-shadowing` — a declaration hiding one from an enclosing scope. use crate::context::LintContext; @@ -202,3 +204,5 @@ mod tests { assert!(violations(src).is_empty(), "{:?}", violations(src)); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/interface_name_style.rs b/crates/vlog_linter/src/rules/interface_name_style.rs index e154eca..64dc8b9 100644 --- a/crates/vlog_linter/src/rules/interface_name_style.rs +++ b/crates/vlog_linter/src/rules/interface_name_style.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `interface-name-style` — interface names are `lower_snake_case` ending //! `_if`. @@ -136,3 +138,5 @@ mod tests { assert!(found[0].message.contains("_intf"), "{}", found[0].message); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/invalid_system_task_function.rs b/crates/vlog_linter/src/rules/invalid_system_task_function.rs index a7b0bd7..c7958ec 100644 --- a/crates/vlog_linter/src/rules/invalid_system_task_function.rs +++ b/crates/vlog_linter/src/rules/invalid_system_task_function.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `invalid-system-task-function` — system tasks nothing should still call. use crate::context::LintContext; @@ -196,3 +198,5 @@ mod tests { .is_empty()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/legacy_generate_region.rs b/crates/vlog_linter/src/rules/legacy_generate_region.rs index d452f9f..6d3012f 100644 --- a/crates/vlog_linter/src/rules/legacy_generate_region.rs +++ b/crates/vlog_linter/src/rules/legacy_generate_region.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `legacy-generate-region` — the `generate … endgenerate` wrapper. use crate::context::LintContext; @@ -102,3 +104,5 @@ mod tests { assert_eq!(violations(src).len(), 2, "{:?}", violations(src)); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/legacy_genvar_declaration.rs b/crates/vlog_linter/src/rules/legacy_genvar_declaration.rs index ee61327..d25a227 100644 --- a/crates/vlog_linter/src/rules/legacy_genvar_declaration.rs +++ b/crates/vlog_linter/src/rules/legacy_genvar_declaration.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `legacy-genvar-declaration` — declare the loop variable in the `for` header. use crate::context::LintContext; @@ -104,3 +106,5 @@ mod tests { assert_eq!(violations(src).len(), 1); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/line_length.rs b/crates/vlog_linter/src/rules/line_length.rs index 839278c..db846bf 100644 --- a/crates/vlog_linter/src/rules/line_length.rs +++ b/crates/vlog_linter/src/rules/line_length.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `line-length` — no line wider than the run's width. use crate::context::LintContext; @@ -178,3 +180,5 @@ mod tests { assert!(violations(&src).is_empty()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/macro_name_style.rs b/crates/vlog_linter/src/rules/macro_name_style.rs index 23e29c7..b000be3 100644 --- a/crates/vlog_linter/src/rules/macro_name_style.rs +++ b/crates/vlog_linter/src/rules/macro_name_style.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `macro-name-style` — `` `define`` names are `ALL_CAPS`. use crate::context::LintContext; @@ -171,3 +173,5 @@ mod tests { assert_eq!(&src[found[0].span.as_range()], "my_macro"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/macro_string_concatenation.rs b/crates/vlog_linter/src/rules/macro_string_concatenation.rs index 1612237..2fcacef 100644 --- a/crates/vlog_linter/src/rules/macro_string_concatenation.rs +++ b/crates/vlog_linter/src/rules/macro_string_concatenation.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `macro-string-concatenation` — `` `` `` inside a plain string does nothing. use crate::context::LintContext; @@ -159,3 +161,5 @@ mod tests { assert_eq!(violations(src).len(), 1, "{:?}", violations(src)); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/mismatched_labels.rs b/crates/vlog_linter/src/rules/mismatched_labels.rs index 20cd8dc..d9dec77 100644 --- a/crates/vlog_linter/src/rules/mismatched_labels.rs +++ b/crates/vlog_linter/src/rules/mismatched_labels.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `mismatched-labels` — an end label that does not name its own block. use crate::context::LintContext; @@ -317,3 +319,5 @@ mod tests { assert!(violations(src).is_empty(), "{:?}", violations(src)); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/mod.rs b/crates/vlog_linter/src/rules/mod.rs index ebeb4bc..5250c28 100644 --- a/crates/vlog_linter/src/rules/mod.rs +++ b/crates/vlog_linter/src/rules/mod.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The rules themselves, one module each. //! //! Most rules are **syntactic** — text, tokens or tree shape. The ones that @@ -81,3 +83,5 @@ pub mod uvm_macro_semicolon; pub mod v2001_generate_begin; pub mod void_cast; pub mod wire_reg_mixup; + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/module_begin_block.rs b/crates/vlog_linter/src/rules/module_begin_block.rs index 7ccc9a7..30d337d 100644 --- a/crates/vlog_linter/src/rules/module_begin_block.rs +++ b/crates/vlog_linter/src/rules/module_begin_block.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `module-begin-block` — no `begin`/`end` block at module scope. use crate::context::LintContext; @@ -180,3 +182,5 @@ mod tests { assert!(violations(src).is_empty()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/module_filename.rs b/crates/vlog_linter/src/rules/module_filename.rs index 6b50d64..e004f37 100644 --- a/crates/vlog_linter/src/rules/module_filename.rs +++ b/crates/vlog_linter/src/rules/module_filename.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `module-filename` — a one-module file is named after its module. use crate::context::LintContext; @@ -109,3 +111,5 @@ mod tests { assert_eq!(&src[found[0].span.as_range()], "foo"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/module_name_style.rs b/crates/vlog_linter/src/rules/module_name_style.rs index 2e23ae7..df86d1c 100644 --- a/crates/vlog_linter/src/rules/module_name_style.rs +++ b/crates/vlog_linter/src/rules/module_name_style.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `module-name-style` — module names are `lower_snake_case`. use crate::context::LintContext; @@ -144,3 +146,5 @@ mod tests { assert!(found[0].message.contains("[A-Z][A-Za-z0-9]*"), "{}", found[0].message); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/module_parameter.rs b/crates/vlog_linter/src/rules/module_parameter.rs index 6732f1c..4abdb8e 100644 --- a/crates/vlog_linter/src/rules/module_parameter.rs +++ b/crates/vlog_linter/src/rules/module_parameter.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `module-parameter` — override a multi-parameter instance by name. use crate::context::LintContext; @@ -101,3 +103,5 @@ mod tests { assert_eq!(violations(generate).len(), 1); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/module_port.rs b/crates/vlog_linter/src/rules/module_port.rs index e5542e0..e7785e5 100644 --- a/crates/vlog_linter/src/rules/module_port.rs +++ b/crates/vlog_linter/src/rules/module_port.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `module-port` — connect a multi-port instance by name. use crate::context::LintContext; @@ -117,3 +119,5 @@ mod tests { assert_eq!(violations("bind top sub u (a, b);\n").len(), 1); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/multiply_driven.rs b/crates/vlog_linter/src/rules/multiply_driven.rs index 9853598..633ad17 100644 --- a/crates/vlog_linter/src/rules/multiply_driven.rs +++ b/crates/vlog_linter/src/rules/multiply_driven.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `multiply-driven` — a variable written from more than one driver. use std::collections::BTreeSet; @@ -315,3 +317,5 @@ mod tests { assert!(found[0].fix.is_none(), "diagnose only"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/no_tabs.rs b/crates/vlog_linter/src/rules/no_tabs.rs index 211c9e3..1a6385b 100644 --- a/crates/vlog_linter/src/rules/no_tabs.rs +++ b/crates/vlog_linter/src/rules/no_tabs.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `no-tabs` — indent and align with spaces, never tabs. use crate::context::LintContext; @@ -116,3 +118,5 @@ mod tests { assert!(violations("module m;\n wire a;\nendmodule\n").is_empty()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/no_trailing_whitespace.rs b/crates/vlog_linter/src/rules/no_trailing_whitespace.rs index 90fcecc..b9eadf9 100644 --- a/crates/vlog_linter/src/rules/no_trailing_whitespace.rs +++ b/crates/vlog_linter/src/rules/no_trailing_whitespace.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `no-trailing-whitespace` — no spaces or tabs at the end of a line. use crate::context::LintContext; @@ -95,3 +97,5 @@ mod tests { assert!(violations("module m;\n wire a;\nendmodule\n").is_empty()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/numeric_format_string_style.rs b/crates/vlog_linter/src/rules/numeric_format_string_style.rs index 5476a78..aeac3ce 100644 --- a/crates/vlog_linter/src/rules/numeric_format_string_style.rs +++ b/crates/vlog_linter/src/rules/numeric_format_string_style.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `numeric-format-string-style` — a radix prefix must match its specifier. use crate::context::LintContext; @@ -248,3 +250,5 @@ mod tests { assert_eq!(violations(&src).len(), 2, "{:?}", violations(&src)); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/one_module_per_file.rs b/crates/vlog_linter/src/rules/one_module_per_file.rs index dc0e9da..7ae8b10 100644 --- a/crates/vlog_linter/src/rules/one_module_per_file.rs +++ b/crates/vlog_linter/src/rules/one_module_per_file.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `one-module-per-file` — one module declaration per file. use crate::context::LintContext; @@ -132,3 +134,5 @@ mod tests { assert!(!OneModulePerFile.default_on()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/package_filename.rs b/crates/vlog_linter/src/rules/package_filename.rs index 47dcf7c..838e4ef 100644 --- a/crates/vlog_linter/src/rules/package_filename.rs +++ b/crates/vlog_linter/src/rules/package_filename.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `package-filename` — a one-package file is named after its package. use crate::context::LintContext; @@ -142,3 +144,5 @@ mod tests { assert!(PackageFilename.check(&ctx).is_empty()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/packed_dimensions_range_ordering.rs b/crates/vlog_linter/src/rules/packed_dimensions_range_ordering.rs index 631cdbd..9a00fe4 100644 --- a/crates/vlog_linter/src/rules/packed_dimensions_range_ordering.rs +++ b/crates/vlog_linter/src/rules/packed_dimensions_range_ordering.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `packed-dimensions-range-ordering` — write a vector's width `[N-1:0]`. use crate::context::LintContext; @@ -147,3 +149,5 @@ mod tests { assert_eq!(violations(src).len(), 4, "{:?}", violations(src)); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/parameter_name_style.rs b/crates/vlog_linter/src/rules/parameter_name_style.rs index db38884..76a47dd 100644 --- a/crates/vlog_linter/src/rules/parameter_name_style.rs +++ b/crates/vlog_linter/src/rules/parameter_name_style.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `parameter-name-style` — parameter names are `CamelCase` or `ALL_CAPS`. use crate::context::LintContext; @@ -221,3 +223,5 @@ mod tests { assert!(found[0].message.contains("p_[a-z_0-9]+"), "{}", found[0].message); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/parameter_type_name_style.rs b/crates/vlog_linter/src/rules/parameter_type_name_style.rs index 91ecaad..e8c9116 100644 --- a/crates/vlog_linter/src/rules/parameter_type_name_style.rs +++ b/crates/vlog_linter/src/rules/parameter_type_name_style.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `parameter-type-name-style` — `type` parameters are named like types. use crate::context::LintContext; @@ -122,3 +124,5 @@ mod tests { assert!(ParameterTypeNameStyle.check(&ctx).is_empty()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/plusarg_assignment.rs b/crates/vlog_linter/src/rules/plusarg_assignment.rs index cb6eda4..5c683d1 100644 --- a/crates/vlog_linter/src/rules/plusarg_assignment.rs +++ b/crates/vlog_linter/src/rules/plusarg_assignment.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `plusarg-assignment` — read a plusarg's value, do not test for its name. use crate::context::LintContext; @@ -86,3 +88,5 @@ mod tests { .is_empty()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/port_name_suffix.rs b/crates/vlog_linter/src/rules/port_name_suffix.rs index 01b7642..ea585d3 100644 --- a/crates/vlog_linter/src/rules/port_name_suffix.rs +++ b/crates/vlog_linter/src/rules/port_name_suffix.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `port-name-suffix` — a port's name says which way it points. use crate::context::LintContext; @@ -191,3 +193,5 @@ mod tests { assert!(!PortNameSuffix.default_on()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/positive_meaning_parameter_name.rs b/crates/vlog_linter/src/rules/positive_meaning_parameter_name.rs index 1a3198e..833a29c 100644 --- a/crates/vlog_linter/src/rules/positive_meaning_parameter_name.rs +++ b/crates/vlog_linter/src/rules/positive_meaning_parameter_name.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `positive-meaning-parameter-name` — no `disable`-prefixed parameter. use crate::context::LintContext; @@ -132,3 +134,5 @@ mod tests { assert!(violations("module m;\n wire disable_ecc;\nendmodule\n").is_empty()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/posix_eof.rs b/crates/vlog_linter/src/rules/posix_eof.rs index b335afd..86055e3 100644 --- a/crates/vlog_linter/src/rules/posix_eof.rs +++ b/crates/vlog_linter/src/rules/posix_eof.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `posix-eof` — a file ends with a newline. use crate::context::LintContext; @@ -98,3 +100,5 @@ mod tests { assert_eq!(apply_fixes(src, &found, false).output, "// naïve\n"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/proper_parameter_declaration.rs b/crates/vlog_linter/src/rules/proper_parameter_declaration.rs index 3c9db6a..5af7c9e 100644 --- a/crates/vlog_linter/src/rules/proper_parameter_declaration.rs +++ b/crates/vlog_linter/src/rules/proper_parameter_declaration.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `proper-parameter-declaration` — `parameter` in a header, `localparam` in a body. use crate::context::LintContext; @@ -194,3 +196,5 @@ mod tests { assert!(violations(src).is_empty(), "{:?}", violations(src)); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/signal_name_style.rs b/crates/vlog_linter/src/rules/signal_name_style.rs index ca1ff0b..b4d6514 100644 --- a/crates/vlog_linter/src/rules/signal_name_style.rs +++ b/crates/vlog_linter/src/rules/signal_name_style.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `signal-name-style` — nets, variables and ports are `lower_snake_case`. use crate::context::LintContext; @@ -149,3 +151,5 @@ mod tests { assert!(!SignalNameStyle.default_on()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/struct_union_name_style.rs b/crates/vlog_linter/src/rules/struct_union_name_style.rs index d593ec2..778e7e9 100644 --- a/crates/vlog_linter/src/rules/struct_union_name_style.rs +++ b/crates/vlog_linter/src/rules/struct_union_name_style.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `struct-union-name-style` — struct/union typedef names are //! `lower_snake_case` ending `_t`. @@ -151,3 +153,5 @@ mod tests { assert_eq!(violations(src).len(), 1, "{:?}", violations(src)); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/suggest_parentheses.rs b/crates/vlog_linter/src/rules/suggest_parentheses.rs index 3c35f2e..76d854f 100644 --- a/crates/vlog_linter/src/rules/suggest_parentheses.rs +++ b/crates/vlog_linter/src/rules/suggest_parentheses.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `suggest-parentheses` — parenthesize a ternary nested in a ternary. use crate::context::LintContext; @@ -143,3 +145,5 @@ mod tests { assert_eq!(violations(src).len(), 2, "{:?}", violations(src)); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/suspicious_semicolon.rs b/crates/vlog_linter/src/rules/suspicious_semicolon.rs index 00167b5..f676889 100644 --- a/crates/vlog_linter/src/rules/suspicious_semicolon.rs +++ b/crates/vlog_linter/src/rules/suspicious_semicolon.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `suspicious-semicolon` — a `;` where a body was meant. use crate::context::LintContext; @@ -166,3 +168,5 @@ mod tests { assert!(found[0].message.contains("`if`"), "{}", found[0].message); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/truncated_numeric_literal.rs b/crates/vlog_linter/src/rules/truncated_numeric_literal.rs index 0c44b2f..26a7615 100644 --- a/crates/vlog_linter/src/rules/truncated_numeric_literal.rs +++ b/crates/vlog_linter/src/rules/truncated_numeric_literal.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `truncated-numeric-literal` — a literal wider than the width it declares. use crate::context::LintContext; @@ -154,3 +156,5 @@ mod tests { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/typedef_enums.rs b/crates/vlog_linter/src/rules/typedef_enums.rs index 9330bf7..997f85e 100644 --- a/crates/vlog_linter/src/rules/typedef_enums.rs +++ b/crates/vlog_linter/src/rules/typedef_enums.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `typedef-enums` — an `enum` type is declared with a `typedef`. use crate::context::LintContext; @@ -104,3 +106,5 @@ mod tests { assert!(violations(src).is_empty(), "structs are the other rule's"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/typedef_structs_unions.rs b/crates/vlog_linter/src/rules/typedef_structs_unions.rs index 15a3126..55dd0f9 100644 --- a/crates/vlog_linter/src/rules/typedef_structs_unions.rs +++ b/crates/vlog_linter/src/rules/typedef_structs_unions.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `typedef-structs-unions` — a `struct`/`union` type is declared with a //! `typedef`. @@ -142,3 +144,5 @@ mod tests { assert!(violations(src).is_empty()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/undeclared_identifier.rs b/crates/vlog_linter/src/rules/undeclared_identifier.rs index 7c586cb..62f39c3 100644 --- a/crates/vlog_linter/src/rules/undeclared_identifier.rs +++ b/crates/vlog_linter/src/rules/undeclared_identifier.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `undeclared-identifier` — a name nothing in the project declares. use std::collections::BTreeSet; @@ -236,3 +238,5 @@ mod tests { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/undersized_binary_literal.rs b/crates/vlog_linter/src/rules/undersized_binary_literal.rs index 59e9258..5743b05 100644 --- a/crates/vlog_linter/src/rules/undersized_binary_literal.rs +++ b/crates/vlog_linter/src/rules/undersized_binary_literal.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `undersized-binary-literal` — write every bit of a sized binary literal. use crate::context::LintContext; @@ -185,3 +187,5 @@ mod tests { assert!(violations(&once).is_empty(), "idempotent: {once}"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/undriven_net.rs b/crates/vlog_linter/src/rules/undriven_net.rs index 9918c9f..b35d5b4 100644 --- a/crates/vlog_linter/src/rules/undriven_net.rs +++ b/crates/vlog_linter/src/rules/undriven_net.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `undriven-net` — a signal that is read but that nothing ever drives. use crate::context::LintContext; @@ -328,3 +330,5 @@ mod tests { assert!(found[0].fix.is_none(), "diagnose only"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/unknown_parameter.rs b/crates/vlog_linter/src/rules/unknown_parameter.rs index e4f6b26..6e0d46a 100644 --- a/crates/vlog_linter/src/rules/unknown_parameter.rs +++ b/crates/vlog_linter/src/rules/unknown_parameter.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `unknown-parameter` — a `#(.NAME(…))` the module does not declare. use crate::context::LintContext; @@ -144,3 +146,5 @@ mod tests { assert!(violations(src, &SUB).is_empty()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/unknown_port.rs b/crates/vlog_linter/src/rules/unknown_port.rs index 61282e2..2bff7da 100644 --- a/crates/vlog_linter/src/rules/unknown_port.rs +++ b/crates/vlog_linter/src/rules/unknown_port.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `unknown-port` — a `.name(…)` the instantiated module does not declare. use crate::context::LintContext; @@ -168,3 +170,5 @@ mod tests { assert_eq!(violations(src, &SUB).len(), 1); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/unpacked_dimensions_range_ordering.rs b/crates/vlog_linter/src/rules/unpacked_dimensions_range_ordering.rs index 00bdb16..459ac98 100644 --- a/crates/vlog_linter/src/rules/unpacked_dimensions_range_ordering.rs +++ b/crates/vlog_linter/src/rules/unpacked_dimensions_range_ordering.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `unpacked-dimensions-range-ordering` — write an array's extent `[0:N-1]`. use crate::context::LintContext; @@ -159,3 +161,5 @@ mod tests { assert_eq!(violations(src).len(), 5, "{:?}", violations(src)); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/unused_import.rs b/crates/vlog_linter/src/rules/unused_import.rs index 9971a11..5cc3056 100644 --- a/crates/vlog_linter/src/rules/unused_import.rs +++ b/crates/vlog_linter/src/rules/unused_import.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `unused-import` — an `import p::*;` nothing in its scope reaches through. use crate::context::LintContext; @@ -226,3 +228,5 @@ mod tests { assert_eq!(messages(src).len(), 1); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/unused_signal.rs b/crates/vlog_linter/src/rules/unused_signal.rs index 66d0be0..51b9ee9 100644 --- a/crates/vlog_linter/src/rules/unused_signal.rs +++ b/crates/vlog_linter/src/rules/unused_signal.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `unused-signal` — a net or variable nothing ever mentions again. use crate::context::LintContext; @@ -254,3 +256,5 @@ mod tests { assert!(found[0].fix.is_none(), "diagnose only"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/unused_waiver.rs b/crates/vlog_linter/src/rules/unused_waiver.rs index 601c58f..eac9cd4 100644 --- a/crates/vlog_linter/src/rules/unused_waiver.rs +++ b/crates/vlog_linter/src/rules/unused_waiver.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `unused-waiver` — the waiver engine's own findings. use crate::context::LintContext; @@ -39,3 +41,5 @@ impl Rule for UnusedWaiver { Vec::new() } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/uvm_macro_semicolon.rs b/crates/vlog_linter/src/rules/uvm_macro_semicolon.rs index 504bdae..cea9b58 100644 --- a/crates/vlog_linter/src/rules/uvm_macro_semicolon.rs +++ b/crates/vlog_linter/src/rules/uvm_macro_semicolon.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `uvm-macro-semicolon` — no `;` after a `` `uvm_* `` macro invocation. use crate::context::LintContext; @@ -116,3 +118,5 @@ mod tests { assert_eq!(violations(src).len(), 1); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/v2001_generate_begin.rs b/crates/vlog_linter/src/rules/v2001_generate_begin.rs index 5affa4b..c2c35af 100644 --- a/crates/vlog_linter/src/rules/v2001_generate_begin.rs +++ b/crates/vlog_linter/src/rules/v2001_generate_begin.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `v2001-generate-begin` — no bare `begin` inside a generate region. use crate::context::LintContext; @@ -114,3 +116,5 @@ mod tests { assert!(violations("module m;\n wire a;\nendmodule\n").is_empty()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/void_cast.rs b/crates/vlog_linter/src/rules/void_cast.rs index 62a0e52..07bedc8 100644 --- a/crates/vlog_linter/src/rules/void_cast.rs +++ b/crates/vlog_linter/src/rules/void_cast.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `void-cast` — `void'(…)` around something that is not a call. use crate::context::LintContext; @@ -241,3 +243,5 @@ mod tests { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/rules/wire_reg_mixup.rs b/crates/vlog_linter/src/rules/wire_reg_mixup.rs index 3d15b63..7fc0ee9 100644 --- a/crates/vlog_linter/src/rules/wire_reg_mixup.rs +++ b/crates/vlog_linter/src/rules/wire_reg_mixup.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `wire-reg-mixup` — no `reg` in a SystemVerilog file. use std::path::Path; @@ -126,3 +128,5 @@ mod tests { assert_eq!(violations(src, Some("m.sv")).len(), 1); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/severity.rs b/crates/vlog_linter/src/severity.rs index 5bd4750..74c979a 100644 --- a/crates/vlog_linter/src/severity.rs +++ b/crates/vlog_linter/src/severity.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! How bad a finding is: the three classes every rule states. //! //! Verible has no such notion — every one of its rules produces the same @@ -80,3 +82,5 @@ mod tests { assert_eq!(shuffled, Severity::ALL); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/signals.rs b/crates/vlog_linter/src/signals.rs index ba61e4c..d26a11e 100644 --- a/crates/vlog_linter/src/signals.rs +++ b/crates/vlog_linter/src/signals.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! What a module declares, and what is done to each declaration. //! //! The three semantic rules all ask the same two questions — *is this name @@ -1050,3 +1052,5 @@ mod tests { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/violation.rs b/crates/vlog_linter/src/violation.rs index 903b4d9..5072416 100644 --- a/crates/vlog_linter/src/violation.rs +++ b/crates/vlog_linter/src/violation.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! What a rule reports, and what it offers to change. use vlog_parser::span::TextRange; @@ -198,3 +200,5 @@ mod tests { assert_eq!(apply_fixes("hello world", &v, false).applied, 0); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/visit.rs b/crates/vlog_linter/src/visit.rs index e9e65fa..5e5b17f 100644 --- a/crates/vlog_linter/src/visit.rs +++ b/crates/vlog_linter/src/visit.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Tree walks shared by the AST rules. //! //! Deliberately dumb: every walk visits every node of its kind, and the rule @@ -424,3 +426,5 @@ mod tests { assert!(errors > 0, "the error leaf must be reachable"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/vscode.rs b/crates/vlog_linter/src/vscode.rs index 49296fc..a4d1962 100644 --- a/crates/vlog_linter/src/vscode.rs +++ b/crates/vlog_linter/src/vscode.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The VS Code lint settings, generated from the rule registry. //! //! `editors/vscode/package.json` declares one switch per severity class and @@ -228,3 +230,5 @@ mod tests { assert_eq!(json_string("em — dash"), "\"em — dash\"", "UTF-8 passes through"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/waiver.rs b/crates/vlog_linter/src/waiver.rs index 1bf15bd..c83ff96 100644 --- a/crates/vlog_linter/src/waiver.rs +++ b/crates/vlog_linter/src/waiver.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Inline waivers: `// lucisv: waive ` and friends. //! //! Grammar (Verible's, with a `lucisv:` alias — `verilog_lint:` is what @@ -270,3 +272,5 @@ mod tests { assert_eq!(directive_of("// lucisv: waive no-tabs and more"), Some("malformed")); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/src/waiver_file.rs b/crates/vlog_linter/src/waiver_file.rs index 5ad93aa..9ea962c 100644 --- a/crates/vlog_linter/src/waiver_file.rs +++ b/crates/vlog_linter/src/waiver_file.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! External waiver files: Verible's `waive` directives, written in a file of //! their own rather than in a comment in the RTL. //! @@ -568,3 +570,5 @@ mod tests { assert!(waivers.unused(&first, &enabled).is_empty(), "both fired, over two files"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_linter/tests/lint_cases.rs b/crates/vlog_linter/tests/lint_cases.rs index 47866b1..b3c5d53 100644 --- a/crates/vlog_linter/tests/lint_cases.rs +++ b/crates/vlog_linter/tests/lint_cases.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! File-driven lint rule tests, in the spirit of Verible's `LintTestCase` / //! `RunLintTestCases` and of the formatter's `tests/cases.rs` table harness. //! @@ -644,3 +646,5 @@ fn a_skip_case_that_passes_demands_its_marker_removed() { let case = scratch("#SKIP still bad\nmodule m;\n\twire a;\n//^ 2 no-tabs\nendmodule\n"); assert_eq!(verdict("scratch.lint", &case), None, "a failing #SKIP case is not a failure"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/Cargo.toml b/crates/vlog_parser/Cargo.toml index 7d4e8f7..ff8e624 100644 --- a/crates/vlog_parser/Cargo.toml +++ b/crates/vlog_parser/Cargo.toml @@ -1,3 +1,5 @@ +# Author: Guoliang Chen, a Senior Digital Design Engineer + [package] name = "vlog_parser" version.workspace = true @@ -6,3 +8,5 @@ license.workspace = true description = "Verilog/SystemVerilog lexer and parser for lucisv" [dependencies] + +# Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/ast/class.rs b/crates/vlog_parser/src/ast/class.rs index 32373d9..9e0d776 100644 --- a/crates/vlog_parser/src/ast/class.rs +++ b/crates/vlog_parser/src/ast/class.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Classes and their constraint blocks (IEEE 1800 §8, §18.5). use super::*; @@ -292,3 +294,5 @@ pub struct DistItem { /// Code extent of the element. pub span: TextRange, } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/ast/covergroup.rs b/crates/vlog_parser/src/ast/covergroup.rs index 0fb8568..2e87be9 100644 --- a/crates/vlog_parser/src/ast/covergroup.rs +++ b/crates/vlog_parser/src/ast/covergroup.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Covergroups (IEEE 1800 §19): the declaration, coverpoints and crosses, //! and the bins sub-grammar. @@ -405,3 +407,5 @@ pub struct BinsofSel { pub after_intersect: Vec, pub intersect: Option>, } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/ast/decl.rs b/crates/vlog_parser/src/ast/decl.rs index 9f34446..662d690 100644 --- a/crates/vlog_parser/src/ast/decl.rs +++ b/crates/vlog_parser/src/ast/decl.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Data types, dimensions and the declarations that carry them: variables and //! nets, parameters, typedefs, enums and structs, and function/task/let //! declarations with their port lists. @@ -597,3 +599,5 @@ pub struct TfPrototype { /// them (`task drive( /*c*/ )`). pub args_dangling: Vec, } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/ast/expr.rs b/crates/vlog_parser/src/ast/expr.rs index 45dc53a..d7ee7c0 100644 --- a/crates/vlog_parser/src/ast/expr.rs +++ b/crates/vlog_parser/src/ast/expr.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Expressions: the [`Expr`] node, every [`ExprKind`], and the boxed //! comment-slot structs an expression's brackets and operators keep. @@ -533,3 +535,5 @@ pub struct ExprItem { /// Code extent of the element. pub span: TextRange, } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/ast/mod.rs b/crates/vlog_parser/src/ast/mod.rs index 96b26f5..35157f9 100644 --- a/crates/vlog_parser/src/ast/mod.rs +++ b/crates/vlog_parser/src/ast/mod.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! AST for the supported Verilog/SystemVerilog subset. //! //! Nodes that begin a line carry a [`Meta`] with leading comments, an @@ -549,3 +551,5 @@ mod size_pins { assert!(size_of::() <= 552, "Stmt is {} bytes", size_of::()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/ast/module.rs b/crates/vlog_parser/src/ast/module.rs index 5bdcfff..9afb544 100644 --- a/crates/vlog_parser/src/ast/module.rs +++ b/crates/vlog_parser/src/ast/module.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! What a module, interface or program is made of: the header (parameter //! ports, ports), the items that instantiate or drive (continuous assignments, //! instantiations, gates, `bind`), generate constructs, modports and clocking @@ -686,3 +688,5 @@ pub struct ClockingSignal { /// `None` for the plain `input tdo;` spelling. pub value: Option, } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/ast/randsequence.rs b/crates/vlog_parser/src/ast/randsequence.rs index 9d6ca55..d8c13f2 100644 --- a/crates/vlog_parser/src/ast/randsequence.rs +++ b/crates/vlog_parser/src/ast/randsequence.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `randsequence` — the production grammar of IEEE 1800 §18.17. //! //! A `randsequence` statement is a little grammar of its own written inside a @@ -171,3 +173,5 @@ pub struct CodeBlock { /// Comments written after the last statement and before the `}`. pub dangling: Vec, } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/ast/stmt.rs b/crates/vlog_parser/src/ast/stmt.rs index ec7a906..99ac5db 100644 --- a/crates/vlog_parser/src/ast/stmt.rs +++ b/crates/vlog_parser/src/ast/stmt.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Statements: the [`Stmt`] node, every [`StmtKind`], timing controls and //! sensitivity lists, and the pieces of `case`, `for` and `foreach`. @@ -449,3 +451,5 @@ pub enum ForStep { Assign(SimpleAssign), Expr(Expr), } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/ast/sva.rs b/crates/vlog_parser/src/ast/sva.rs index 6f25d5c..316413f 100644 --- a/crates/vlog_parser/src/ast/sva.rs +++ b/crates/vlog_parser/src/ast/sva.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Assertions (IEEE 1800-2017 §16): `property`/`sequence` declarations, //! concurrent assertion items, and the property-expression tree. @@ -361,3 +363,5 @@ pub struct PropCaseItem { /// Code extent of the arm. pub span: TextRange, } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/defines.rs b/crates/vlog_parser/src/defines.rs index 986b858..8eb38ea 100644 --- a/crates/vlog_parser/src/defines.rs +++ b/crates/vlog_parser/src/defines.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The `` `define`` table: every macro definition a file writes, recorded so //! an editor can show it. //! @@ -310,3 +312,5 @@ fn is_name_byte(c: u8) -> bool { fn is_name_char(c: char) -> bool { c == '_' || c == '$' || c.is_ascii_alphanumeric() } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/lexer.rs b/crates/vlog_parser/src/lexer.rs index 1caf2dd..15118d3 100644 --- a/crates/vlog_parser/src/lexer.rs +++ b/crates/vlog_parser/src/lexer.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Hand-written lexer for Verilog/SystemVerilog. //! //! The lexer runs in two phases, mirroring how ruff's parser handles trivia: @@ -1729,3 +1731,5 @@ mod tests { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/lib.rs b/crates/vlog_parser/src/lib.rs index 3c0baa3..201eed5 100644 --- a/crates/vlog_parser/src/lib.rs +++ b/crates/vlog_parser/src/lib.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Verilog/SystemVerilog lexer and parser. //! //! This crate plays the role of `ruff_python_parser` in ruff's architecture: @@ -69,3 +71,5 @@ impl std::fmt::Display for Error { } impl std::error::Error for Error {} + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/line_index.rs b/crates/vlog_parser/src/line_index.rs index 39a7458..60ab5e9 100644 --- a/crates/vlog_parser/src/line_index.rs +++ b/crates/vlog_parser/src/line_index.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Offset ↔ line:column conversion for one source file. //! //! The lexer records line/col as it goes, which is all a parse diagnostic @@ -214,3 +216,5 @@ mod tests { assert_eq!(idx.offset(3, 1), None); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/parser/assertion.rs b/crates/vlog_parser/src/parser/assertion.rs index 094f452..efb366f 100644 --- a/crates/vlog_parser/src/parser/assertion.rs +++ b/crates/vlog_parser/src/parser/assertion.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Concurrent assertions and the SVA declarations: `assert`/`assume`/ //! `cover`/`restrict property` items and statements with their action //! blocks, `property`/`sequence` declarations, `expect`, and @@ -443,3 +445,5 @@ impl<'a> Parser<'a> { Ok(decl) } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/parser/class.rs b/crates/vlog_parser/src/parser/class.rs index 919e721..a478317 100644 --- a/crates/vlog_parser/src/parser/class.rs +++ b/crates/vlog_parser/src/parser/class.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Classes and their constraint blocks: the class header and `extends` //! clause, and the `constraint` sub-grammar (IEEE 1800 §18.5) with its //! `dist`, `solve … before`, `soft` and `foreach` items. See @@ -660,3 +662,5 @@ impl<'a> Parser<'a> { Ok(ConstraintBody::Verbatim(self.verbatim_since(start, col))) } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/parser/covergroup.rs b/crates/vlog_parser/src/parser/covergroup.rs index 315c111..b5bee76 100644 --- a/crates/vlog_parser/src/parser/covergroup.rs +++ b/crates/vlog_parser/src/parser/covergroup.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Covergroups (IEEE 1800 §19): the header and sampling event, coverpoints //! and crosses, and the bins sub-grammar — value, transition, `with` and //! `binsof` selections. See `docs/features/covergroup-bodies/README.md`. @@ -620,3 +622,5 @@ impl<'a> Parser<'a> { Ok(Some(Box::new(BinWith { before_kw, after_kw, after_open, before_close, expr }))) } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/parser/cursor.rs b/crates/vlog_parser/src/parser/cursor.rs index 7cfe66f..7cd0210 100644 --- a/crates/vlog_parser/src/parser/cursor.rs +++ b/crates/vlog_parser/src/parser/cursor.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The token cursor and the comment plumbing. //! //! Everything a grammar file does to the token stream goes through here: @@ -387,3 +389,5 @@ impl<'a> Parser<'a> { RawText { text: self.bump().text, col, span } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/parser/decl.rs b/crates/vlog_parser/src/parser/decl.rs index 06cc34f..15e8060 100644 --- a/crates/vlog_parser/src/parser/decl.rs +++ b/crates/vlog_parser/src/parser/decl.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Data types and the declarations that use them. //! //! [`Parser::parse_opt_data_type`] is the one type grammar every position @@ -501,3 +503,5 @@ impl<'a> Parser<'a> { Ok(ty) } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/parser/directive.rs b/crates/vlog_parser/src/parser/directive.rs index 56abeae..0a8b927 100644 --- a/crates/vlog_parser/src/parser/directive.rs +++ b/crates/vlog_parser/src/parser/directive.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Compiler directives and what they do to a token stream that is not a //! tree: `` `ifdef `` region tracking, the directives a list keeps between //! its elements, macro calls and macro items, and fragment mode — a file @@ -408,3 +410,5 @@ impl<'a> Parser<'a> { Ok(stmts) } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/parser/expr.rs b/crates/vlog_parser/src/parser/expr.rs index ae16030..9301938 100644 --- a/crates/vlog_parser/src/parser/expr.rs +++ b/crates/vlog_parser/src/parser/expr.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The operator grammar: precedence climbing from implication down through //! ternary, binary, unary and postfix. The leaves — literals, names, casts, //! concatenations, patterns — are [`super::primary`]. @@ -541,3 +543,5 @@ impl<'a> Parser<'a> { Ok(expr) } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/parser/instance.rs b/crates/vlog_parser/src/parser/instance.rs index 4a8a2b3..c466443 100644 --- a/crates/vlog_parser/src/parser/instance.rs +++ b/crates/vlog_parser/src/parser/instance.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The items that instantiate or drive: continuous assignments, module and //! gate instantiations with their parameter overrides and connections, and //! `bind` directives. Drive strengths and delay values live here because @@ -753,3 +755,5 @@ impl<'a> Parser<'a> { }) } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/parser/item.rs b/crates/vlog_parser/src/parser/item.rs index e0fc4c0..1d27a7d 100644 --- a/crates/vlog_parser/src/parser/item.rs +++ b/crates/vlog_parser/src/parser/item.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! From the file down to one item. //! //! The top-level loop ([`Parser::parse_source_file`]), the item loop every @@ -740,3 +742,5 @@ impl<'a> Parser<'a> { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/parser/keyword_stmt.rs b/crates/vlog_parser/src/parser/keyword_stmt.rs index 1238d3d..9a72496 100644 --- a/crates/vlog_parser/src/parser/keyword_stmt.rs +++ b/crates/vlog_parser/src/parser/keyword_stmt.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The keyword → statement dispatch table. //! //! One `match` over every keyword a statement may begin with: each arm is @@ -376,3 +378,5 @@ impl<'a> Parser<'a> { Ok(cond) } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/parser/mod.rs b/crates/vlog_parser/src/parser/mod.rs index 46313cb..3513315 100644 --- a/crates/vlog_parser/src/parser/mod.rs +++ b/crates/vlog_parser/src/parser/mod.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Recursive-descent parser producing the AST in [`crate::ast`]. //! //! Comment plumbing: [`Parser::bump`] moves any leading comments of a @@ -481,3 +483,5 @@ impl<'a> Parser<'a> { Ok((name, self.span_from(start))) } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/parser/module.rs b/crates/vlog_parser/src/parser/module.rs index ae58baa..cad4efb 100644 --- a/crates/vlog_parser/src/parser/module.rs +++ b/crates/vlog_parser/src/parser/module.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The module, interface and program header, and the body constructs that //! belong only to them: parameter ports, ports (ANSI and non-ANSI), //! modports and clocking blocks. @@ -689,3 +691,5 @@ impl<'a> Parser<'a> { Ok(DataType { name, name_start, ..DataType::default() }) } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/parser/primary.rs b/crates/vlog_parser/src/parser/primary.rs index f172b34..aa5b0c7 100644 --- a/crates/vlog_parser/src/parser/primary.rs +++ b/crates/vlog_parser/src/parser/primary.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The leaves of an expression — [`Parser::parse_primary`] and the forms //! it branches to (casts, assignment patterns, streaming concatenations, //! shallow copies) — and the element and argument lists that primaries, @@ -474,3 +476,5 @@ impl<'a> Parser<'a> { self.parse_expr() } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/parser/randsequence.rs b/crates/vlog_parser/src/parser/randsequence.rs index e0f0ebc..17bb157 100644 --- a/crates/vlog_parser/src/parser/randsequence.rs +++ b/crates/vlog_parser/src/parser/randsequence.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `randsequence` — the production grammar of IEEE 1800 §18.17. //! //! One file for one sub-grammar, the way the SVA and covergroup grammars each @@ -314,3 +316,5 @@ impl<'a> Parser<'a> { Ok(CodeBlock { stmts, dangling }) } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/parser/recover.rs b/crates/vlog_parser/src/parser/recover.rs index 47eeab4..fbad899 100644 --- a/crates/vlog_parser/src/parser/recover.rs +++ b/crates/vlog_parser/src/parser/recover.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Error recovery, reached only in tolerant mode. //! //! The strategy is deliberately one paragraph long: record the error, @@ -221,3 +223,5 @@ impl<'a> Parser<'a> { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/parser/recover_list.rs b/crates/vlog_parser/src/parser/recover_list.rs index 48eecd0..0b1e4dc 100644 --- a/crates/vlog_parser/src/parser/recover_list.rs +++ b/crates/vlog_parser/src/parser/recover_list.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Error recovery *inside* a header — its bracketed lists and the parentheses //! of a statement header — reached only in tolerant mode. //! @@ -527,3 +529,5 @@ fn ends_a_value_badly(t: &Token) -> bool { || is_sync_stop(t) || (t.kind == TokenKind::Ident && !t.is_macro()) } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/parser/split.rs b/crates/vlog_parser/src/parser/split.rs index d97fa3f..24afb2a 100644 --- a/crates/vlog_parser/src/parser/split.rs +++ b/crates/vlog_parser/src/parser/split.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Conditional-directive split recovery. //! //! An `ifdef region whose arms are each an *incomplete fragment* of one @@ -582,3 +584,5 @@ impl<'a> Parser<'a> { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/parser/stmt.rs b/crates/vlog_parser/src/parser/stmt.rs index cb6d785..44fa15a 100644 --- a/crates/vlog_parser/src/parser/stmt.rs +++ b/crates/vlog_parser/src/parser/stmt.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Statements. //! //! [`Parser::parse_stmt`] is the entry; [`Parser::parse_keyword_stmt`] is @@ -526,3 +528,5 @@ impl<'a> Parser<'a> { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/parser/sva.rs b/crates/vlog_parser/src/parser/sva.rs index 0ffa54f..d8273d7 100644 --- a/crates/vlog_parser/src/parser/sva.rs +++ b/crates/vlog_parser/src/parser/sva.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The SVA grammar (IEEE 1800-2017 §16). //! //! `sequence_expr` and `property_expr` as one precedence-climbing @@ -735,3 +737,5 @@ impl<'a> Parser<'a> { Ok(items) } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/parser/tests/class.rs b/crates/vlog_parser/src/parser/tests/class.rs index d9eba3b..cd3bc56 100644 --- a/crates/vlog_parser/src/parser/tests/class.rs +++ b/crates/vlog_parser/src/parser/tests/class.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Classes and constraint bodies, in-class and out-of-block. use super::*; @@ -600,3 +602,5 @@ fn an_unrecognised_randomize_with_block_keeps_the_old_verbatim_capture() { assert_eq!(raw.text, src[raw.span.as_range()]); assert_eq!(f.constraint_fallbacks, 1); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/parser/tests/comments.rs b/crates/vlog_parser/src/parser/tests/comments.rs index fe24837..4c8a1b1 100644 --- a/crates/vlog_parser/src/parser/tests/comments.rs +++ b/crates/vlog_parser/src/parser/tests/comments.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Where a comment lands: the slot pins for the comment plumbing in //! `parser/cursor.rs`. @@ -144,3 +146,5 @@ fn an_attribute_and_the_comments_around_it_keep_their_source_order() { assert!(meta.leading[0].span.start < meta.attrs[0].span.start); assert!(meta.attrs[0].span.start < meta.leading[1].span.start); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/parser/tests/covergroup.rs b/crates/vlog_parser/src/parser/tests/covergroup.rs index 2ece89d..1c2bfec 100644 --- a/crates/vlog_parser/src/parser/tests/covergroup.rs +++ b/crates/vlog_parser/src/parser/tests/covergroup.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Covergroup bodies (`docs/features/covergroup-bodies/README.md`). use super::*; @@ -522,3 +524,5 @@ fn the_gap_before_a_cover_items_semicolon_that_was_not_written_belongs_to_what_f assert!(items[0].before_semi.is_empty()); assert_eq!(items[1].meta.leading[0].text, "// why"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/parser/tests/decl.rs b/crates/vlog_parser/src/parser/tests/decl.rs index eeab05e..348cd9e 100644 --- a/crates/vlog_parser/src/parser/tests/decl.rs +++ b/crates/vlog_parser/src/parser/tests/decl.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Data types, declarators, typedefs, enums, structs, and function/task/let //! declarations. @@ -345,3 +347,5 @@ fn only_a_net_declaration_reads_a_delay() { assert!(parse_err("module m;\n logic #5 x;\nendmodule\n").contains("expected")); assert!(parse_err("module m;\n logic [7:0] #5 x;\nendmodule\n").contains("expected")); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/parser/tests/directive.rs b/crates/vlog_parser/src/parser/tests/directive.rs index b709ab5..8339e65 100644 --- a/crates/vlog_parser/src/parser/tests/directive.rs +++ b/crates/vlog_parser/src/parser/tests/directive.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Macros, and the directives a list keeps between its elements. use super::*; @@ -453,3 +455,5 @@ fn a_macro_followed_by_a_hierarchical_call_stands_alone() { assert!(matches!(&task.stmts[0].kind, StmtKind::MacroStmt(_))); assert!(matches!(&task.stmts[1].kind, StmtKind::ExprStmt(_))); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/parser/tests/expr.rs b/crates/vlog_parser/src/parser/tests/expr.rs index 937df50..b386910 100644 --- a/crates/vlog_parser/src/parser/tests/expr.rs +++ b/crates/vlog_parser/src/parser/tests/expr.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Expressions: primaries, casts, patterns, calls and their arguments. use super::*; @@ -390,3 +392,5 @@ fn a_repeat_bracket_never_steals_an_ordinary_index() { let f = parse_ok("module m;\n assign y = q[3] + r[a:b] + s[i +: 2];\nendmodule\n"); assert!(matches!(f.items[0].kind, ItemKind::Module(_))); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/parser/tests/instance.rs b/crates/vlog_parser/src/parser/tests/instance.rs index 793a58e..baf54d9 100644 --- a/crates/vlog_parser/src/parser/tests/instance.rs +++ b/crates/vlog_parser/src/parser/tests/instance.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Instantiations, bind directives, gates, drive strengths and delays. use super::*; @@ -256,3 +258,5 @@ fn an_ordered_parameter_override_takes_an_inline_aggregate_too() { let params = i.params.as_ref().expect("an override list"); assert!(matches!(oks(params)[0].expr.as_ref().expect("a value").kind, ExprKind::Type(_))); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/parser/tests/items.rs b/crates/vlog_parser/src/parser/tests/items.rs index f1a3bc2..2024ff2 100644 --- a/crates/vlog_parser/src/parser/tests/items.rs +++ b/crates/vlog_parser/src/parser/tests/items.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Items that are neither a module, a class nor a declaration: elaboration //! tasks, generate regions, packages, imports and exports, DPI, and the //! vendor/formal collateral kept verbatim. @@ -284,3 +286,5 @@ fn an_unclosed_opaque_block_stops_at_the_next_construct() { assert!(!diags.is_empty(), "the missing `endspecify` is reported"); assert_eq!(f.items.len(), 1, "and the module still closed"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/parser/tests/limits.rs b/crates/vlog_parser/src/parser/tests/limits.rs index 8999180..4e05c2e 100644 --- a/crates/vlog_parser/src/parser/tests/limits.rs +++ b/crates/vlog_parser/src/parser/tests/limits.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The nesting and chain budgets: what parses at the limit and what errors //! just past it (`docs/features/recursion-limit/README.md`). @@ -280,3 +282,5 @@ fn a_bare_event_control_charges_the_chain_budget() { ); assert_chain_too_long(long); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/parser/tests/mod.rs b/crates/vlog_parser/src/parser/tests/mod.rs index 29d09fd..e42598c 100644 --- a/crates/vlog_parser/src/parser/tests/mod.rs +++ b/crates/vlog_parser/src/parser/tests/mod.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The parser's unit tests, one file per grammar file they exercise //! (`limits` covers the nesting and chain budgets, `comments` the comment //! plumbing in `cursor.rs`, `items` the item dispatch and the verbatim @@ -77,3 +79,5 @@ fn initial_stmts(f: &SourceFile) -> &Vec { let StmtKind::Block { stmts, .. } = &stmt.kind else { panic!("expected a block") }; stmts } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/parser/tests/module.rs b/crates/vlog_parser/src/parser/tests/module.rs index 99f30b6..f9f0420 100644 --- a/crates/vlog_parser/src/parser/tests/module.rs +++ b/crates/vlog_parser/src/parser/tests/module.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Module, interface and program headers: parameter ports, ports, modports //! and clocking blocks. @@ -526,3 +528,5 @@ fn the_clocking_waves_shapes_survive_tolerant_recovery() { assert!(!diags.is_empty()); assert!(!file.items.is_empty(), "and the file is still addressable"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/parser/tests/split.rs b/crates/vlog_parser/src/parser/tests/split.rs index 92664d9..29f348d 100644 --- a/crates/vlog_parser/src/parser/tests/split.rs +++ b/crates/vlog_parser/src/parser/tests/split.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Split conditional regions (`docs/features/directive-split/README.md`) and //! the opening split of `directive-in-statements`. @@ -783,3 +785,5 @@ fn a_region_closed_before_the_header_leaves_the_else_stray() { ); assert!(msg.contains("endinterface"), "{msg}"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/parser/tests/stmt.rs b/crates/vlog_parser/src/parser/tests/stmt.rs index c39e4b8..a4765d6 100644 --- a/crates/vlog_parser/src/parser/tests/stmt.rs +++ b/crates/vlog_parser/src/parser/tests/stmt.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Statements: event controls, case forms, loops, labels, and the DV //! statements. @@ -306,3 +308,5 @@ fn a_foreach_may_skip_a_dimension() { let StmtKind::Foreach { vars, .. } = &stmts[1].kind else { panic!("expected a foreach") }; assert_eq!(vars.iter().map(|v| v.name.text.as_str()).collect::>(), ["i", "", "k"]); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/parser/tests/sva.rs b/crates/vlog_parser/src/parser/tests/sva.rs index 6971bd0..c8b5032 100644 --- a/crates/vlog_parser/src/parser/tests/sva.rs +++ b/crates/vlog_parser/src/parser/tests/sva.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Concurrent assertions, property/sequence declarations, action blocks and //! `default disable iff`. @@ -553,3 +555,5 @@ fn a_label_before_a_concurrent_assertion_still_takes_the_assertion_path() { }; assert_eq!(a.label.as_ref().expect("the label").text, "NoNMI"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/parser/tf.rs b/crates/vlog_parser/src/parser/tf.rs index 6a444f6..1debbbb 100644 --- a/crates/vlog_parser/src/parser/tf.rs +++ b/crates/vlog_parser/src/parser/tf.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Function, task and `let` declarations: qualifiers, the port list, the //! body and its closing label. @@ -332,3 +334,5 @@ impl<'a> Parser<'a> { Ok((stmts, dangling, comments, name)) } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/parser/verbatim.rs b/crates/vlog_parser/src/parser/verbatim.rs index fe1c295..12428f9 100644 --- a/crates/vlog_parser/src/parser/verbatim.rs +++ b/crates/vlog_parser/src/parser/verbatim.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The constructs lucisv keeps as source bytes rather than as a tree, and //! the capture helpers every speculative parse falls back to. //! @@ -225,3 +227,5 @@ impl<'a> Parser<'a> { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/span.rs b/crates/vlog_parser/src/span.rs index 14b315f..c44414f 100644 --- a/crates/vlog_parser/src/span.rs +++ b/crates/vlog_parser/src/span.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Byte spans into the source text. //! //! Every token and every AST node carries one, which is what lets a consumer @@ -81,3 +83,5 @@ mod tests { assert_eq!((r.start, r.end), (9, 9)); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/stats.rs b/crates/vlog_parser/src/stats.rs index 147c2f7..5c0c7af 100644 --- a/crates/vlog_parser/src/stats.rs +++ b/crates/vlog_parser/src/stats.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! How much parsing this thread has done — a work counter, not a timer. //! //! A `textDocument/codeAction` used to parse the same buffer five times, and @@ -37,3 +39,5 @@ pub fn parses() -> u64 { pub(crate) fn count_parse() { PARSES.with(|parses| parses.set(parses.get() + 1)); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/src/token.rs b/crates/vlog_parser/src/token.rs index 4c8b203..97b2ae8 100644 --- a/crates/vlog_parser/src/token.rs +++ b/crates/vlog_parser/src/token.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Token definitions for the Verilog/SystemVerilog lexer. use crate::span::TextRange; @@ -360,3 +362,5 @@ mod tests { assert_eq!(sorted, unique, "a duplicate entry would double a completion list"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/tests/census.rs b/crates/vlog_parser/tests/census.rs index 2c58964..871cecd 100644 --- a/crates/vlog_parser/tests/census.rs +++ b/crates/vlog_parser/tests/census.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! A read-only sweep probe: set CENSUS to a directory and this prints the //! covergroup and SVA structured/fallback counts and the tolerant diagnostics //! over every `.sv`/`.svh` under it. Ignored; run by hand for the feature @@ -200,3 +202,5 @@ fn run() { "prop_seq_decls={pd} prop_seq_fallbacks={pdf} assertions={asrt} assertion_fallbacks={asrtf}" ); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/tests/defines.rs b/crates/vlog_parser/tests/defines.rs index 9b2fd07..b81113b 100644 --- a/crates/vlog_parser/tests/defines.rs +++ b/crates/vlog_parser/tests/defines.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The `` `define`` table (TODO.md §6): what gets recorded, and exactly how a //! multi-line body is normalized. //! @@ -320,3 +322,5 @@ fn the_table_reads_the_formatter_fixtures_without_panicking() { assert!(seen > 0, "no fixtures found in {}", dir.display()); assert!(defines > 0, "fixtures have `defines; the check would be vacuous otherwise"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/tests/error_recovery.rs b/crates/vlog_parser/tests/error_recovery.rs index cf906b5..9ba4ac5 100644 --- a/crates/vlog_parser/tests/error_recovery.rs +++ b/crates/vlog_parser/tests/error_recovery.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Error-tolerant parsing: `parse_source_tolerant` never fails, agrees with //! the strict parser on every file that parses, and keeps the rest of a broken //! file addressable. See `docs/features/error-recovery/README.md`. @@ -1107,3 +1109,5 @@ fn deleting_any_single_character_never_panics() { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/tests/fragments.rs b/crates/vlog_parser/tests/fragments.rs index 79051bc..c5c7a74 100644 --- a/crates/vlog_parser/tests/fragments.rs +++ b/crates/vlog_parser/tests/fragments.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Fragment files (TODO.md §22): a whole file that is the bare middle of some //! larger construct's body. See `docs/features/fragment-mode/README.md`. @@ -243,3 +245,5 @@ fn an_unlabelled_coverpoint_first_reads_as_a_declaration() { let file = strict("coverpoint a;\ncross a, b;\n"); assert_eq!(shape(&file), "items"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/tests/null_items.rs b/crates/vlog_parser/tests/null_items.rs index 41a3be8..02411d9 100644 --- a/crates/vlog_parser/tests/null_items.rs +++ b/crates/vlog_parser/tests/null_items.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The null item — a lone `;` where an item belongs (IEEE 1800-2017 A.1.4 //! `package_or_generate_item_declaration ::= … | ;` and `class_item ::= … | ;`). //! See `docs/features/null-items/README.md`. @@ -177,3 +179,5 @@ fn endfunction_and_endtask_keep_their_own_semicolon_flag() { } assert_eq!(seen, 2); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/tests/port_entry_recovery.rs b/crates/vlog_parser/tests/port_entry_recovery.rs index b571209..04de96f 100644 --- a/crates/vlog_parser/tests/port_entry_recovery.rs +++ b/crates/vlog_parser/tests/port_entry_recovery.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! An unfinished connection stays inside its own entry (TODO §68.2, //! `docs/features/port-entry-grace/README.md`). //! @@ -296,3 +298,5 @@ fn two_dots_on_one_line_stay_one_error_element() { strict_refuses(src); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/tests/qa_port_entry_grace.rs b/crates/vlog_parser/tests/qa_port_entry_grace.rs index 9e8c9d1..d72f276 100644 --- a/crates/vlog_parser/tests/qa_port_entry_grace.rs +++ b/crates/vlog_parser/tests/qa_port_entry_grace.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! QA, TODO §68.2 (`docs/features/port-entry-grace/README.md`): the tolerant //! parser's new connection-list recovery against a wider sweep than the dev's //! own tests — multi-line connection values that are legal (each must read @@ -152,3 +154,5 @@ fn qa_every_unfinished_entry_is_refused_strictly_and_reported_tolerantly() { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_parser/tests/spans.rs b/crates/vlog_parser/tests/spans.rs index 3d08bb4..c94f7ab 100644 --- a/crates/vlog_parser/tests/spans.rs +++ b/crates/vlog_parser/tests/spans.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Span invariants: the token stream tiles the source, and every AST node's //! span slices back to the construct it came from. //! @@ -1861,3 +1863,5 @@ endmodule .collect(); assert_eq!(targets, ["blk", "fork"]); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/Cargo.toml b/crates/vlog_refactor/Cargo.toml index fcad134..c9c225c 100644 --- a/crates/vlog_refactor/Cargo.toml +++ b/crates/vlog_refactor/Cargo.toml @@ -1,3 +1,5 @@ +# Author: Guoliang Chen, a Senior Digital Design Engineer + [package] name = "vlog_refactor" version.workspace = true @@ -16,3 +18,5 @@ vlog_semantic = { path = "../vlog_semantic" } # depends on vlog_parser + vlog_semantic alone # (`cargo tree -p vlog_refactor -e normal`). vlog_formatter = { path = "../vlog_formatter" } + +# Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/check/after.rs b/crates/vlog_refactor/src/check/after.rs index fdd31a3..2105ecb 100644 --- a/crates/vlog_refactor/src/check/after.rs +++ b/crates/vlog_refactor/src/check/after.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The state after the edits: the index the verifier compares against, and //! one watched file's print of it. //! @@ -294,3 +296,5 @@ mod tests { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/check/implicit.rs b/crates/vlog_refactor/src/check/implicit.rs index a3b3d99..ebd0ddd 100644 --- a/crates/vlog_refactor/src/check/implicit.rs +++ b/crates/vlog_refactor/src/check/implicit.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! What the rename verifier learns about implicit connections (`.name` and //! `.*`), and why it had to learn it. //! @@ -802,3 +804,5 @@ mod tests { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/check/ledger.rs b/crates/vlog_refactor/src/check/ledger.rs index 9cbf088..8ce0c53 100644 --- a/crates/vlog_refactor/src/check/ledger.rs +++ b/crates/vlog_refactor/src/check/ledger.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The lexical half of the splice contract: the pieces a file is made of, the //! comparison that says an edit wrote exactly what it promised, and the ledger //! of the pieces that are never dropped. @@ -908,3 +910,5 @@ mod tests { assert!(message.contains("attributes are never dropped"), "{message}"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/check/mod.rs b/crates/vlog_refactor/src/check/mod.rs index 89c50c3..55f2265 100644 --- a/crates/vlog_refactor/src/check/mod.rs +++ b/crates/vlog_refactor/src/check/mod.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Whole-edit-or-nothing verification. //! //! Two independent checks, both run on the edited text in memory before any @@ -1267,3 +1269,5 @@ mod tests { assert!(outcome.is_err(), "a half-done rename must not verify: {outcome:?}"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/check/qa_block_attacks.rs b/crates/vlog_refactor/src/check/qa_block_attacks.rs index 9bc7d8b..eb813db 100644 --- a/crates/vlog_refactor/src/check/qa_block_attacks.rs +++ b/crates/vlog_refactor/src/check/qa_block_attacks.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! QA re-attack (TODO §65.1, CLAUDE.md invariant 4) on the rename verifier //! over block labels, beyond the dev's `qa_block_paths`: corrupted outputs //! that rename an unrelated block of the same name, rebind a path to another @@ -173,3 +175,5 @@ fn a_rename_to_the_genvar_that_captures_the_path_inside_the_loop_is_rejected() { let edits = vec![("inside.sv", (0..3).map(|n| at_word(INSIDE, "g_lane", n, "gi")).collect())]; assert!(verdict(&[("inside.sv", INSIDE)], &edits, "g_lane", "gi").is_err()); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/check/qa_block_paths.rs b/crates/vlog_refactor/src/check/qa_block_paths.rs index cad7267..2a3b5d6 100644 --- a/crates/vlog_refactor/src/check/qa_block_paths.rs +++ b/crates/vlog_refactor/src/check/qa_block_paths.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! TODO §65.1: masked-corruption attacks on the rename verifier over paths //! through a block label (CLAUDE.md invariant 4). //! @@ -138,3 +140,5 @@ fn a_rename_that_also_rewrote_the_member_after_the_segment_is_rejected() { edits[1].1.push(sig); assert!(verdict(&edits).is_err(), "`.sig` is another declaration's reference"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/check/qa_implicit.rs b/crates/vlog_refactor/src/check/qa_implicit.rs index 7ec93b2..cc2a2e4 100644 --- a/crates/vlog_refactor/src/check/qa_implicit.rs +++ b/crates/vlog_refactor/src/check/qa_implicit.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! QA M3.5 (2026-09-23): masked-corruption attacks on the rename verifier's //! implicit-connection widening (`check::implicit`), CLAUDE.md invariant 4. //! @@ -496,3 +498,5 @@ fn qa_p_a_clean_list_beside_an_error_element_list_still_verifies() { let into_error = run(Some(put(&top, "(clk)'(clk)", ", .din(d)"))); assert!(outside(&into_error), "{into_error:?}"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/extract/boundary.rs b/crates/vlog_refactor/src/extract/boundary.rs index 1768acd..eeeb2fb 100644 --- a/crates/vlog_refactor/src/extract/boundary.rs +++ b/crates/vlog_refactor/src/extract/boundary.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Which names cross the selection's boundary, and what the new module's //! header is therefore made of. //! @@ -460,3 +462,5 @@ pub(super) fn packages(tree: &SourceFile) -> Vec<(String, TextRange)> { }) .collect() } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/extract/flow.rs b/crates/vlog_refactor/src/extract/flow.rs index 00f823e..dbd5007 100644 --- a/crates/vlog_refactor/src/extract/flow.rs +++ b/crates/vlog_refactor/src/extract/flow.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Which names cross the selection's boundary, and in which direction. //! //! The whole of "what ports does the new module need" is here, and it is one @@ -663,3 +665,5 @@ fn no_direction(module: &str, port: &str) -> String { "`{module}` declares `{port}` without a direction, so lucisv cannot tell whether the selection drives it." ) } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/extract/mod.rs b/crates/vlog_refactor/src/extract/mod.rs index 32d7191..fe7821d 100644 --- a/crates/vlog_refactor/src/extract/mod.rs +++ b/crates/vlog_refactor/src/extract/mod.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Extract a selection of whole module items into a module of its own. //! //! The user selects one or more contiguous items of a module `M` — an @@ -539,3 +541,5 @@ fn lost_name(name: &str) -> String { fn lost(what: &str) -> String { format!("lucisv could not name one of the files it edited for {what}.") } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/extract/region.rs b/crates/vlog_refactor/src/extract/region.rs index 1cbff27..484b4d0 100644 --- a/crates/vlog_refactor/src/extract/region.rs +++ b/crates/vlog_refactor/src/extract/region.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! What the selection covers: the module it is written in, the run of whole //! module items it spans, and the bytes the extraction will delete. //! @@ -207,3 +209,5 @@ const INTERFACE: &str = "the selection is inside an `interface`, whose signals are its surface — every one of them is driven and read by whatever instantiates it — so there is no boundary for lucisv to infer ports across; lucisv extracts out of a `module`."; const PROGRAM: &str = "the selection is inside a `program`, whose items are testbench code whose meaning depends on when it runs; lucisv extracts out of a `module`."; + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/extract/render.rs b/crates/vlog_refactor/src/extract/render.rs index 265440d..e624fa1 100644 --- a/crates/vlog_refactor/src/extract/render.rs +++ b/crates/vlog_refactor/src/extract/render.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Writing the new module, and the instantiation that stands where its items //! used to be. //! @@ -382,3 +384,5 @@ fn delayed(module: &str, name: &str) -> String { fn lost(name: &str) -> String { format!("lucisv lost track of the declaration of `{name}`, so it made no edits.") } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/imports.rs b/crates/vlog_refactor/src/imports.rs index 2918a85..3b42403 100644 --- a/crates/vlog_refactor/src/imports.rs +++ b/crates/vlog_refactor/src/imports.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Organize imports: drop what nothing uses, merge exact duplicates, sort the //! run at the scope's top. //! @@ -562,3 +564,5 @@ fn unparsed(file: &Path, diagnostics: &[ParseDiagnostic]) -> Result<(), String> )), } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/inline/mod.rs b/crates/vlog_refactor/src/inline/mod.rs index bc684bd..46c940a 100644 --- a/crates/vlog_refactor/src/inline/mod.rs +++ b/crates/vlog_refactor/src/inline/mod.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Inline a module: replace `S u_S (...)` with what `S` is made of. //! //! The mirror of [`crate::extract_module`], and the mirror only up to a point. @@ -383,3 +385,5 @@ fn abandoned(site: &Site<'_>) -> String { } const NOTHING: &str = "there is no module instantiation under the cursor to inline."; + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/inline/render.rs b/crates/vlog_refactor/src/inline/render.rs index 27d57a8..11a1a77 100644 --- a/crates/vlog_refactor/src/inline/render.rs +++ b/crates/vlog_refactor/src/inline/render.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! What lucisv writes where the instantiation was. //! //! One substitution, applied to spans of `S`'s own text: every use of a port @@ -417,3 +419,5 @@ fn slice(text: &str, span: TextRange) -> &str { fn lost(name: &str) -> String { format!("lucisv lost track of `{name}`'s own scope, so it made no edits.") } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/inline/site.rs b/crates/vlog_refactor/src/inline/site.rs index 43e28b7..0677e84 100644 --- a/crates/vlog_refactor/src/inline/site.rs +++ b/crates/vlog_refactor/src/inline/site.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! What the cursor is standing on: the module `M`, the instantiation of `S` //! written directly in its body, and what each of that instantiation's //! connections binds to. @@ -215,3 +217,5 @@ const WILDCARD: &str = "the instantiation connects its ports with `.*`, which names no port at all; expand `.*` first (lucisv: expand `.*`)."; const DIRECTIVES: &str = "the instantiation's list carries compiler directives, and lucisv does not evaluate one, so it cannot tell which connections are really written."; + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/inline/source.rs b/crates/vlog_refactor/src/inline/source.rs index db2d7fe..83c9cdd 100644 --- a/crates/vlog_refactor/src/inline/source.rs +++ b/crates/vlog_refactor/src/inline/source.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! What `S` is made of, and the shapes of `S` lucisv will not copy into //! another module. //! @@ -320,3 +322,5 @@ fn non_ansi(name: &str) -> String { "`{name}` declares its ports in the Verilog-2001 style, with the directions written in its body; convert them to ANSI ports first (lucisv: convert to ANSI ports)." ) } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/instantiate.rs b/crates/vlog_refactor/src/instantiate.rs index 718c774..408a02f 100644 --- a/crates/vlog_refactor/src/instantiate.rs +++ b/crates/vlog_refactor/src/instantiate.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Module hinting: the facts an instantiation skeleton is made of, and the //! skeleton itself as plain text. //! @@ -1001,3 +1003,5 @@ endmodule assert_eq!(module_names(&index, "dup"), ["dup"]); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/lib.rs b/crates/vlog_refactor/src/lib.rs index 27a15ab..75f0613 100644 --- a/crates/vlog_refactor/src/lib.rs +++ b/crates/vlog_refactor/src/lib.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Refactorings for Verilog/SystemVerilog. //! //! This crate plays the role of [rope](https://github.com/python-rope/rope) in @@ -221,3 +223,5 @@ mod tests { assert_eq!(shift.map(TextRange::new(2, 3)), TextRange::new(5, 6)); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/ports/add.rs b/crates/vlog_refactor/src/ports/add.rs index 9a2dcf8..378196e 100644 --- a/crates/vlog_refactor/src/ports/add.rs +++ b/crates/vlog_refactor/src/ports/add.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Adding a port: the free-form declaration the user typed, parsed with //! formatter-grade suspicion; the edits to the module's own header (ANSI, //! non-ANSI, empty, or none), guarded against landing inside an `` `ifdef`` @@ -542,3 +544,5 @@ mod tests { assert!(parse_port_decl("input a; input b").is_err(), "two declarations"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/ports/ansi.rs b/crates/vlog_refactor/src/ports/ansi.rs index 4395d98..331fd70 100644 --- a/crates/vlog_refactor/src/ports/ansi.rs +++ b/crates/vlog_refactor/src/ports/ansi.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Converting a Verilog-2001 header to an ANSI one: `module m (a, b);` with //! `input a; output [7:0] b; reg [7:0] b;` in the body becomes //! `module m (input a, output reg [7:0] b);` with the body declarations gone. @@ -521,3 +523,5 @@ fn line_free(text: &str, at: u32) -> bool { fn inline_safe(comment: &str) -> bool { comment.starts_with("/*") && !comment.contains('\n') } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/ports/expand.rs b/crates/vlog_refactor/src/ports/expand.rs index fa996d3..2cd0303 100644 --- a/crates/vlog_refactor/src/ports/expand.rs +++ b/crates/vlog_refactor/src/ports/expand.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Expanding `.*`: the wildcard connection written out as the named //! connections it stands for. //! @@ -343,3 +345,5 @@ fn expected( } shape } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/ports/find.rs b/crates/vlog_refactor/src/ports/find.rs index c9a617e..b9545b6 100644 --- a/crates/vlog_refactor/src/ports/find.rs +++ b/crates/vlog_refactor/src/ports/find.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Finding what a request points at: the module a [`ModuleRef`] names and //! the file that declares it, the innermost module at an offset, a module's //! declared ports, every instantiation a file writes, and whether a signal @@ -281,3 +283,5 @@ mod tests { ); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/ports/list.rs b/crates/vlog_refactor/src/ports/list.rs index 3bf2faf..6b8aa17 100644 --- a/crates/vlog_refactor/src/ports/list.rs +++ b/crates/vlog_refactor/src/ports/list.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Editing a parenthesized comma-separated list in place — append one //! element copying the list's own layout, delete one taking the right comma //! with it — and finding the parentheses the lists live in: a module's port @@ -416,3 +418,5 @@ mod tests { assert_eq!(port_list_parens(&tokens, 8), None); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/ports/merge.rs b/crates/vlog_refactor/src/ports/merge.rs index d59e892..eb80122 100644 --- a/crates/vlog_refactor/src/ports/merge.rs +++ b/crates/vlog_refactor/src/ports/merge.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! IEEE 1800 §23.2.2.2: pairing each name of a non-ANSI header with the body //! declarations that describe it, and merging the two into the one ANSI port //! declaration that says the same thing. @@ -323,3 +325,5 @@ fn dims( )), } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/ports/mod.rs b/crates/vlog_refactor/src/ports/mod.rs index 44a6462..e302e83 100644 --- a/crates/vlog_refactor/src/ports/mod.rs +++ b/crates/vlog_refactor/src/ports/mod.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Module port signature changes: add a port, remove a port, propagate the //! ports a single instantiation is missing. //! @@ -510,3 +512,5 @@ fn confirm(scope: &Scope, plan: &Plan, module: &str, what: &str) -> Result<(), S } Ok(()) } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/ports/offer.rs b/crates/vlog_refactor/src/ports/offer.rs index e656a23..ac92a00 100644 --- a/crates/vlog_refactor/src/ports/offer.rs +++ b/crates/vlog_refactor/src/ports/offer.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Which port refactorings a cursor would be *offered*, and what each one's //! title promises — without a workspace index, without an analysis of any file //! but the cursor's own, and without verifying anything. @@ -419,3 +421,5 @@ fn conversion(buffer: &Buffer<'_>, files: &mut Files<'_>, offset: u32) -> Option kind: PortOfferKind::Convert, }) } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/ports/propagate.rs b/crates/vlog_refactor/src/ports/propagate.rs index 21a0c97..bcf7ee0 100644 --- a/crates/vlog_refactor/src/ports/propagate.rs +++ b/crates/vlog_refactor/src/ports/propagate.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Propagating ports: the named connections one instantiation is missing, //! appended from the instantiated module's own declaration — each visible //! signal connected by name, each missing one left as a `/* TODO */` and said @@ -162,3 +164,5 @@ pub(super) fn plan_propagate( plan.expected.push((i, expected)); Ok((site, plan)) } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/ports/remove.rs b/crates/vlog_refactor/src/ports/remove.rs index b3b7c15..26130f8 100644 --- a/crates/vlog_refactor/src/ports/remove.rs +++ b/crates/vlog_refactor/src/ports/remove.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Removing a port: the port under the cursor (header or non-ANSI body //! declaration), the refusal when the module's own body still uses it, the //! header and body deletions, the disconnection at every instantiation in @@ -360,3 +362,5 @@ pub(super) fn disconnections_in( } Ok((edits, sites)) } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/references.rs b/crates/vlog_refactor/src/references.rs index e9c0ed1..5725fb8 100644 --- a/crates/vlog_refactor/src/references.rs +++ b/crates/vlog_refactor/src/references.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Find-all-references: the read-only half of what a rename already computes. //! //! A rename resolves the cursor to a *declaration* and then collects every @@ -180,3 +182,5 @@ mod tests { assert!(find_references(&files, Path::new("/w/sub.sv"), 0, true).is_err(), "the keyword"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/rename/arms.rs b/crates/vlog_refactor/src/rename/arms.rs index e5ef67d..4258f2e 100644 --- a/crates/vlog_refactor/src/rename/arms.rs +++ b/crates/vlog_refactor/src/rename/arms.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The same-named members a rename leaves in the *other* arms of a generate //! label, said out loud (generate-label-rename QA F2, re-check R3). //! @@ -118,3 +120,5 @@ fn arm_at( sem.scope(child).is_some_and(|c| c.kind == ScopeKind::Generate && c.span == span) }) } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/rename/carry.rs b/crates/vlog_refactor/src/rename/carry.rs index 040d6f0..ad43d46 100644 --- a/crates/vlog_refactor/src/rename/carry.rs +++ b/crates/vlog_refactor/src/rename/carry.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Which macro arguments can reach a module member from any file (TODO //! §65.1, independent review H-1/H-2, 2026-10-06). //! @@ -322,3 +324,5 @@ mod tests { assert_eq!(argument_position(args, args.find('g').unwrap_or(0)), 4); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/rename/connections.rs b/crates/vlog_refactor/src/rename/connections.rs index f4aee12..b585bd1 100644 --- a/crates/vlog_refactor/src/rename/connections.rs +++ b/crates/vlog_refactor/src/rename/connections.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! A rename versus the connections that name it **implicitly**: the `.name` //! shorthand and the `.*` wildcard (IEEE 1800 §23.3.2.3–4). //! @@ -607,3 +609,5 @@ fn cannot_rewrite(here: &str, old: &str, how: &str) -> String { "{here} may bind `{old}` implicitly through `{how}`, from a scope lucisv cannot tie to the renamed declaration (a package import, or a `bind` target it cannot name); the rename was abandoned." ) } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/rename/home.rs b/crates/vlog_refactor/src/rename/home.rs index c1772cd..60ae027 100644 --- a/crates/vlog_refactor/src/rename/home.rs +++ b/crates/vlog_refactor/src/rename/home.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The **home set** of a declaration: the files whose text the preprocessor //! pastes into, or out of, the scope the declaration is written in (TODO //! §65.1, QA final H1–H4 and the lead's corrected ruling, 2026-09-30). @@ -324,3 +326,5 @@ mod tests { assert!(invoked.contains("A") && invoked.contains("B")); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/rename/layout.rs b/crates/vlog_refactor/src/rename/layout.rs index f6d0042..50dea45 100644 --- a/crates/vlog_refactor/src/rename/layout.rs +++ b/crates/vlog_refactor/src/rename/layout.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The text a rewritten implicit connection is spelled with, and where it is //! written: a `(net)` after a `.name` shorthand, or a whole `.port(net)` //! appended to a connection list that uses `.*`. @@ -182,3 +184,5 @@ mod tests { assert_eq!(shorthand_tail(5, "q", "p").new_text, "(p)"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/rename/mod.rs b/crates/vlog_refactor/src/rename/mod.rs index 29d366d..3db2317 100644 --- a/crates/vlog_refactor/src/rename/mod.rs +++ b/crates/vlog_refactor/src/rename/mod.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Rename: the first refactoring, and the shape every later one follows. //! //! Read top-to-bottom, a rename is five steps: check the new name, resolve the @@ -630,3 +632,5 @@ fn unspelled(name: &str) -> String { "lucisv cannot find where `{name}` is spelled in its declaration, so it will not edit it." ) } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/rename/paths.rs b/crates/vlog_refactor/src/rename/paths.rs index ab98175..f0979f0 100644 --- a/crates/vlog_refactor/src/rename/paths.rs +++ b/crates/vlog_refactor/src/rename/paths.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! What a rename could not account for **in hierarchical paths**, said out //! loud (generate-label-rename QA F1). //! @@ -246,3 +248,5 @@ mod tests { assert_eq!(at, vec![true, true, false, false]); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/rename/preflight.rs b/crates/vlog_refactor/src/rename/preflight.rs index 02f5ee3..d3d2b6b 100644 --- a/crates/vlog_refactor/src/rename/preflight.rs +++ b/crates/vlog_refactor/src/rename/preflight.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The refusals a rename can reach from the request buffer alone. //! //! `renaming` builds a whole [`Scope`](crate::scope::Scope) — one parse and @@ -82,3 +84,5 @@ fn declared_here(semantics: &Semantics, symbol: SymbolId, new_name: &str) -> Res } Ok(()) } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/rename/scoped.rs b/crates/vlog_refactor/src/rename/scoped.rs index e29aeb0..f62160f 100644 --- a/crates/vlog_refactor/src/rename/scoped.rs +++ b/crates/vlog_refactor/src/rename/scoped.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Which of the rename's *text* warnings are about the renamed declaration //! (TODO §65.1: the lead's inspection, QA's final pass H1–H4, rework 4's //! K1–K3/N1–N3 and the corrected rulings, 2026-09-30). @@ -403,3 +405,5 @@ mod tests { assert_eq!(spellings("/* a. */ state_q", "state_q"), (vec![9], false)); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/rename/sites.rs b/crates/vlog_refactor/src/rename/sites.rs index 58eac3f..042e634 100644 --- a/crates/vlog_refactor/src/rename/sites.rs +++ b/crates/vlog_refactor/src/rename/sites.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Where an implicit connection is written, and where its name binds. //! //! `.name` and `.*` (IEEE 1800 §23.3.2.3–4) connect a port to the same-named @@ -251,3 +253,5 @@ mod tests { assert!(!may_connect_implicitly("assign w = u_sub.d;", &["d"])); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/rename/tests.rs b/crates/vlog_refactor/src/rename/tests.rs index 09b38c8..71a7144 100644 --- a/crates/vlog_refactor/src/rename/tests.rs +++ b/crates/vlog_refactor/src/rename/tests.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The rename's own tests: the new-name check, and `prepare_rename_here` //! against `prepare_rename` at every byte of a buffer. @@ -500,3 +502,5 @@ fn a_record_that_names_another_file_is_not_taken() { assert_eq!(trace.indexing.reused_files, 0, "and must not be counted as reuse"); assert_eq!(trace.parses, plain_trace.parses, "so every file was parsed as it always was"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/rename/warnings.rs b/crates/vlog_refactor/src/rename/warnings.rs index 00ecdf3..896dbc0 100644 --- a/crates/vlog_refactor/src/rename/warnings.rs +++ b/crates/vlog_refactor/src/rename/warnings.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! What a rename could not account for, said out loud: the name inside a //! `` `define`` or a macro invocation's opaque token, inside an assertion the //! SVA grammar could not structure, a reference the workspace could not @@ -1143,3 +1145,5 @@ mod tests { assert_eq!(shared, reference); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/scope.rs b/crates/vlog_refactor/src/scope.rs index 280150b..4789888 100644 --- a/crates/vlog_refactor/src/scope.rs +++ b/crates/vlog_refactor/src/scope.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The in-scope files, the index built from them, and the analyses computed //! so far — what every refactoring in this crate reads the workspace through. //! Nothing here is specific to a rename: `ports`, `references` and @@ -606,3 +608,5 @@ mod tests { assert_eq!(names.name(Path::new("/elsewhere/new.sv")), "new.sv", "outside the set"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/src/trace.rs b/crates/vlog_refactor/src/trace.rs index 598f45c..922047f 100644 --- a/crates/vlog_refactor/src/trace.rs +++ b/crates/vlog_refactor/src/trace.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Where a rename's time and its whole-file parses went. //! //! Take 5 §P2a (`docs/features/perf5-p2/README.md`): the tail rename costs @@ -250,3 +252,5 @@ impl RenameTrace { ) } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/tests/ansi.rs b/crates/vlog_refactor/tests/ansi.rs index 1775d0c..d655a14 100644 --- a/crates/vlog_refactor/tests/ansi.rs +++ b/crates/vlog_refactor/tests/ansi.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `convert_to_ansi`: a Verilog-2001 header rewritten ANSI-style. //! //! Behaviour tests, written against the public API the way an editor calls it. @@ -549,3 +551,5 @@ fn a_comment_on_a_declaration_of_two_ports_is_written_once() { assert_eq!(out.matches("// both of them").count(), 1, "{out}"); assert_eq!(out, "module m (\n input a, // both of them\n input b\n);\nendmodule\n"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/tests/corpus.rs b/crates/vlog_refactor/tests/corpus.rs index 10af515..3e16767 100644 --- a/crates/vlog_refactor/tests/corpus.rs +++ b/crates/vlog_refactor/tests/corpus.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Real-RTL acceptance (`corpus/`, fetched by `tools/corpus_fetch.sh`). //! //! Two properties, neither of them a percentage: a refactoring over a real @@ -1301,3 +1303,5 @@ fn a_corpus_rename_says_the_same_thing_however_many_records_are_reused() { ); assert!(mixed.parses < plain.parses, "and so must the mixture"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/tests/expand.rs b/crates/vlog_refactor/tests/expand.rs index c217f8a..79d9451 100644 --- a/crates/vlog_refactor/tests/expand.rs +++ b/crates/vlog_refactor/tests/expand.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Behavior tests for `expand_wildcard`: what the `.*` expansion writes, what //! it refuses, and what the formatter says about the result. //! @@ -427,3 +429,5 @@ fn a_file_that_does_not_parse_is_named_by_its_path_when_its_name_is_shared() { .expect_err("refused"); assert!(refusal.starts_with("/w/a/top.sv does not parse"), "{refusal}"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/tests/extract.rs b/crates/vlog_refactor/tests/extract.rs index 3978d4f..e8fddf0 100644 --- a/crates/vlog_refactor/tests/extract.rs +++ b/crates/vlog_refactor/tests/extract.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Extracting a selection of whole module items into a module of its own — //! TODO §53.1. //! @@ -734,3 +736,5 @@ fn a_crossing_member_access_names_the_head_and_the_field_second() { assert!(said.contains("uses `s.f`"), "{said}"); assert!(said.contains("`s` is declared with a type written outside `m`"), "{said}"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/tests/import_offers.rs b/crates/vlog_refactor/tests/import_offers.rs index 18990e9..1098b04 100644 --- a/crates/vlog_refactor/tests/import_offers.rs +++ b/crates/vlog_refactor/tests/import_offers.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The organize-imports offer promises exactly what the refactoring delivers. //! //! Take 5 §P1c (`docs/features/perf5-p1/README.md`) added @@ -200,3 +202,5 @@ fn the_fixture_really_is_offered_the_action_with_the_title_it_promises() { assert_eq!((removed, sorted), (1, 1), "one unused import goes and one is written back"); assert_eq!(organize_title(removed, sorted), "lucisv: organize imports (removes 1, sorts 1)"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/tests/imports.rs b/crates/vlog_refactor/tests/imports.rs index e3c4322..8fa3919 100644 --- a/crates/vlog_refactor/tests/imports.rs +++ b/crates/vlog_refactor/tests/imports.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Behavior tests for `organize_imports` and `unused_imports`: what the //! organize writes, what it keeps, what it refuses, and the attack pair that //! proves the verifier is the second net. @@ -443,3 +445,5 @@ fn a_dpi_export_backs_no_import() { let (_, text) = organize(top, "package c_pkg").expect("the unused import goes"); assert!(!text.contains("import a_pkg"), "{text}"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/tests/inline.rs b/crates/vlog_refactor/tests/inline.rs index ea1126b..0650d75 100644 --- a/crates/vlog_refactor/tests/inline.rs +++ b/crates/vlog_refactor/tests/inline.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Inlining a module: the substitution, the prefixing rule, the refusals and //! the round trip with `extract_module`. See //! `docs/features/extract-inline-module/README.md`. @@ -602,3 +604,5 @@ endmodule let out = inlined(top, sub).expect("inlines"); assert!(out.contains("localparam string NAME = \"a b\";"), "{out}"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/tests/opentitan_top_rooted.rs b/crates/vlog_refactor/tests/opentitan_top_rooted.rs index b47335d..7047292 100644 --- a/crates/vlog_refactor/tests/opentitan_top_rooted.rs +++ b/crates/vlog_refactor/tests/opentitan_top_rooted.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! TODO §65.4 on a real checkout: `rename keymgr_dpe.gen_sw_assigns`, whose //! DV interface writes `force tb.dut.gen_sw_assigns[i]…` (a path rooted at a //! top module another file declares, IEEE 1800 §23.6). @@ -153,3 +155,5 @@ fn index_cost_over_the_whole_tree() { files.len() ); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/tests/parsed_selectors.rs b/crates/vlog_refactor/tests/parsed_selectors.rs index 44adcbc..0b15823 100644 --- a/crates/vlog_refactor/tests/parsed_selectors.rs +++ b/crates/vlog_refactor/tests/parsed_selectors.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The four cheap gates answer the same thing over a parse the caller already //! has as they do over the text they would parse themselves. //! @@ -169,3 +171,5 @@ fn the_parsed_gates_find_what_the_fixture_was_written_to_offer() { let assign = CLEAN.find("assign q_o").expect("the assign") as u32; assert!(extract_site_in(&tree, &diagnostics, CLEAN, assign, assign).is_some()); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/tests/port_offers.rs b/crates/vlog_refactor/tests/port_offers.rs index 113072b..30d2d01 100644 --- a/crates/vlog_refactor/tests/port_offers.rs +++ b/crates/vlog_refactor/tests/port_offers.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The offer predicate answers exactly what the four full refactorings answer. //! //! Take 5 §P1c (`docs/features/perf5-p1/README.md`) added @@ -243,3 +245,5 @@ fn every_one_of_the_four_refactorings_is_offered_somewhere_in_the_fixtures() { assert!(seen.contains(&wanted), "{wanted:?} is never offered: {seen:?}"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/tests/ports.rs b/crates/vlog_refactor/tests/ports.rs index 12e2a7b..704c8ff 100644 --- a/crates/vlog_refactor/tests/ports.rs +++ b/crates/vlog_refactor/tests/ports.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Behavior tests for the port refactorings: what the engine writes, and what //! it refuses to write. //! @@ -792,3 +794,5 @@ fn a_macro_invocation_in_an_instantiating_file_is_reported_when_the_port_goes() edit.warnings ); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/tests/preflight_oracle.rs b/crates/vlog_refactor/tests/preflight_oracle.rs index 7dd348f..21c8f75 100644 --- a/crates/vlog_refactor/tests/preflight_oracle.rs +++ b/crates/vlog_refactor/tests/preflight_oracle.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `rename_preflight` against the road it short-circuits, refusal by refusal. //! //! The preflight answers, from the request file alone, a question `rename` @@ -293,3 +295,5 @@ fn the_preflight_reads_only_the_buffer_it_was_given() { assert_eq!(vlog_parser::stats::parses() - before, 0, "the preflight parsed something"); assert_eq!(refusal, "there is no symbol to rename at this position."); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/tests/qa_generate_label.rs b/crates/vlog_refactor/tests/qa_generate_label.rs index 2ada1da..2a750b2 100644 --- a/crates/vlog_refactor/tests/qa_generate_label.rs +++ b/crates/vlog_refactor/tests/qa_generate_label.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! QA attacks on TODO §65.1 (rename and references through a block label). //! //! Every test drives the public `rename` / `find_references` over a small @@ -799,3 +801,5 @@ endmodule .expect("renames"); assert!(warnings.iter().any(|w| w.contains("tn.sv:10,")), "{warnings:?}"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/tests/qa_rename_implicit.rs b/crates/vlog_refactor/tests/qa_rename_implicit.rs index fedbc16..5bb7049 100644 --- a/crates/vlog_refactor/tests/qa_rename_implicit.rs +++ b/crates/vlog_refactor/tests/qa_rename_implicit.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! QA attacks on the rename's implicit-connection rewrite (TODO-MCP M3.5): //! `.name` and `.*` written out explicitly when a rename would cut them. //! @@ -467,3 +469,5 @@ fn qa_b_a_generate_scoped_instance_is_not_the_enclosing_modules_own() { let refusal = outcome.expect_err("the bind may reach p.u, a cnt"); assert!(refusal.contains("`c_u`"), "{refusal}"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/tests/qa_warning_scope.rs b/crates/vlog_refactor/tests/qa_warning_scope.rs index d484cad..c9a111a 100644 --- a/crates/vlog_refactor/tests/qa_warning_scope.rs +++ b/crates/vlog_refactor/tests/qa_warning_scope.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! QA attacks on TODO §65.1 rework 3 (`rename/scoped.rs`): a module member's //! bare spelling in another file's macro argument, `` `define`` body or //! unstructured assertion is no longer warned about. The danger is a HIDDEN @@ -523,3 +525,5 @@ fn rework5_bind_by_two_level_path_and_three_levels_of_includers() { assert!(said(&warnings, "top.sv", 3), "three levels up, macro argument: {warnings:#?}"); assert!(said(&warnings, "top.sv", 4), "three levels up, plain use: {warnings:#?}"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/tests/rename.rs b/crates/vlog_refactor/tests/rename.rs index 6bfa3be..51f8c44 100644 --- a/crates/vlog_refactor/tests/rename.rs +++ b/crates/vlog_refactor/tests/rename.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! What rename does, and — more importantly — what it refuses to do. //! //! Every test drives the public API only: a little in-memory workspace of @@ -1365,3 +1367,5 @@ fn a_file_whose_only_relationship_to_the_name_is_a_macro_argument_is_warned_abou edit.warnings ); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/tests/rename_bind.rs b/crates/vlog_refactor/tests/rename_bind.rs index 1904ce9..c72af74 100644 --- a/crates/vlog_refactor/tests/rename_bind.rs +++ b/crates/vlog_refactor/tests/rename_bind.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! A `bind` directive's own occurrences of a renamed name (TODO §63.1). //! //! `bind aes aes_reseed_if u_x (.entropy_masking_req(entropy_masking_req));` @@ -722,3 +724,5 @@ impl vlog_refactor::KnownFacts for Records { .map(|(_, _, facts)| facts.clone()) } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/tests/rename_generate_label.rs b/crates/vlog_refactor/tests/rename_generate_label.rs index 530cfa6..46121e8 100644 --- a/crates/vlog_refactor/tests/rename_generate_label.rs +++ b/crates/vlog_refactor/tests/rename_generate_label.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! A rename and a reference list through a block label (TODO §65.1, topo //! §2.9-43, MCP-14). //! @@ -378,3 +380,5 @@ fn warnings_name_a_shared_base_name_by_its_path_and_a_unique_one_bare() { let (_, warnings) = renamed(&unique, "dut_x.sv", "begin : ", "g_sw", "g_hw").expect("renames"); assert!(warnings.iter().any(|w| w.starts_with("x_if.sv:2: ")), "{warnings:?}"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/tests/rename_implicit.rs b/crates/vlog_refactor/tests/rename_implicit.rs index 0580154..8e26828 100644 --- a/crates/vlog_refactor/tests/rename_implicit.rs +++ b/crates/vlog_refactor/tests/rename_implicit.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! A rename versus the connections that bind by equal names: `.name` and //! `.*` (M3 QA finding 1, TODO-MCP M3.5). //! @@ -374,3 +376,5 @@ fn a_bind_into_the_enclosing_modules_own_instance_is_that_instance() { renamed(&files, "fifo.sv", "output logic ", "err_o", "error_o").expect_err("refused"); assert!(refusal.contains("`u_a` at tb.sv:4"), "{refusal}"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/tests/rename_macro_carry.rs b/crates/vlog_refactor/tests/rename_macro_carry.rs index 4611954..5d826a0 100644 --- a/crates/vlog_refactor/tests/rename_macro_carry.rs +++ b/crates/vlog_refactor/tests/rename_macro_carry.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! A bare macro argument in another module is that module's own name — //! unless the macro carries it to the renamed declaration: after a `.` //! (`force u_m.sig`, a named connection `.x(x)`), through a pasted path @@ -136,3 +138,5 @@ endmodule let warnings = warnings_of(&[("defs.svh", defs), ("other.sv", other)]); assert!(!said(&warnings, "other.sv", 3), "{warnings:#?}"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/tests/rename_warning_scope.rs b/crates/vlog_refactor/tests/rename_warning_scope.rs index 4f51ce3..53c6a80 100644 --- a/crates/vlog_refactor/tests/rename_warning_scope.rs +++ b/crates/vlog_refactor/tests/rename_warning_scope.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! A rename's text warnings are about the renamed declaration (TODO §65.1, //! lead's inspection 2026-09-30): a module member's bare spelling in another //! module's macro argument, `` `define`` body or unstructured assertion is @@ -171,3 +173,5 @@ fn an_included_fragment_that_does_not_lex_is_said() { "{warnings:#?}" ); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_refactor/tests/top_rooted_paths.rs b/crates/vlog_refactor/tests/top_rooted_paths.rs index d27c737..08cf1cd 100644 --- a/crates/vlog_refactor/tests/top_rooted_paths.rs +++ b/crates/vlog_refactor/tests/top_rooted_paths.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! TODO §65.4: `find_references` and `rename` through a hierarchical path //! rooted at a top-level module another file declares (`tb.dut.g_sw[0].q`, //! the opentitan DV `force` shape; IEEE 1800 §23.6), and `$root.tb.…`. @@ -341,3 +343,5 @@ fn qa_r1_a_macro_off_the_scope_chain_or_as_a_type_still_renames() { assert_eq!(texts[1], user.replace("st.a", "st.b"), "{warnings:?}"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/Cargo.toml b/crates/vlog_semantic/Cargo.toml index 8f8ffb5..f10fa5c 100644 --- a/crates/vlog_semantic/Cargo.toml +++ b/crates/vlog_semantic/Cargo.toml @@ -1,3 +1,5 @@ +# Author: Guoliang Chen, a Senior Digital Design Engineer + [package] name = "vlog_semantic" version.workspace = true @@ -7,3 +9,5 @@ description = "Single-file symbol tables and reference resolution for lucisv's l [dependencies] vlog_parser = { path = "../vlog_parser" } + +# Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/src/bind/class.rs b/crates/vlog_semantic/src/bind/class.rs index d30285a..8ebafe6 100644 --- a/crates/vlog_semantic/src/bind/class.rs +++ b/crates/vlog_semantic/src/bind/class.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Classes: the header (`#(...)`, `extends`, `implements`), the body, the //! constraint blocks a class holds — `constraint c { ... }`, its `cls::c` //! out-of-block form and `randomize() with { ... }` — and the out-of-body @@ -426,3 +428,5 @@ fn randomize_head(base: &Expr) -> Option<(String, Vec)> { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/src/bind/cover.rs b/crates/vlog_semantic/src/bind/cover.rs index 7884a9b..a99f60b 100644 --- a/crates/vlog_semantic/src/bind/cover.rs +++ b/crates/vlog_semantic/src/bind/cover.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Covergroups (IEEE 1800 §19): the header's arguments and `sample` method, //! coverpoints and crosses, bins and their specs, and the `with` filter's //! implicit `item`. A file of its own because a covergroup is a scope with a @@ -194,3 +196,5 @@ impl<'a> Binder<'a> { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/src/bind/decl.rs b/crates/vlog_semantic/src/bind/decl.rs index 2bd2fa2..f282a4e 100644 --- a/crates/vlog_semantic/src/bind/decl.rs +++ b/crates/vlog_semantic/src/bind/decl.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Declared names and the types written on them: declarators, port and //! parameter lists, task/function arguments, typedefs, enum and struct bodies, //! and [`Binder::bind_data_type`], the one place a type name becomes a @@ -326,3 +328,5 @@ pub(super) fn param_kind(kw: &str) -> SymbolKind { _ => SymbolKind::Param, } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/src/bind/expr.rs b/crates/vlog_semantic/src/bind/expr.rs index 174ba9d..71111d9 100644 --- a/crates/vlog_semantic/src/bind/expr.rs +++ b/crates/vlog_semantic/src/bind/expr.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Expressions: the `ExprKind` dispatch and everything it records — a bare //! identifier as a lexical use, a member tail against the spine before it, a //! `p::x` against its unit, a cast's type as a type — plus dimensions, which @@ -285,3 +287,5 @@ fn spine(base: &Expr) -> Option<(String, Vec)> { fn member_tail(span: TextRange, name: &str) -> TextRange { TextRange::new(span.end.saturating_sub(name.len() as u32), span.end) } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/src/bind/generate.rs b/crates/vlog_semantic/src/bind/generate.rs index 7543293..09f2cce 100644 --- a/crates/vlog_semantic/src/bind/generate.rs +++ b/crates/vlog_semantic/src/bind/generate.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Generate constructs: `if`/`case`/`for` generate and the blocks they own. //! //! A generate block's **label is declared in the scope the construct is @@ -83,3 +85,5 @@ impl<'a> Binder<'a> { ); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/src/bind/item.rs b/crates/vlog_semantic/src/bind/item.rs index c126647..0bfbf22 100644 --- a/crates/vlog_semantic/src/bind/item.rs +++ b/crates/vlog_semantic/src/bind/item.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The item-level walk: a file or fragment, the `ItemKind` dispatch, modules //! and interfaces (header, ports, modports, clocking blocks), packages and //! imports, instantiations and `bind`, functions and tasks (generate @@ -588,3 +590,5 @@ fn port_list_may_hide_declarations(ports: &PortList) -> bool { PortList::None | PortList::Empty => false, } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/src/bind/mod.rs b/crates/vlog_semantic/src/bind/mod.rs index 4d1e959..b0be9e8 100644 --- a/crates/vlog_semantic/src/bind/mod.rs +++ b/crates/vlog_semantic/src/bind/mod.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Pass one: walk the tree, open scopes, bind declarations, and record every //! identifier *use* as a pending reference. Nothing is resolved here — that is //! `resolve.rs`, and the split is what makes forward references work. @@ -449,3 +451,5 @@ fn type_name_of(ty: &DataType) -> Option { let name = ty.name.split_once('.').map_or(ty.name.as_str(), |(iface, _)| iface); (!name.is_empty() && !is_keyword(name)).then(|| name.to_string()) } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/src/bind/stmt.rs b/crates/vlog_semantic/src/bind/stmt.rs index 97aadd0..189f717 100644 --- a/crates/vlog_semantic/src/bind/stmt.rs +++ b/crates/vlog_semantic/src/bind/stmt.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Statements: blocks and their labels, `if`/`case`, the loops and the scopes //! their variables get, assignments and timing controls, block-scoped //! declarations, and the `@(...)` sensitivity list that clocking blocks, @@ -326,3 +328,5 @@ impl<'a> Binder<'a> { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/src/bind/sva.rs b/crates/vlog_semantic/src/bind/sva.rs index 55c77a8..ae8cf90 100644 --- a/crates/vlog_semantic/src/bind/sva.rs +++ b/crates/vlog_semantic/src/bind/sva.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Assertions (IEEE 1800-2017 §16): `property`/`sequence` declarations, the //! concurrent assertions that instantiate them, and the property-expression //! grammar, in which every identifier is an ordinary use. @@ -158,3 +160,5 @@ impl<'a> Binder<'a> { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/src/classes.rs b/crates/vlog_semantic/src/classes.rs index 1de64bc..96f6546 100644 --- a/crates/vlog_semantic/src/classes.rs +++ b/crates/vlog_semantic/src/classes.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Finding class declarations in a parse tree — one walk, two readers. //! //! `type_hierarchy.rs` wants every class in a file so it can build a hierarchy @@ -121,3 +123,5 @@ endmodule } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/src/facts.rs b/crates/vlog_semantic/src/facts.rs index a979baf..d655ba4 100644 --- a/crates/vlog_semantic/src/facts.rs +++ b/crates/vlog_semantic/src/facts.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! [`FileFacts`] as one line of text: the format the index cache stores a //! parse's result in, and reads it back from. //! @@ -826,3 +828,5 @@ mod tests { assert_eq!(unescape("trailing\\"), None); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/src/imports.rs b/crates/vlog_semantic/src/imports.rs index 1549148..fd2963d 100644 --- a/crates/vlog_semantic/src/imports.rs +++ b/crates/vlog_semantic/src/imports.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Which of a scope's `import`s anything actually uses. //! //! One question, asked by two callers: `vlog_refactor`'s organize-imports @@ -616,3 +618,5 @@ mod tests { assert_eq!(usage(src, "module m", PKG), Ok(vec![("local_pkg".to_string(), true)])); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/src/instantiations.rs b/crates/vlog_semantic/src/instantiations.rs index c0c29a2..96b2e25 100644 --- a/crates/vlog_semantic/src/instantiations.rs +++ b/crates/vlog_semantic/src/instantiations.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Finding module instantiations in a parse tree — one walk, two readers. //! //! `inlay.rs` wants every instantiation in a file so it can decorate the @@ -250,3 +252,5 @@ endmodule assert_eq!(names, ["outer", "inner"]); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/src/lib.rs b/crates/vlog_semantic/src/lib.rs index e98f3a9..5996c8c 100644 --- a/crates/vlog_semantic/src/lib.rs +++ b/crates/vlog_semantic/src/lib.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Single-file symbol tables and reference resolution for Verilog/ //! SystemVerilog. //! @@ -390,3 +392,5 @@ fn position_at(positions: &[(TextRange, Id)], offset: u32) -> Option, } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/src/resolve.rs b/crates/vlog_semantic/src/resolve.rs index bf1f435..632810d 100644 --- a/crates/vlog_semantic/src/resolve.rs +++ b/crates/vlog_semantic/src/resolve.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Pass two: turn every pending use into a [`Resolution`]. //! //! Everything is bound before anything is resolved, so a name used before it @@ -998,3 +1000,5 @@ fn file_symbol( let id = scopes.first()?.lookup_local(name)?; wanted(symbols.get(id.0 as usize)?.kind).then_some(id) } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/src/resolve/root.rs b/crates/vlog_semantic/src/resolve/root.rs index 224c361..7c9ff64 100644 --- a/crates/vlog_semantic/src/resolve/root.rs +++ b/crates/vlog_semantic/src/resolve/root.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! A hierarchical path rooted at a **top-level module** (IEEE 1800 §23.6: a //! top-level module name is the root of a hierarchical name) — `tb.dut.sig` //! written in a file that does not declare `tb`, and `$root.tb.dut.sig`. @@ -83,3 +85,5 @@ pub(super) fn top_module(scopes: &[Scope], symbols: &[Symbol], top: &str) -> Res fn top_candidate(name: &str) -> Resolution { Resolution::ExternalCandidate { paths: vec![name.to_string()], surface: Surface::Hierarchical } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/src/words.rs b/crates/vlog_semantic/src/words.rs index c84d2b2..cb70415 100644 --- a/crates/vlog_semantic/src/words.rs +++ b/crates/vlog_semantic/src/words.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The identifier census of one file: every distinct identifier-shaped word //! its token stream contains. //! @@ -316,3 +318,5 @@ mod tests { assert_eq!(raw_words(""), Vec::<&str>::new()); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/src/workspace/dependents.rs b/crates/vlog_semantic/src/workspace/dependents.rs index 08d866d..b12ecaa 100644 --- a/crates/vlog_semantic/src/workspace/dependents.rs +++ b/crates/vlog_semantic/src/workspace/dependents.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Which files' references read which merged-table keys: recorded while a //! file's references are resolved, and asked when an update moves a key, so //! that only the files that read it are resolved again @@ -150,3 +152,5 @@ impl Dependents { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/src/workspace/external.rs b/crates/vlog_semantic/src/workspace/external.rs index 942c2e1..4c4f37c 100644 --- a/crates/vlog_semantic/src/workspace/external.rs +++ b/crates/vlog_semantic/src/workspace/external.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The overlay: [`resolve_external`] finishes one file's external candidates //! against the index, and [`ExternalResolutions`] holds the answers beside //! that file's `Semantics`. The walks it is made of — a member lookup up the @@ -425,3 +427,5 @@ impl ExternalResolutions { sem.symbol_at(offset).and_then(|id| sem.symbol(id)).map(Definition::Local) } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/src/workspace/hierarchy.rs b/crates/vlog_semantic/src/workspace/hierarchy.rs index 42142d4..0faa75c 100644 --- a/crates/vlog_semantic/src/workspace/hierarchy.rs +++ b/crates/vlog_semantic/src/workspace/hierarchy.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! A unit's two member surfaces: which surface each declaration joins //! ([`surface_of`]), and the index reads that take a [`Surface`] rather than //! assuming one. @@ -162,3 +164,5 @@ pub(super) fn members_of<'i>( } out } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/src/workspace/index.rs b/crates/vlog_semantic/src/workspace/index.rs index b2a90b9..6e9be1a 100644 --- a/crates/vlog_semantic/src/workspace/index.rs +++ b/crates/vlog_semantic/src/workspace/index.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! What a built [`WorkspaceIndex`] answers, by map reads alone: files and //! ids, the unit and member tables, the inherited-member listing, the edges, //! `` `define``s, reference postings, the two spelling censuses and @@ -657,3 +659,5 @@ fn contains_ignore_ascii_case(haystack: &str, needle: &str) -> bool { let needle = needle.as_bytes(); haystack.as_bytes().windows(needle.len()).any(|w| w.eq_ignore_ascii_case(needle)) } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/src/workspace/mod.rs b/crates/vlog_semantic/src/workspace/mod.rs index 6db62a5..d21d9cc 100644 --- a/crates/vlog_semantic/src/workspace/mod.rs +++ b/crates/vlog_semantic/src/workspace/mod.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The workspace index: the second layer of name resolution, the one that //! finishes what [`analyze`](crate::analyze) deliberately leaves open. //! @@ -406,3 +408,5 @@ pub struct IndexTableSizes { pub words: usize, pub word_bytes: usize, } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/src/workspace/path_units.rs b/crates/vlog_semantic/src/workspace/path_units.rs index 8bed458..01c80a1 100644 --- a/crates/vlog_semantic/src/workspace/path_units.rs +++ b/crates/vlog_semantic/src/workspace/path_units.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The design units a hierarchical path to a declaration walks through — //! what a caller handing the refactoring engine a *subset* of the workspace //! must include for that path to resolve inside the subset as it does in the @@ -70,3 +72,5 @@ impl WorkspaceIndex { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/src/workspace/record.rs b/crates/vlog_semantic/src/workspace/record.rs index 0bf0100..f5a5287 100644 --- a/crates/vlog_semantic/src/workspace/record.rs +++ b/crates/vlog_semantic/src/workspace/record.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! What one file contributes to an index, read off its parse: the //! [`FileFacts`] record and the per-file shapes inside it ([`Decl`], //! [`SiteFact`], [`ReferenceFact`]), the read-off itself @@ -635,3 +637,5 @@ fn is_unit(kind: SymbolKind) -> bool { matches!(kind, SymbolKind::Package | SymbolKind::Typedef | SymbolKind::Class) || kind.is_instantiable() } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/src/workspace/reexport.rs b/crates/vlog_semantic/src/workspace/reexport.rs index 3b0c7fd..386b9b1 100644 --- a/crates/vlog_semantic/src/workspace/reexport.rs +++ b/crates/vlog_semantic/src/workspace/reexport.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Package re-exports (IEEE 1800 §26.6) as real edges of the index: the //! [`Reexport`] record one file contributes, the read-off that produces it, //! and the two walks that follow it — one name looked up through a chain of @@ -194,3 +196,5 @@ pub(super) fn members<'i>(index: &'i WorkspaceIndex, unit: &str) -> Vec<(&'i str fn hops<'i>(index: &'i WorkspaceIndex, unit: &str) -> VecDeque<(&'i str, Option<&'i str>)> { index.reexports(unit).iter().map(|e| (e.package.as_str(), e.only())).collect() } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/src/workspace/references.rs b/crates/vlog_semantic/src/workspace/references.rs index b0eba74..ac59a99 100644 --- a/crates/vlog_semantic/src/workspace/references.rs +++ b/crates/vlog_semantic/src/workspace/references.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The declaration → use postings, built from every file's reference facts or //! re-done for a few files: what an update calls once it knows which files //! read a key it moved (`docs/features/localized-reindex/README.md`). @@ -174,3 +176,5 @@ impl WorkspaceIndex { }) } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/src/workspace/replace.rs b/crates/vlog_semantic/src/workspace/replace.rs index 379668d..52cbf9e 100644 --- a/crates/vlog_semantic/src/workspace/replace.rs +++ b/crates/vlog_semantic/src/workspace/replace.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Replacing one held file's record with a different one, doing only the //! work the change can reach: the tables re-merged for the keys either record //! names, from the files that contribute to them, and the postings re-done for @@ -343,3 +345,5 @@ mod tests { assert_eq!(re_resolved(&shifted), ["leaf.sv", "tb.sv", "top.sv"]); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/src/workspace/update.rs b/crates/vlog_semantic/src/workspace/update.rs index 31c4a59..fe43bbb 100644 --- a/crates/vlog_semantic/src/workspace/update.rs +++ b/crates/vlog_semantic/src/workspace/update.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! How an index changes after it is built: replace one file's record, add //! or remove a file, absorb a batch — each producing exactly the index a full //! build over the same records would — the [`WorkspaceIndex::merge`] that @@ -427,3 +429,5 @@ impl Affected { self.macros.extend(facts.defines.entries().iter().map(|define| define.name.clone())); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/tests/binds.rs b/crates/vlog_semantic/tests/binds.rs index a3e3fca..b6a5dd3 100644 --- a/crates/vlog_semantic/tests/binds.rs +++ b/crates/vlog_semantic/tests/binds.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `bind` semantics: what a directive's target names, where each connection's //! two halves resolve, and what is deliberately left unresolved — plus the //! one census fact the same round turned around, that an instantiation whose @@ -203,3 +205,5 @@ fn a_directive_inside_a_connections_value_leaves_the_instantiation_countable() { // `ifdef` this crate never evaluates. assert!(resolution(&s, at(src, " y")).is_none()); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/tests/classes.rs b/crates/vlog_semantic/tests/classes.rs index ad62ac8..d531080 100644 --- a/crates/vlog_semantic/tests/classes.rs +++ b/crates/vlog_semantic/tests/classes.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Class semantics: what a class body binds, how its members resolve, and //! the honest shapes for everything inheritance-flavored. The rules live in //! `docs/features/class-semantics/README.md`. @@ -826,3 +828,5 @@ fn inherited_candidates_are_chased_by_the_overlay_and_only_by_it() { let id = s.reference_id_at(nth(orphan, "held = 1", 0)).expect("an id"); assert!(overlay.get(id).is_none(), "a name the workspace cannot answer is not in the overlay"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/tests/constraints.rs b/crates/vlog_semantic/tests/constraints.rs index 85abc80..fd4d3b5 100644 --- a/crates/vlog_semantic/tests/constraints.rs +++ b/crates/vlog_semantic/tests/constraints.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Constraint bodies: what a `constraint c { ... }` declares, where the names //! inside it bind, and how the out-of-block and `randomize() with` forms //! reach the class they belong to. The rules live in @@ -318,3 +320,5 @@ endclass "item's property wins over driver's same-named field" ); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/tests/corpus.rs b/crates/vlog_semantic/tests/corpus.rs index 25e7100..4ebdf0e 100644 --- a/crates/vlog_semantic/tests/corpus.rs +++ b/crates/vlog_semantic/tests/corpus.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Smoke test over the real-RTL corpus (`corpus/`, fetched by //! `tools/corpus_fetch.sh`): analyze every file, panic nowhere, check that //! every recorded span really covers the name it claims, and report an honest @@ -132,3 +134,5 @@ fn collect(dir: &Path, out: &mut Vec) { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/tests/covergroups.rs b/crates/vlog_semantic/tests/covergroups.rs index 243fcac..b480235 100644 --- a/crates/vlog_semantic/tests/covergroups.rs +++ b/crates/vlog_semantic/tests/covergroups.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Covergroup bodies: what a `covergroup g ... endgroup` declares, where the //! names inside it bind, and how `cg.cp` reaches a coverpoint across files. //! The rules live in `docs/features/covergroup-bodies/README.md`. @@ -354,3 +356,5 @@ endclass absorbed.absorb(vec![FileFacts::of(PathBuf::from("cov.sv"), cov)], &[]); assert_eq!(absorbed.fingerprint(), full.fingerprint()); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/tests/deep_nesting.rs b/crates/vlog_semantic/tests/deep_nesting.rs index c093caa..75e7ad5 100644 --- a/crates/vlog_semantic/tests/deep_nesting.rs +++ b/crates/vlog_semantic/tests/deep_nesting.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Deeply nested input against the stack the parse actually runs on. //! //! `vlog_parser` turns nesting past `MAX_NESTING_DEPTH` into an ordinary @@ -149,3 +151,5 @@ fn nesting_just_under_the_limit_still_yields_its_facts() { let index = index_of(nested_begins(vlog_parser::parser::MAX_NESTING_DEPTH as usize - 6)); assert_eq!(index.units("m").len(), 1, "a legally deep file is indexed like any other"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/tests/fragments.rs b/crates/vlog_semantic/tests/fragments.rs index f063cba..340deb3 100644 --- a/crates/vlog_semantic/tests/fragments.rs +++ b/crates/vlog_semantic/tests/fragments.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Fragment files: what a whole file that is the middle of some body //! declares, and where the names inside it bind. The rules live in //! `docs/features/fragment-mode/README.md`. @@ -143,3 +145,5 @@ fn a_fragment_resolves_nothing_it_cannot_see() { "nothing in this file declares WIDTH" ); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/tests/generate_blocks.rs b/crates/vlog_semantic/tests/generate_blocks.rs index 554fc24..dd1d89e 100644 --- a/crates/vlog_semantic/tests/generate_blocks.rs +++ b/crates/vlog_semantic/tests/generate_blocks.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Named blocks as places a path reaches through (TODO §65.1): a generate //! block's label is declared where the construct is written, an index into a //! generate array is walked as the block itself, and a module's blocks and @@ -265,3 +267,5 @@ fn a_block_label_beside_a_same_named_net_is_a_duplicate_and_not_a_use() { let uses: Vec = s.references_of(block).iter().map(|r| r.name_span.start).collect(); assert_eq!(uses, vec![at(block_first, "end : g", 0, 6)], "only its closing label"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/tests/interfaces.rs b/crates/vlog_semantic/tests/interfaces.rs index f1108c4..2fd4edb 100644 --- a/crates/vlog_semantic/tests/interfaces.rs +++ b/crates/vlog_semantic/tests/interfaces.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `interface`, `modport` and `clocking` as declarations and references: the //! kind an interface gets, the members another file may reach through a //! `virtual` handle, and the two constructs that only live inside an interface. @@ -583,3 +585,5 @@ fn collect(dir: &Path, out: &mut Vec) { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/tests/localized_reindex.rs b/crates/vlog_semantic/tests/localized_reindex.rs index 0565fe7..6ef9613 100644 --- a/crates/vlog_semantic/tests/localized_reindex.rs +++ b/crates/vlog_semantic/tests/localized_reindex.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The localized update's whole claim, attacked: after any sequence of //! one-file updates, the index is the index a whole build over the same file //! contents gives — postings, ambiguity, edges and the readers table that @@ -348,3 +350,5 @@ fn a_seeded_sweep_of_mutations_over_every_design_holds() { } assert_eq!(checked, 320); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/tests/member_access.rs b/crates/vlog_semantic/tests/member_access.rs index 443bcd5..cd121e9 100644 --- a/crates/vlog_semantic/tests/member_access.rs +++ b/crates/vlog_semantic/tests/member_access.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `handle.member` through a class-typed variable: the tail reference, the //! `extends` chase in-file and across files, and the shapes that deliberately //! record nothing. The rules live in @@ -1245,3 +1247,5 @@ fn collect(dir: &std::path::Path, out: &mut Vec) { } } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/tests/member_site.rs b/crates/vlog_semantic/tests/member_site.rs index 0a56b32..6083672 100644 --- a/crates/vlog_semantic/tests/member_site.rs +++ b/crates/vlog_semantic/tests/member_site.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! The **public prefix walk**: `Semantics::member_site`, `unit_site` and //! `member_scopes`, plus the index's `members_of_chain` and `member_unit`. //! @@ -768,3 +770,5 @@ fn an_override_written_against_a_localparam_still_names_it() { assert_eq!(defs[0].kind, kind, "{needle}"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/tests/qa_block_scopes.rs b/crates/vlog_semantic/tests/qa_block_scopes.rs index 0657b19..843be78 100644 --- a/crates/vlog_semantic/tests/qa_block_scopes.rs +++ b/crates/vlog_semantic/tests/qa_block_scopes.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! QA attacks on TODO §65.1's scope rules (a generate label declared in the //! enclosing scope, `generate … endgenerate` not a scope, a block's member //! scope, an index transparent in a path's spine). @@ -298,3 +300,5 @@ endinterface let et = key("et"); assert!(et.as_deref().is_none_or(|k| k.contains("()")), "{et:?}"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/tests/reexports.rs b/crates/vlog_semantic/tests/reexports.rs index f133ab2..0c13de9 100644 --- a/crates/vlog_semantic/tests/reexports.rs +++ b/crates/vlog_semantic/tests/reexports.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Package re-exports (IEEE 1800 §26.6), both halves: what the binder records //! for an `export` line, and what the workspace index makes of it — the walk //! that lets `a_pkg::x` find the `x` `b_pkg` declares. @@ -384,3 +386,5 @@ fn an_update_and_a_build_agree_on_the_reexport_table() { assert!(!updated.fingerprint().contains("reexport a_pkg")); assert!(updated.members_of_chain("a_pkg").is_empty()); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/tests/semantics.rs b/crates/vlog_semantic/tests/semantics.rs index 5b853f6..af885e5 100644 --- a/crates/vlog_semantic/tests/semantics.rs +++ b/crates/vlog_semantic/tests/semantics.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! What `analyze` binds, what it resolves, and what it refuses to guess. use vlog_parser::{parse_source, parse_source_tolerant}; @@ -909,3 +911,5 @@ endmodule let e = s.reference_at(nth(src, "e;", 1)).expect("the triggered event"); assert_eq!(e.resolved(), Some(symbol_id(&s, "e"))); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/tests/struct_members.rs b/crates/vlog_semantic/tests/struct_members.rs index b6ff844..6fc3afd 100644 --- a/crates/vlog_semantic/tests/struct_members.rs +++ b/crates/vlog_semantic/tests/struct_members.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! `s.field` through a `struct`/`union`-typed value: the in-file lookup, the //! cross-file member table, and the three anonymous forms that had no symbols //! at all before this round. The rules live in @@ -586,3 +588,5 @@ endpackage ws.absorb(vec![FileFacts::of(PathBuf::from("p.sv"), PKG)], &[]); assert_eq!(answer(&ws), expected, "and comes back when it returns"); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/tests/sva.rs b/crates/vlog_semantic/tests/sva.rs index 42b9086..0325385 100644 --- a/crates/vlog_semantic/tests/sva.rs +++ b/crates/vlog_semantic/tests/sva.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! SVA bodies: what a `property`/`sequence` declaration declares, where the //! names inside a property spec bind, and how a sequence instance reaches its //! declaration across files. The rules live in @@ -212,3 +214,5 @@ fn a_spec_the_grammar_cannot_read_stays_opaque() { "a fallback region is opaque to name resolution, as it always was" ); } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/tests/top_rooted_paths.rs b/crates/vlog_semantic/tests/top_rooted_paths.rs index a34e6a0..8c3fd75 100644 --- a/crates/vlog_semantic/tests/top_rooted_paths.rs +++ b/crates/vlog_semantic/tests/top_rooted_paths.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Hierarchical paths rooted at a top-level module (TODO §65.4, IEEE 1800 //! §23.6): `tb.dut.g_sw[0].buf_q` written in a file that does not declare //! `tb`, and `$root.tb.…`. The head is a candidate for the workspace's unit @@ -336,3 +338,5 @@ fn a_macro_that_cannot_declare_the_head_still_roots() { assert_eq!(resolution(&s, at(src, "st.a", 0, 3)), candidate(&["st::a"]), "{src}"); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/tests/vendor_formal.rs b/crates/vlog_semantic/tests/vendor_formal.rs index 273d282..5cc656d 100644 --- a/crates/vlog_semantic/tests/vendor_formal.rs +++ b/crates/vlog_semantic/tests/vendor_formal.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! What the vendor and formal constructs bind — and, mostly, what they //! deliberately do not. See `docs/features/vendor-formal-grammar/README.md`. @@ -116,3 +118,5 @@ endchecker ); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/crates/vlog_semantic/tests/workspace.rs b/crates/vlog_semantic/tests/workspace.rs index 8944bc3..39b2c23 100644 --- a/crates/vlog_semantic/tests/workspace.rs +++ b/crates/vlog_semantic/tests/workspace.rs @@ -1,3 +1,5 @@ +// Author: Guoliang Chen, a Senior Digital Design Engineer + //! Behavior of the workspace index: cross-file definitions, duplicate names, //! package members, and the corpus acceptance run. @@ -2730,3 +2732,5 @@ fn the_macro_census_walk_costs_this_much_per_rename() { ); } } + +// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/docs/052_implementation_plan.md b/docs/052_implementation_plan.md index 4d058c8..d07c2f3 100644 --- a/docs/052_implementation_plan.md +++ b/docs/052_implementation_plan.md @@ -1,3 +1,5 @@ + + # Implementation Plan: 0.52.0 Performance Review Follow-Up ## Executive Summary @@ -373,3 +375,5 @@ Assert that: - `settled_ms` reflects server scan duration (~1,770 ms), not 3,400 ms. - Responses are partitioned correctly into `mid_scan_answers` and `after_settle_answers`. - Extending fixed window from 3,500 ms to 5,000 ms keeps `settled_ms` constant while increasing `after_settle_answers`. + + diff --git a/docs/coverage_gaps.md b/docs/coverage_gaps.md index d3f200f..bd266dd 100644 --- a/docs/coverage_gaps.md +++ b/docs/coverage_gaps.md @@ -1,3 +1,5 @@ + + # Verilog/SystemVerilog coverage gaps — ranked (2026-09-01) **Reading this report today (2026-09-07).** The survey below is a historical @@ -217,3 +219,5 @@ Three coverage notes the wave produced, none of them a language gap: source file Verible implements `invalid-system-task-function` in. lucisv ships one rule with the list as its `symbols` option rather than two rules that would both fire on `$psprintf`. + + diff --git a/docs/features/alignment/README.md b/docs/features/alignment/README.md index f71e40a..722ac97 100644 --- a/docs/features/alignment/README.md +++ b/docs/features/alignment/README.md @@ -1,3 +1,5 @@ + + # alignment ## Goal @@ -495,3 +497,5 @@ The author-intent rule shipped matches Verible's culture: ≥4 excess spaces or existing consistent columns opts in; single-space code stays exactly as lucisv always wrote it — no existing user's output moves unless they asked. + + diff --git a/docs/features/ansi-conversion/README.md b/docs/features/ansi-conversion/README.md index d36857a..c2afb35 100644 --- a/docs/features/ansi-conversion/README.md +++ b/docs/features/ansi-conversion/README.md @@ -1,3 +1,5 @@ + + # ansi-conversion TODO §51 — the second of the §8 refactoring backlog to ship. One engine @@ -1042,3 +1044,5 @@ two-ports-in-sequence flow; an attributed declaration is refused rather than moved, and the verifier now refuses any refactoring that drops an attribute. QA's re-attack (30-plus pairs, a neutering pass) found only two fail-closed LOWs. This is what invariant 4 is for. + + diff --git a/docs/features/ansi-first-port/README.md b/docs/features/ansi-first-port/README.md index ccf6824..6f338e7 100644 --- a/docs/features/ansi-first-port/README.md +++ b/docs/features/ansi-first-port/README.md @@ -1,3 +1,5 @@ + + # ansi-first-port ## Goal @@ -410,3 +412,5 @@ against that README's tooling, not this round; the workspace harness tests remain the executable check. QA's modport-rename refusal test closes the one write-path question the match-widenings raised. Accepted as shipped. + + diff --git a/docs/features/apply-edit/README.md b/docs/features/apply-edit/README.md index 2d66b7a..b12bf12 100644 --- a/docs/features/apply-edit/README.md +++ b/docs/features/apply-edit/README.md @@ -1,3 +1,5 @@ + + # apply-edit ## Goal @@ -213,3 +215,5 @@ doc comment's deadlock note is a good catch worth keeping. The no-timeout decision is accepted: three commands per session cannot leak meaningfully, and the server has no timers by design. `ports.rs`'s previously-false doc comment is now true. Accepted as shipped. + + diff --git a/docs/features/assertions/README.md b/docs/features/assertions/README.md index 3fe1a96..c5f403b 100644 --- a/docs/features/assertions/README.md +++ b/docs/features/assertions/README.md @@ -1,3 +1,5 @@ + + # assertions ## Goal @@ -438,3 +440,5 @@ the `skip_action_stmt` depth-counter rewrite. half of the `a4f8476` commit too (the two changes were reviewed together). No BLOCKING findings. The round-1 gap is closed. + + diff --git a/docs/features/atomic-write-coordination/README.md b/docs/features/atomic-write-coordination/README.md index f7ef700..c7e7ce5 100644 --- a/docs/features/atomic-write-coordination/README.md +++ b/docs/features/atomic-write-coordination/README.md @@ -1,3 +1,5 @@ + + # atomic write coordination ## Goal @@ -357,3 +359,5 @@ polled from outside, the bound hit exactly, two real processes over one tree, a directory deleted mid-write with 0 panics — and found nothing. Two processes on one target stay last-writer-wins by design; the formatter's idempotence is what makes that safe, and the module doc says so. + + diff --git a/docs/features/bind-semantics/README.md b/docs/features/bind-semantics/README.md index 8c72254..25fdb80 100644 --- a/docs/features/bind-semantics/README.md +++ b/docs/features/bind-semantics/README.md @@ -1,3 +1,5 @@ + + # bind-semantics ## Goal @@ -491,3 +493,5 @@ recorded in `docs/topo.md`; §2.9-15 and §2.9-19 struck; the evidence corrections carried into `coverage_gaps.md`. QA's two LOW findings (a test count and a stale gate snapshot in the work log) fixed at review. Ships in 0.32.0. + + diff --git a/docs/features/bind/README.md b/docs/features/bind/README.md index 9480fef..696fbef 100644 --- a/docs/features/bind/README.md +++ b/docs/features/bind/README.md @@ -1,3 +1,5 @@ + + # bind ## Goal @@ -330,3 +332,4 @@ Confirms the dev's 2026-08-21 "response to QA round 1" work log entry above: No BLOCKING findings. The round-1 gap is closed. + diff --git a/docs/features/call-hierarchy-everywhere/README.md b/docs/features/call-hierarchy-everywhere/README.md index c4f9950..33e9d17 100644 --- a/docs/features/call-hierarchy-everywhere/README.md +++ b/docs/features/call-hierarchy-everywhere/README.md @@ -1,3 +1,5 @@ + + # call-hierarchy-everywhere Lane A of a two-lane wave (2026-10-14). Builds on `hierarchy` (M11, the @@ -595,3 +597,4 @@ the old `null` now assert the new answers. The one surviving mutant (the unreachable today; kept, and recorded as an Assumption. Merged onto master with the lane-B references view; gates re-run on the merged tree. + diff --git a/docs/features/cancel-request/README.md b/docs/features/cancel-request/README.md index de3e639..e209f4b 100644 --- a/docs/features/cancel-request/README.md +++ b/docs/features/cancel-request/README.md @@ -1,3 +1,5 @@ + + # cancel-request ## Goal @@ -542,3 +544,5 @@ it; `Server::cancel_deferred` honours a `$/cancelRequest` naming it where the cancel lands — answered `RequestCancelled` at once, removed, never asked again. Every request still gets exactly one response. Found by QA; pinned by `a_cancel_for_a_deferred_request_answers_it_cancelled_and_forgets_it`. + + diff --git a/docs/features/case-tables/README.md b/docs/features/case-tables/README.md index 1d619dc..e94782f 100644 --- a/docs/features/case-tables/README.md +++ b/docs/features/case-tables/README.md @@ -1,3 +1,5 @@ + + # case-tables ## Goal @@ -446,3 +448,5 @@ fix feature (they are formatter work, not test work); the six style observations should each get a one-line ruling in the top-level `README.md` Style section once decided — the QA agent is right that "defensible" only holds while the Style section is silent. + + diff --git a/docs/features/change-debounce/README.md b/docs/features/change-debounce/README.md index 248a123..9c9a145 100644 --- a/docs/features/change-debounce/README.md +++ b/docs/features/change-debounce/README.md @@ -1,3 +1,5 @@ + + # change-debounce ## Goal @@ -288,3 +290,4 @@ early, so a real editor sees 4.35 ms / 37.6 ms instead — but the regression is real for a client that asks for nothing, and the number is written down rather than argued away. + diff --git a/docs/features/ci-release/README.md b/docs/features/ci-release/README.md index a9b5285..fc2f569 100644 --- a/docs/features/ci-release/README.md +++ b/docs/features/ci-release/README.md @@ -1,3 +1,5 @@ + + # ci-release ## Goal @@ -216,3 +218,5 @@ _(no QA round — infrastructure, verified by the live v0.7.1 run; see work log) ## Review _(reserved)_ + + diff --git a/docs/features/class-member-access/README.md b/docs/features/class-member-access/README.md index 5b38aff..72a0923 100644 --- a/docs/features/class-member-access/README.md +++ b/docs/features/class-member-access/README.md @@ -1,3 +1,5 @@ + + # class-member-access ## Goal @@ -1248,3 +1250,5 @@ for (the filed rung-6 concern) is empirically closed by round 2's own - Gates re-run by the lead: fmt clean, clippy zero warnings, 2 756 passed / 0 failed, smoke OK. `docs/topo.md` gains the round-2 handshake row and §2.9-20. Ships as 0.23.0 (FACTS_FORMAT 7). + + diff --git a/docs/features/class-semantics/README.md b/docs/features/class-semantics/README.md index 10e9c9d..42dc95f 100644 --- a/docs/features/class-semantics/README.md +++ b/docs/features/class-semantics/README.md @@ -1,3 +1,5 @@ + + # class-semantics ## Goal @@ -656,3 +658,5 @@ across files. `a_covergroup_is_absent_but_nothing_crashes` became `a_covergroup_declares_its_name_and_binds_inside`. A covergroup the grammar does not recognise falls back to `ItemKind::Verbatim` and keeps rule 2 exactly. See `docs/features/covergroup-bodies/README.md`. + + diff --git a/docs/features/classes/README.md b/docs/features/classes/README.md index f75f292..0a984ce 100644 --- a/docs/features/classes/README.md +++ b/docs/features/classes/README.md @@ -1,3 +1,5 @@ + + # classes ## Goal @@ -806,3 +808,5 @@ What is left in the verbatim bucket after two rounds: `property` / `sequence` declarations and concurrent assertions. The parser test that used to pin a covergroup's capture now pins a `property`'s, which is what the bucket is still for. See `docs/features/covergroup-bodies/README.md`. + + diff --git a/docs/features/cli-filelist/README.md b/docs/features/cli-filelist/README.md index a4c8c46..5d96c5c 100644 --- a/docs/features/cli-filelist/README.md +++ b/docs/features/cli-filelist/README.md @@ -1,3 +1,5 @@ + + # cli-filelist ## Goal @@ -388,3 +390,4 @@ correctness item (atomic tempfile+rename writes, mirroring cache.rs). The third normalizer copy is accepted per the no-abstraction-for-a- second-user rule, third time consistent. Accepted; M13 checked off. + diff --git a/docs/features/cli-polish/README.md b/docs/features/cli-polish/README.md index d83b5e9..e2ccf3c 100644 --- a/docs/features/cli-polish/README.md +++ b/docs/features/cli-polish/README.md @@ -1,3 +1,5 @@ + + # cli-polish ## Goal @@ -538,3 +540,5 @@ Dispositions on the other findings: lands. - Nits (bare `--`, `**` globs, warning-count arithmetic): noted, none actionable now; `--` handling can ride along with config discovery. + + diff --git a/docs/features/clocking-wave/README.md b/docs/features/clocking-wave/README.md index 9f5dccc..12df601 100644 --- a/docs/features/clocking-wave/README.md +++ b/docs/features/clocking-wave/README.md @@ -1,3 +1,5 @@ + + # clocking-wave ## Goal @@ -829,3 +831,5 @@ surfacing as a clean error) are filed. Accepted; committed by the lead. OpenTitan sweep: 151 at the wave's start, 11 now — the remainder being macro fragments awaiting a preprocessing decision, vendor non-SV recommended for exclusion, and three written-up skips. + + diff --git a/docs/features/code-lens/README.md b/docs/features/code-lens/README.md index 49feb3b..74e426a 100644 --- a/docs/features/code-lens/README.md +++ b/docs/features/code-lens/README.md @@ -1,3 +1,5 @@ + + # code-lens ## Goal @@ -590,3 +592,5 @@ numbers still. On QA's LOW finding, I agreed and promoted the index-table request to a concrete Handshakes entry with a named shape — two features now pay the sources() walk, which is exactly when a backlog bullet stops being enough. Accepted as shipped. + + diff --git a/docs/features/comment-highlighting/README.md b/docs/features/comment-highlighting/README.md index f655fc4..906e7aa 100644 --- a/docs/features/comment-highlighting/README.md +++ b/docs/features/comment-highlighting/README.md @@ -1,3 +1,5 @@ + + # comment-highlighting ## Goal @@ -628,3 +630,5 @@ completes). - Follow-ups left open on purpose: the escaped-identifier grammar mismatch (`\a//b `, `\a/*b`), and the same language-mode gap in the `begin`/`end` rainbow in `extension.js`. + + diff --git a/docs/features/comment-slots/README.md b/docs/features/comment-slots/README.md index cf2ef37..5fd398e 100644 --- a/docs/features/comment-slots/README.md +++ b/docs/features/comment-slots/README.md @@ -1,3 +1,5 @@ + + # comment slots ## Goal @@ -546,3 +548,5 @@ rows 20/21/22 struck. QA's pre-existing gap — a comment inside a plain `pkg::item` type name — is the `push_scope_segment` join and belongs to the next comment round; noted here, not filed separately. Ships in 0.31.0. + + diff --git a/docs/features/comments-round-2/README.md b/docs/features/comments-round-2/README.md index f18bcec..2df5134 100644 --- a/docs/features/comments-round-2/README.md +++ b/docs/features/comments-round-2/README.md @@ -1,3 +1,5 @@ + + # comments-round-2 ## Goal @@ -505,3 +507,5 @@ Comment-insertion refusal history, for the record: ~6% (fences QA, pre-comments-round) → 0.4% (comments-round) → 0 on the acceptance protocol (this round), with survivors only at exhaustive per-line granularity in parked families. + + diff --git a/docs/features/comments-round/README.md b/docs/features/comments-round/README.md index 35c7160..11efa05 100644 --- a/docs/features/comments-round/README.md +++ b/docs/features/comments-round/README.md @@ -1,3 +1,5 @@ + + # comments-round ## Goal @@ -546,3 +548,5 @@ small. The two pre-existing `unwrap()`s QA noticed (format.rs:786, :978) join the next housekeeping pass. The stale fences-README handshake line is corrected by the lead in this commit. Same-line fences remain inert by choice; the data to activate them now exists. + + diff --git a/docs/features/completion-core/README.md b/docs/features/completion-core/README.md index 9718815..5996c73 100644 --- a/docs/features/completion-core/README.md +++ b/docs/features/completion-core/README.md @@ -1,3 +1,5 @@ + + # completion-core M5 of the refactoring plan (`docs/features/refactor/README.md`): **general @@ -1021,3 +1023,5 @@ directive words — accepted gap, now named in the umbrella backlog; transparency note about a briefly clobbered-and-restored working file is appreciated; the independent gate run confirms the tree. Accepted; M5 and the 0.3.0 bump are checked off in the umbrella plan and TODO.md §8. + + diff --git a/docs/features/completion-templates/README.md b/docs/features/completion-templates/README.md index 802e41f..1629d8e 100644 --- a/docs/features/completion-templates/README.md +++ b/docs/features/completion-templates/README.md @@ -1,3 +1,5 @@ + + # completion-templates M6 of the refactoring plan (`docs/features/refactor/README.md`): **statement @@ -744,3 +746,5 @@ completion protocol has the opt-out the inline one lacks: source, by QA) on the two multi-line tiers only. `templates.rs` and the plain-text fallback untouched, `lucisv.indent` still meaningful here. Approved; ships as 0.7.0. + + diff --git a/docs/features/completion-ux/README.md b/docs/features/completion-ux/README.md index bbe5b25..4a9595b 100644 --- a/docs/features/completion-ux/README.md +++ b/docs/features/completion-ux/README.md @@ -1,3 +1,5 @@ + + # completion-ux ## Goal @@ -446,3 +448,5 @@ Rulings recorded: cursor after `begin` + Enter (formatOnType on and off), one-step undo, the ghost following the popup selection, the dimmed `connected` detail. The list is in the dev's report and the QA log; it is the owner's acceptance. + + diff --git a/docs/features/config-discovery/README.md b/docs/features/config-discovery/README.md index 7637be9..39faf75 100644 --- a/docs/features/config-discovery/README.md +++ b/docs/features/config-discovery/README.md @@ -1,3 +1,5 @@ + + # config-discovery ## Goal @@ -409,3 +411,5 @@ Dispositions: follow-up note here rather than patched piecemeal. - QA's in-place arithmetic fix to the work log (finding 4) was within its small-fix latitude and is appreciated. + + diff --git a/docs/features/constraint-bodies/README.md b/docs/features/constraint-bodies/README.md index 98a9f7f..fa711b7 100644 --- a/docs/features/constraint-bodies/README.md +++ b/docs/features/constraint-bodies/README.md @@ -1,3 +1,5 @@ + + # constraint bodies ## Goal @@ -1036,3 +1038,5 @@ DV correctness item in the gap analysis, closed for constraints. - Gates re-run by the lead: fmt clean, clippy zero warnings, 2 950 passed / 0 failed over 41 binaries, corpus 813/820, smoke OK. `docs/topo.md`: two rows and §2.9-22. Ships as 0.27.0 (FACTS_FORMAT 11). + + diff --git a/docs/features/corpus-bugs/README.md b/docs/features/corpus-bugs/README.md index 14550f9..478b509 100644 --- a/docs/features/corpus-bugs/README.md +++ b/docs/features/corpus-bugs/README.md @@ -1,3 +1,5 @@ + + # corpus-bugs ## Goal @@ -556,3 +558,5 @@ Corpus state after this round: 468/820 parse (57.1%), 466 would-reformat, 2 ok-unchanged, 352 parse-error, **0 verification-error, 0 crash** — `corpus_check.sh` exits 0 for the first time. The remaining work is parse coverage (roadmap in README.md) and the LSP track (TODO §6). + + diff --git a/docs/features/corpus-check/README.md b/docs/features/corpus-check/README.md index fd19a88..2eeef2b 100644 --- a/docs/features/corpus-check/README.md +++ b/docs/features/corpus-check/README.md @@ -1,3 +1,5 @@ + + # corpus-check ## Goal @@ -687,3 +689,5 @@ Dispositions: - **shellcheck**: unavailable on this machine; `bash -n` clean and the scripts are written defensively. Acceptable; run shellcheck opportunistically when available. + + diff --git a/docs/features/coverage-gaps-l/README.md b/docs/features/coverage-gaps-l/README.md index 163e1d3..f1ad0a0 100644 --- a/docs/features/coverage-gaps-l/README.md +++ b/docs/features/coverage-gaps-l/README.md @@ -1,3 +1,5 @@ + + # coverage-gaps-l ## Goal @@ -801,3 +803,5 @@ grammar as of 0.49.0. `vlog_parser` (ast + parser + token table), `vlog_formatter`, `vlog_semantic` (bind), `vlog_linter`, `vlog_refactor`, `lucisv_core` (config), `lucisv_server` (settings, format) and `editors/vscode`. + + diff --git a/docs/features/covergroup-bodies/README.md b/docs/features/covergroup-bodies/README.md index c2b280e..c6bd29a 100644 --- a/docs/features/covergroup-bodies/README.md +++ b/docs/features/covergroup-bodies/README.md @@ -1,3 +1,5 @@ + + # covergroup bodies ## Goal @@ -841,3 +843,5 @@ for both constraints and covergroups. - Gates re-run by the lead: fmt clean, clippy zero warnings, 3 009 passed / 0 failed over 43 binaries (3 010 with QA's pin), corpus 813/820, smoke OK. `docs/topo.md`: two rows. Ships as 0.28.0 (FACTS_FORMAT 12). + + diff --git a/docs/features/decomposition-formatter/README.md b/docs/features/decomposition-formatter/README.md index 86115ed..13dff29 100644 --- a/docs/features/decomposition-formatter/README.md +++ b/docs/features/decomposition-formatter/README.md @@ -1,3 +1,5 @@ + + # decomposition-formatter — TODO §28 Lane B: `vlog_formatter/src/format.rs` → `format/` ## Goal @@ -421,3 +423,5 @@ remove. The wholesale `Write` of `mod.rs` is acceptable because the multiset check exists; it would not be without it. QA's two LOW nits fixed at review: the `sva.rs` total and a why-sentence in `cover.rs`'s module doc. + + diff --git a/docs/features/decomposition-parser/README.md b/docs/features/decomposition-parser/README.md index 1992e0e..7f72546 100644 --- a/docs/features/decomposition-parser/README.md +++ b/docs/features/decomposition-parser/README.md @@ -1,3 +1,5 @@ + + # Decomposition — Lane A, `vlog_parser` ## Goal @@ -536,3 +538,5 @@ counts identical, 4 807 files byte-identical — the lead re-ran the multiset check on the final tree. Files over 600 (`sva`, `item`, `class`, `covergroup`) keep their written reasons and are the next lane's problem if they grow. + + diff --git a/docs/features/decomposition-semantic/README.md b/docs/features/decomposition-semantic/README.md index 2536721..a8e962b 100644 --- a/docs/features/decomposition-semantic/README.md +++ b/docs/features/decomposition-semantic/README.md @@ -1,3 +1,5 @@ + + # decomposition-semantic — TODO §28 Lane D: `vlog_semantic` and `vlog_refactor` ## Goal @@ -611,3 +613,5 @@ is a one-move follow-up if a second refactoring ever needs to import it without going through `rename`. QA's two LOW "and" notes on `ports/list.rs` and `workspace/index.rs` are left as filed; both files are under 250 lines and the "and" is between two halves of one job. + + diff --git a/docs/features/decomposition-server/README.md b/docs/features/decomposition-server/README.md index 0305fda..7514ec9 100644 --- a/docs/features/decomposition-server/README.md +++ b/docs/features/decomposition-server/README.md @@ -1,3 +1,5 @@ + + # decomposition-server — TODO §28 Lane C: `lucisv_server`'s `server.rs` and `completion.rs` ## Goal @@ -633,3 +635,5 @@ byte-identical responses from this build and the base. QA's MEDIUM (a brace-counter fooled by a `}` inside a string literal — a good catch, and the kind of thing that argues for counting with a parser) fixed in the README by QA. + + diff --git a/docs/features/decomposition-state/README.md b/docs/features/decomposition-state/README.md index 617676f..e96ad63 100644 --- a/docs/features/decomposition-state/README.md +++ b/docs/features/decomposition-state/README.md @@ -1,3 +1,5 @@ + + # decomposition-state — TODO §55: `lucisv_server/src/state/mod.rs` ## Goal @@ -191,3 +193,5 @@ de-indented tests — no code line lost or added. The CLAUDE.md measurement line is refreshed (2026-10-14 paragraph); the stale test path in `server/tests/folders.rs:128` is corrected. Merged onto master after the review lows; gates re-run on the merged tree. + + diff --git a/docs/features/define-table/README.md b/docs/features/define-table/README.md index ec3e0f6..bbe10d0 100644 --- a/docs/features/define-table/README.md +++ b/docs/features/define-table/README.md @@ -1,3 +1,5 @@ + + # define-table ## Goal @@ -561,3 +563,5 @@ respectively. With this, TODO §6's data foundations are complete: spans, error-tolerant parsing, define table. Next: `vlog_semantic` + the workspace index, then `lucisv_server`. + + diff --git a/docs/features/didopen-cost/README.md b/docs/features/didopen-cost/README.md index 6bdb6c4..c192c15 100644 --- a/docs/features/didopen-cost/README.md +++ b/docs/features/didopen-cost/README.md @@ -1,3 +1,5 @@ + + # didOpen cost ## Goal @@ -563,3 +565,5 @@ counting-oracle unit test (verified to fail on a revert), and QA's release measurement of the same buffer (11.7 ms) shows the plan's 25 ms was a release number. No debounce was added and none is needed at 0.5–1.5 ms per publish. (The README lacked its Review section; added here.) + + diff --git a/docs/features/directive-in-statements/README.md b/docs/features/directive-in-statements/README.md index 67e2769..3b55e69 100644 --- a/docs/features/directive-in-statements/README.md +++ b/docs/features/directive-in-statements/README.md @@ -1,3 +1,5 @@ + + # directive-in-statements ## Goal @@ -606,3 +608,5 @@ accepted; the two post-merge items (keymgr .cases entry, the standing-template attack pairs in verification.rs) are the lead's and are done in the merge commit's follow-up. Accepted; merged by the lead. OpenTitan sweep: 151 at the wave's start, 100 after this round. + + diff --git a/docs/features/directive-split/README.md b/docs/features/directive-split/README.md index e7ad52c..ad6e4d2 100644 --- a/docs/features/directive-split/README.md +++ b/docs/features/directive-split/README.md @@ -1,3 +1,5 @@ + + # directive-split ## Goal @@ -1269,3 +1271,5 @@ it is load-bearing; keep it. (c) tolerant-mode `skip_to_sync` can under-count `open_conds` — refusal-direction only, unreachable in strict mode. (d) the pre-existing `Fmt::raw_text` embedded-newline `Doc::Text` contract violation is the printer owner's, filed separately. + + diff --git a/docs/features/directives-in-instances/README.md b/docs/features/directives-in-instances/README.md index 244ad62..5a2accb 100644 --- a/docs/features/directives-in-instances/README.md +++ b/docs/features/directives-in-instances/README.md @@ -1,3 +1,5 @@ + + # directives-in-instances ## Goal @@ -579,3 +581,5 @@ Points reviewed and accepted: Clean-file external resolution now 94.0%, unresolved externals 1.2%. The remaining directive-shaped work is the one-line spelling (a lexer round of its own, no corpus demand) — parked where it was. + + diff --git a/docs/features/directives-in-lists/README.md b/docs/features/directives-in-lists/README.md index bea88c4..d98175e 100644 --- a/docs/features/directives-in-lists/README.md +++ b/docs/features/directives-in-lists/README.md @@ -1,3 +1,5 @@ + + # directives-in-lists ## Goal @@ -610,3 +612,5 @@ The parked follow-ups are the next round's shape: directives in instantiation `#()`/connection lists (6 named corpus files — the biggest remaining directive blocker), the one-line spelling (a lexer round of its own), and the shared fence helper filed by server-lint. + + diff --git a/docs/features/dpi-export/README.md b/docs/features/dpi-export/README.md index b896aa8..82d25b7 100644 --- a/docs/features/dpi-export/README.md +++ b/docs/features/dpi-export/README.md @@ -1,3 +1,5 @@ + + # dpi-export ## Goal @@ -218,3 +220,4 @@ Targeted attacks: No BLOCKING findings for this cluster. + diff --git a/docs/features/dut-hierarchy/README.md b/docs/features/dut-hierarchy/README.md index 3fa9228..d710fa3 100644 --- a/docs/features/dut-hierarchy/README.md +++ b/docs/features/dut-hierarchy/README.md @@ -1,3 +1,5 @@ + + # dut-hierarchy ## Goal @@ -660,3 +662,5 @@ For `README.md`'s VS Code section and the site's editors page: > workspace; a team can also check them in with > `"lucisv.hierarchy.duts": ["aes", "hmac"]`, and DUTs that come from the > setting are shown locked. + + diff --git a/docs/features/dv-statements/README.md b/docs/features/dv-statements/README.md index d025b0d..8eb3f1d 100644 --- a/docs/features/dv-statements/README.md +++ b/docs/features/dv-statements/README.md @@ -1,3 +1,5 @@ + + # dv-statements ## Goal @@ -547,3 +549,5 @@ for that; the file is outside `constraint-bodies`' stated ownership and the edit is flagged in its Handshakes. Names inside a `obj.randomize() with` block now bind against `obj`'s class, which is what IEEE 1800 §18.7 says they are. + + diff --git a/docs/features/dynamic-types/README.md b/docs/features/dynamic-types/README.md index 5a02b9f..c8b240e 100644 --- a/docs/features/dynamic-types/README.md +++ b/docs/features/dynamic-types/README.md @@ -1,3 +1,5 @@ + + # dynamic-types ## Goal @@ -758,3 +760,5 @@ SV affected), `randomize() with` (7 files, the constraint-verbatim vehicle when taken), and the new top blockers — `interface` (25) and the `` `else`` head-swap shape (13) — which are the next parse frontier when wanted. + + diff --git a/docs/features/editor-marketplace-page/README.md b/docs/features/editor-marketplace-page/README.md index 9f82768..f7b6198 100644 --- a/docs/features/editor-marketplace-page/README.md +++ b/docs/features/editor-marketplace-page/README.md @@ -1,3 +1,5 @@ + + # VS Code Marketplace page ## Goal @@ -122,3 +124,5 @@ editor-platform-vsix and rewrote `editors/vscode/README.md` while that round was editing it, discarding its edits mid-flight; the platform round re-applied them additively. Concurrent rounds over one file cost a re-apply and an audit — coordinate ownership of shared files next time. + + diff --git a/docs/features/editor-marketplace-page/artwork/architecture.svg b/docs/features/editor-marketplace-page/artwork/architecture.svg index 52d156a..49aa558 100644 --- a/docs/features/editor-marketplace-page/artwork/architecture.svg +++ b/docs/features/editor-marketplace-page/artwork/architecture.svg @@ -1,3 +1,5 @@ + + @@ -41,3 +43,5 @@ macOS · Linux · Windows + + diff --git a/docs/features/editor-marketplace-page/artwork/feature-map.svg b/docs/features/editor-marketplace-page/artwork/feature-map.svg index 84bf6dd..04ad8aa 100644 --- a/docs/features/editor-marketplace-page/artwork/feature-map.svg +++ b/docs/features/editor-marketplace-page/artwork/feature-map.svg @@ -1,3 +1,5 @@ + + @@ -76,3 +78,5 @@ RUST-POWERED + + diff --git a/docs/features/editor-marketplace-page/artwork/icon.svg b/docs/features/editor-marketplace-page/artwork/icon.svg index 51ecbf5..d13c91c 100644 --- a/docs/features/editor-marketplace-page/artwork/icon.svg +++ b/docs/features/editor-marketplace-page/artwork/icon.svg @@ -1,3 +1,5 @@ + + @@ -26,3 +28,5 @@ + + diff --git a/docs/features/editor-packaging/README.md b/docs/features/editor-packaging/README.md index 8f0be30..0e592f6 100644 --- a/docs/features/editor-packaging/README.md +++ b/docs/features/editor-packaging/README.md @@ -1,3 +1,5 @@ + + # editor-packaging ## Goal @@ -925,3 +927,5 @@ verified against VS Code's own source. Dev's deliberate omissions all approved; QA's two cosmetic finds (`x$y`, unterminated `/*`) are accepted trade-offs I have added to "Deliberate omissions" above rather than fix — each fix needs a lookbehind or buys nothing. Ships as 0.4.1. + + diff --git a/docs/features/editor-platform-vsix/README.md b/docs/features/editor-platform-vsix/README.md index 17efe1d..b876f7f 100644 --- a/docs/features/editor-platform-vsix/README.md +++ b/docs/features/editor-platform-vsix/README.md @@ -1,3 +1,5 @@ + + # editor-platform-vsix ## Goal @@ -783,3 +785,5 @@ fresh `--cross` run, byte-identity spot-checks). Points accepted: Accepted limitations, unchanged from round 1: no real-editor run, four non-host platforms' binaries never executed, Alpine reasoned not observed. + + diff --git a/docs/features/editor-scopes/README.md b/docs/features/editor-scopes/README.md index ab9129f..d4d08cf 100644 --- a/docs/features/editor-scopes/README.md +++ b/docs/features/editor-scopes/README.md @@ -1,3 +1,5 @@ + + # editor-scopes ## Goal @@ -1659,3 +1661,5 @@ mutation checks on both oracles from both agents. 8000-deep nesting: "analyze is quadratic" comment in `inline.rs`'s deep-nesting test now records the fix instead (that file is otherwise untouched). Gates re-run by the lead after that comment edit. Accepted. + + diff --git a/docs/features/editor-settings/README.md b/docs/features/editor-settings/README.md index a6fd93d..9369cbf 100644 --- a/docs/features/editor-settings/README.md +++ b/docs/features/editor-settings/README.md @@ -1,3 +1,5 @@ + + # editor-settings ## Goal @@ -408,3 +410,5 @@ and `extension.js` diffs. Approved and committed. Notes: - `extractSettingsInformation` sending the whole `lucisv` section (so the server sees and ignores `serverPath`/`rainbowBeginEnd`) is correctly mirrored in the tests' payload shape rather than an idealized one. + + diff --git a/docs/features/editor-snippets/README.md b/docs/features/editor-snippets/README.md index 6b87af1..3f0c9ff 100644 --- a/docs/features/editor-snippets/README.md +++ b/docs/features/editor-snippets/README.md @@ -1,3 +1,5 @@ + + # editor-snippets ## Goal @@ -229,3 +231,5 @@ _(empty — no QA pass yet)_ ## Review _(reserved for the lead)_ + + diff --git a/docs/features/error-recovery/README.md b/docs/features/error-recovery/README.md index 0de10ca..df64d25 100644 --- a/docs/features/error-recovery/README.md +++ b/docs/features/error-recovery/README.md @@ -1,3 +1,5 @@ + + # error-recovery ## Goal @@ -578,3 +580,5 @@ Points reviewed and accepted: The BOM mojibake message QA noticed in passing is a lexer message-quality nit; it can ride with the `@(* )` lexer item already on TODO §1. + + diff --git a/docs/features/escaped-identifiers/README.md b/docs/features/escaped-identifiers/README.md index eced5b5..c639437 100644 --- a/docs/features/escaped-identifiers/README.md +++ b/docs/features/escaped-identifiers/README.md @@ -1,3 +1,5 @@ + + # escaped-identifiers ## Goal @@ -345,3 +347,5 @@ ran in parallel per CLAUDE.md — disjoint files, no topo edge). keeps the terminator and the file formats. `docs/topo.md` §2.9-21. - Gates in the worktree: fmt clean, clippy zero warnings, 2 819 passed / 0 failed, corpus 813/820. + + diff --git a/docs/features/expand-wildcard/README.md b/docs/features/expand-wildcard/README.md index dac2b21..b6326bf 100644 --- a/docs/features/expand-wildcard/README.md +++ b/docs/features/expand-wildcard/README.md @@ -1,3 +1,5 @@ + + # expand-wildcard TODO §50 — the first of the §8 refactoring backlog to ship. One engine @@ -655,3 +657,5 @@ target's scope and are filed as a backlog entry — so the nine that do exist were all expanded and verified, and two of them surfaced real drift between an FPV wrapper and the module it wraps. The vlog_formatter dev-dependency mirrors the linter's and is recorded in topo. + + diff --git a/docs/features/expressions-2/README.md b/docs/features/expressions-2/README.md index 59aba61..7606b6f 100644 --- a/docs/features/expressions-2/README.md +++ b/docs/features/expressions-2/README.md @@ -1,3 +1,5 @@ + + # expressions-2 ## Goal @@ -265,3 +267,4 @@ Targeted attacks: No BLOCKING findings for this cluster. + diff --git a/docs/features/extract-inline-module/README.md b/docs/features/extract-inline-module/README.md index b6b9b77..bbf7a79 100644 --- a/docs/features/extract-inline-module/README.md +++ b/docs/features/extract-inline-module/README.md @@ -1,3 +1,5 @@ + + # extract-inline-module TODO §53 — the dearest of the §8 refactoring backlog, in two halves. @@ -1895,3 +1897,5 @@ planner produces that shape, so it is filed as topo §2.9-32 for a later round rather than widened here. *(empty — for the lead)* + + diff --git a/docs/features/fast-actions/README.md b/docs/features/fast-actions/README.md index f448f3e..45aed47 100644 --- a/docs/features/fast-actions/README.md +++ b/docs/features/fast-actions/README.md @@ -1,3 +1,5 @@ + + # fast-actions ## Goal @@ -2439,3 +2441,5 @@ Accepted as they stand, filed in TODO §71: and lane alike; cause not found. Not verified by anyone: a real VS Code session. + + diff --git a/docs/features/file-operations/README.md b/docs/features/file-operations/README.md index 8218b14..9daa332 100644 --- a/docs/features/file-operations/README.md +++ b/docs/features/file-operations/README.md @@ -1,3 +1,5 @@ + + # file-operations ## Goal @@ -710,3 +712,5 @@ drops an edit addressed to the post-rename uri). I applied QA's recommendation as an Assumptions entry: batch renames do not compound, recorded as a documented choice with the safety net bounding the failure mode at a skipped edit plus a warning. Accepted as shipped. + + diff --git a/docs/features/file-watching/README.md b/docs/features/file-watching/README.md index 08008d2..b12e719 100644 --- a/docs/features/file-watching/README.md +++ b/docs/features/file-watching/README.md @@ -1,3 +1,5 @@ + + # file-watching ## Goal @@ -430,3 +432,5 @@ this feature needed. The three honest gaps (no debounce — measured at ~0.3s per notification on the full corpus, nested `-f` unwatched, static-watcher clients unchanged) are disclosed in both places a user would look. Accepted; M9 checked off in the umbrella plan and TODO §8. + + diff --git a/docs/features/filelist/README.md b/docs/features/filelist/README.md index b143e2f..ca0bb07 100644 --- a/docs/features/filelist/README.md +++ b/docs/features/filelist/README.md @@ -1,3 +1,5 @@ + + # filelist ## Goal @@ -462,3 +464,5 @@ test-literal touches) are all justified and logged. Accepted; M1 is checked off in the umbrella plan and TODO.md §8. Follow-ups inherited by later milestones: none blocking — the whitespace-path gap and `-F` stay documented non-goals until someone asks. + + diff --git a/docs/features/folders-and-config/README.md b/docs/features/folders-and-config/README.md index 740ebc2..ff84832 100644 --- a/docs/features/folders-and-config/README.md +++ b/docs/features/folders-and-config/README.md @@ -1,3 +1,5 @@ + + # folders-and-config Two small §9c items, one round, because they are the same shape: both are a @@ -586,3 +588,5 @@ now documented in Assumptions: a subdirectory added as its own root is its own root, per-root config applied consistently. The extension's redundant push+pull double-answer stays filed for a client-side round. Accepted as shipped. + + diff --git a/docs/features/format-cache/README.md b/docs/features/format-cache/README.md index 862b9d5..bc4c5cb 100644 --- a/docs/features/format-cache/README.md +++ b/docs/features/format-cache/README.md @@ -1,3 +1,5 @@ + + # format-cache ## Goal @@ -939,3 +941,5 @@ Points reviewed and accepted: Commits with round 17 (jointly with alignment, which owns the other half of the shared README/TODO edits). + + diff --git a/docs/features/format-fences/README.md b/docs/features/format-fences/README.md index 0f56a73..5b5c4ba 100644 --- a/docs/features/format-fences/README.md +++ b/docs/features/format-fences/README.md @@ -1,3 +1,5 @@ + + # format-fences ## Goal @@ -593,3 +595,5 @@ feature surfaced (comment-in-list refusal, quantified at 112/1868 trials; the double-blank leading-comment nit) are now TODO.md items queued for a dedicated comments round — they were too big to ride along here, and the refusal path means neither can corrupt. + + diff --git a/docs/features/format-styles/README.md b/docs/features/format-styles/README.md index 377b017..d201106 100644 --- a/docs/features/format-styles/README.md +++ b/docs/features/format-styles/README.md @@ -1,3 +1,5 @@ + + # format-styles ## Goal @@ -954,3 +956,5 @@ Not verified in round 2: and an attribute on an ANSI port: parse errors) go to the backlog. - Owed to a human: the drop-down in a running VS Code. `ansi`, `microsoft` and `nxp` are guesses and say so wherever a user meets them. + + diff --git a/docs/features/formatter-bug-fixes/README.md b/docs/features/formatter-bug-fixes/README.md index 86fec8a..7656483 100644 --- a/docs/features/formatter-bug-fixes/README.md +++ b/docs/features/formatter-bug-fixes/README.md @@ -1,3 +1,5 @@ + + # formatter-bug-fixes ## Goal @@ -958,3 +960,5 @@ Dispositions on QA findings (all nit-level): - **Comment glued before a closing `)` / binary operator**: consistent with committed cases; goes on the style-rulings list from the case-tables review. + + diff --git a/docs/features/fragment-mode/README.md b/docs/features/fragment-mode/README.md index e6b7e8d..769e8bf 100644 --- a/docs/features/fragment-mode/README.md +++ b/docs/features/fragment-mode/README.md @@ -1,3 +1,5 @@ + + # fragment mode ## Goal @@ -709,3 +711,5 @@ matches. Fixed one stale table cell in `coverage_gaps.md` (see Scope). TODO failures all proven to fail identically outside a fragment (§2.9-22); gates 3 054 passed / 0 failed over 45 binaries, smoke OK. `docs/topo.md` row added. Ships as 0.29.0. + + diff --git a/docs/features/fuzzy-completion/README.md b/docs/features/fuzzy-completion/README.md index 6b85dbb..b6ac0fa 100644 --- a/docs/features/fuzzy-completion/README.md +++ b/docs/features/fuzzy-completion/README.md @@ -1,3 +1,5 @@ + + # fuzzy-completion ## Goal @@ -533,3 +535,5 @@ loaded machine. - Gates re-run by the lead before commit: fmt clean, clippy zero warnings, full suite green, smoke OK. `docs/topo.md` updated (fuzzy-completion handshake row, matrix, header). Ships as 0.20.0. + + diff --git a/docs/features/generate-label-rename/README.md b/docs/features/generate-label-rename/README.md index 14dd6a6..38ec25e 100644 --- a/docs/features/generate-label-rename/README.md +++ b/docs/features/generate-label-rename/README.md @@ -1,3 +1,5 @@ + + # generate-label-rename TODO §65.1 (stabilization round 1), topo §2.9 row 43 (MCP-14). @@ -1112,3 +1114,5 @@ clean; workspace lib/bins/tests 78 suites, 5 062 passed (dev 5 059 + 3), Nothing new ticked. ## Review + + diff --git a/docs/features/header-recovery/README.md b/docs/features/header-recovery/README.md index 633f427..17ba184 100644 --- a/docs/features/header-recovery/README.md +++ b/docs/features/header-recovery/README.md @@ -1,3 +1,5 @@ + + # header-recovery ## Goal @@ -695,3 +697,5 @@ grammar, its own small item. TODO's Gates line ticked at review; the `vlog_refactor` touch (two exhaustive-match arms) accepted. The three `vlog_linter` arms are re-applied at merge against §33's files. Ships in 0.37.0. + + diff --git a/docs/features/hierarchical-tail/README.md b/docs/features/hierarchical-tail/README.md index 9b94893..770aa3f 100644 --- a/docs/features/hierarchical-tail/README.md +++ b/docs/features/hierarchical-tail/README.md @@ -1,3 +1,5 @@ + + # hierarchical-tail TODO.md §49 — the cross-file instance-member tail in rename. `docs/topo.md` @@ -546,3 +548,5 @@ more file's read is the feature. QA's two LOWs: `state.rs` is filed as §55; the `Local`-posting doc pointer is added at review. *(reserved for the lead — do not write here)* + + diff --git a/docs/features/hierarchy-current-path/README.md b/docs/features/hierarchy-current-path/README.md index dc9fe58..2b73106 100644 --- a/docs/features/hierarchy-current-path/README.md +++ b/docs/features/hierarchy-current-path/README.md @@ -1,3 +1,5 @@ + + # hierarchy-current-path ## Goal @@ -569,3 +571,5 @@ plain missing assertions were added to `hierarchyCurrent_test.js`): - Left open, recorded under Assumptions: case-differing folder names and UNC paths do not light (the UNC spelling is the server's, `uri.rs:20-28` — a candidate for a later round), and the recursive-design gap. + + diff --git a/docs/features/hierarchy/README.md b/docs/features/hierarchy/README.md index ff376a4..0e17e84 100644 --- a/docs/features/hierarchy/README.md +++ b/docs/features/hierarchy/README.md @@ -1,3 +1,5 @@ + + # hierarchy M11 of the refactoring plan (`docs/features/refactor/README.md`), TODO.md §8: @@ -509,3 +511,4 @@ since the right answer needs a design decision about whether a bind target is a "call" at all. Accepted; M11 checked off in the umbrella plan and TODO §8. + diff --git a/docs/features/hover-declarations/README.md b/docs/features/hover-declarations/README.md index b421c05..41baaa0 100644 --- a/docs/features/hover-declarations/README.md +++ b/docs/features/hover-declarations/README.md @@ -1,3 +1,5 @@ + + # hover-declarations ## Goal @@ -461,3 +463,5 @@ tie-break is inherited from the shared matcher and correctly pinned rather than re-designed. The CRLF interior-`\r` cosmetic and the double-read of large closed files are accepted as filed. Accepted; committed by the lead. + + diff --git a/docs/features/hover-line-index/README.md b/docs/features/hover-line-index/README.md index 220acf4..090fca8 100644 --- a/docs/features/hover-line-index/README.md +++ b/docs/features/hover-line-index/README.md @@ -1,3 +1,5 @@ + + # hover-line-index ## Goal @@ -549,3 +551,5 @@ the startup scan — is confirmed genuine by dev and QA independently and is the dominant remainder of the owner's "slow on first try"; correctly filed as a Handshake, next round's work. Accepted; committed by the lead. + + diff --git a/docs/features/ifdef-folding/README.md b/docs/features/ifdef-folding/README.md index ee844c7..8c2a44e 100644 --- a/docs/features/ifdef-folding/README.md +++ b/docs/features/ifdef-folding/README.md @@ -1,3 +1,5 @@ + + # ifdef-folding ## Goal @@ -407,3 +409,5 @@ same-start cases above (derived from source, not observed). pins both headers as siblings, by QA's reading of VS Code's source). - Open, recorded: no folds on the large-file path; lone-CR files fold nothing (as before). + + diff --git a/docs/features/include-nav/README.md b/docs/features/include-nav/README.md index 6bf1865..e1b9d26 100644 --- a/docs/features/include-nav/README.md +++ b/docs/features/include-nav/README.md @@ -1,3 +1,5 @@ + + # include-nav ## Goal @@ -569,3 +571,5 @@ three-way-collision attack, by real-wire F12, and by mutation. The hover-narrowing invariant (narrow, never widen; local defines always win) held under every probe. Accepted; M10 checked off in the umbrella plan and TODO §8. + + diff --git a/docs/features/incremental-index/README.md b/docs/features/incremental-index/README.md index d6a6ca3..ba96693 100644 --- a/docs/features/incremental-index/README.md +++ b/docs/features/incremental-index/README.md @@ -1,3 +1,5 @@ + + # incremental-index ## Goal @@ -680,3 +682,5 @@ are permanent. I corrected the one LOW finding (the per-file word-list estimate, 4.3x high; the conclusion stood). The three filed leftovers (wholesale republish, Candidates re-derivation cost, the include removal edge) are honest and none blocks. Accepted as shipped. + + diff --git a/docs/features/incremental-sync/README.md b/docs/features/incremental-sync/README.md index 138bc96..fc382b5 100644 --- a/docs/features/incremental-sync/README.md +++ b/docs/features/incremental-sync/README.md @@ -1,3 +1,5 @@ + + # incremental-sync ## Goal @@ -422,3 +424,5 @@ sequences against an independent model), the deliberate-breakage check that the line table really is rebuilt per change, and the wire-level capability assertion give this the confidence a sync rewrite needs. Accepted as shipped. + + diff --git a/docs/features/index-persistence/README.md b/docs/features/index-persistence/README.md index 91354d4..199f18c 100644 --- a/docs/features/index-persistence/README.md +++ b/docs/features/index-persistence/README.md @@ -1,3 +1,5 @@ + + # index-persistence ## Goal @@ -1583,3 +1585,5 @@ Filed and standing: word-table/include-graph caching (the remaining warm cost), cross-server locking, compaction growth. QA's own self-caught test-construction bug is exactly the epistemic hygiene this workflow is for. Accepted as shipped. + + diff --git a/docs/features/index-scope/README.md b/docs/features/index-scope/README.md index 3ab83bf..d0db182 100644 --- a/docs/features/index-scope/README.md +++ b/docs/features/index-scope/README.md @@ -1,3 +1,5 @@ + + # index-scope ## Goal @@ -2113,3 +2115,5 @@ that verification and assigned to round 19's brief as permanent-test obligations — its dev works in these exact files next. The gitignore-below-root delta stays filed against lucisv_core. Accepted as shipped. + + diff --git a/docs/features/indexing-ux/README.md b/docs/features/indexing-ux/README.md index 4beed82..cd9c051 100644 --- a/docs/features/indexing-ux/README.md +++ b/docs/features/indexing-ux/README.md @@ -1,3 +1,5 @@ + + # indexing-ux ## Goal @@ -744,3 +746,5 @@ what the rounded number reads as, plus the boundary test. The unreproduced 18 ms overhead claim stands as the dev's measurement with QA's non-verification noted — the mechanism is sound and the number is not load-bearing. Accepted as shipped. + + diff --git a/docs/features/inlay-hints/README.md b/docs/features/inlay-hints/README.md index 4e10034..c9035f8 100644 --- a/docs/features/inlay-hints/README.md +++ b/docs/features/inlay-hints/README.md @@ -1,3 +1,5 @@ + + # inlay-hints M8 of the refactoring plan (`docs/features/refactor/README.md`): **port-name @@ -385,3 +387,5 @@ comment worth keeping. Verified the fix and its two regression tests myself. O(distinct-modules) caching confirmed by QA at 163µs for 100 instances of one module. Accepted; M8 checked off in the umbrella plan and TODO.md §8. + + diff --git a/docs/features/inline-instantiation/README.md b/docs/features/inline-instantiation/README.md index f7effaa..1e56e0d 100644 --- a/docs/features/inline-instantiation/README.md +++ b/docs/features/inline-instantiation/README.md @@ -1,3 +1,5 @@ + + # inline-instantiation ## Goal @@ -1027,3 +1029,5 @@ fixed at review. probes were confirmed read-only. - Gates re-run by the lead after the fix: fmt clean, clippy zero warnings, 2 669 passed / 0 failed, smoke OK. Ships as 0.19.0. + + diff --git a/docs/features/inline-templates/README.md b/docs/features/inline-templates/README.md index fd2b469..c2007d9 100644 --- a/docs/features/inline-templates/README.md +++ b/docs/features/inline-templates/README.md @@ -1,3 +1,5 @@ + + # inline-templates ## Goal @@ -933,3 +935,5 @@ both clean. `node editors/vscode/smoke.js target/debug/lucisv-server` → accepted text). The first-line-normalization stability pin QA added closes the one latent hazard I could find in the accepted() shortcut. - Gates re-run by the lead before commit. Ships as 0.7.0. + + diff --git a/docs/features/instance-folding/README.md b/docs/features/instance-folding/README.md index 20e97ac..6a99c82 100644 --- a/docs/features/instance-folding/README.md +++ b/docs/features/instance-folding/README.md @@ -1,3 +1,5 @@ + + # instance-folding ## Goal @@ -313,3 +315,5 @@ existing e2e suite (QA called `folding_ranges` directly). never fire) stays as a guard. Edge recorded in `docs/topo.md`. Open: seen in a running VS Code (owner); 2-D instance arrays need the parser to read them as instantiations first. + + diff --git a/docs/features/instantiation-highlighting/README.md b/docs/features/instantiation-highlighting/README.md index 9510502..cd77a3e 100644 --- a/docs/features/instantiation-highlighting/README.md +++ b/docs/features/instantiation-highlighting/README.md @@ -1,3 +1,5 @@ + + # instantiation-highlighting ## Goal @@ -124,3 +126,5 @@ instantiation takes its own semantic token class and theme-safe TextMate scope: ## QA log ## Review + + diff --git a/docs/features/interactive-latency/README.md b/docs/features/interactive-latency/README.md index 7171e6f..c830181 100644 --- a/docs/features/interactive-latency/README.md +++ b/docs/features/interactive-latency/README.md @@ -1,3 +1,5 @@ + + # interactive-latency ## Goal @@ -438,3 +440,4 @@ counted rather than assumed. IL-2's overstated doc comment is corrected in place — the two `generated_module` copies differ by one trivia line, which is not a token and does not move a number. + diff --git a/docs/features/interface-dpi-arms/README.md b/docs/features/interface-dpi-arms/README.md index 107ee02..12bafb0 100644 --- a/docs/features/interface-dpi-arms/README.md +++ b/docs/features/interface-dpi-arms/README.md @@ -1,3 +1,5 @@ + + # interface / DPI grammar arms (TODO §30, M13) ## Goal @@ -395,3 +397,5 @@ over 4 807 files, which QA re-derived. The stash incident is logged and its gates were re-run; the rule stands. QA's LOW: the two mechanical `parse_tf_ports(false)` call sites are added to the Files list here. Ships in 0.34.0. + + diff --git a/docs/features/interface-semantics/README.md b/docs/features/interface-semantics/README.md index eeedb34..2d9659f 100644 --- a/docs/features/interface-semantics/README.md +++ b/docs/features/interface-semantics/README.md @@ -1,3 +1,5 @@ + + # interface-semantics ## Goal @@ -631,3 +633,5 @@ every file, both binaries.** Unchanged, as required. - Gates re-run by the lead: fmt clean, clippy zero warnings, 2 790 passed / 0 failed, smoke OK. `docs/topo.md`: §2.9-7 struck as delivered, handshake row added. Ships as 0.24.0 (FACTS_FORMAT 8). + + diff --git a/docs/features/interfaces/README.md b/docs/features/interfaces/README.md index 5682104..f5d9dc8 100644 --- a/docs/features/interfaces/README.md +++ b/docs/features/interfaces/README.md @@ -1,3 +1,5 @@ + + # interfaces ## Goal @@ -263,3 +265,5 @@ Targeted attacks: `an_interface_is_held_to_the_same_rule`). Correct. No BLOCKING findings for this cluster. + + diff --git a/docs/features/item-misc/README.md b/docs/features/item-misc/README.md index 1456db6..a949769 100644 --- a/docs/features/item-misc/README.md +++ b/docs/features/item-misc/README.md @@ -1,3 +1,5 @@ + + # item-misc ## Goal @@ -326,3 +328,4 @@ Targeted attacks from the hit-list: No BLOCKING findings for this cluster. + diff --git a/docs/features/large-file-mode/README.md b/docs/features/large-file-mode/README.md index f933ff6..0807d69 100644 --- a/docs/features/large-file-mode/README.md +++ b/docs/features/large-file-mode/README.md @@ -1,3 +1,5 @@ + + # large-file-mode ## Goal @@ -1043,3 +1045,5 @@ cache close the coherence story across all three index rounds. The residual symbol_at cost on pathological ordinary files is noted, not filed — it is the normal path's ordinary per-token work. Accepted as shipped, and with it the owner's large-workarea wave is complete. + + diff --git a/docs/features/lazy-code-action/README.md b/docs/features/lazy-code-action/README.md index 27fcdc0..1f2a38c 100644 --- a/docs/features/lazy-code-action/README.md +++ b/docs/features/lazy-code-action/README.md @@ -1,3 +1,5 @@ + + # lazy-code-action TODO §37 — the three server residues left over from §10: the lazy @@ -571,3 +573,5 @@ QA's two LOWs are noted, not actioned: `Tree::new` takes a per-test name and the existing names are distinct, and §6a's absolute numbers were measured on a different day's machine state — both servers agree with each other here, which is what the comparison needed. + + diff --git a/docs/features/lexer-cleanup/README.md b/docs/features/lexer-cleanup/README.md index a5428ef..c153309 100644 --- a/docs/features/lexer-cleanup/README.md +++ b/docs/features/lexer-cleanup/README.md @@ -1,3 +1,5 @@ + + # lexer-cleanup ## Goal @@ -559,3 +561,5 @@ Lead fixes on acceptance: the struck argument 3; the stale `verify.rs:200` comment updated to name the backoff; the range-formatting README gained the BOM-drop edge note (QA's F3). F4-F7 stand as recorded info items. + + diff --git a/docs/features/linked-editing/README.md b/docs/features/linked-editing/README.md index 1bbe4f3..adfe376 100644 --- a/docs/features/linked-editing/README.md +++ b/docs/features/linked-editing/README.md @@ -1,3 +1,5 @@ + + # linked-editing ## Goal @@ -342,3 +344,5 @@ link never includes the colon a user would otherwise type into. The 83k-offset corpus sweep of the identical-text/non-overlap invariants closes it out. `program`/`property`/`sequence`/`covergroup` stay filed as parser wants in Handshakes. Accepted as shipped. + + diff --git a/docs/features/lint-config-contract/README.md b/docs/features/lint-config-contract/README.md index 4b791b2..0e75de4 100644 --- a/docs/features/lint-config-contract/README.md +++ b/docs/features/lint-config-contract/README.md @@ -1,3 +1,5 @@ + + # lint-config-contract TODO §42. Repository-analysis finding 2, topology handshake 28. @@ -453,3 +455,5 @@ two LOWs are pre-existing and out of scope; the second — an unknown name in the *editor's* `lucisv.lint.select` still silently dropped — is worth a line in a later round and is filed in topo §2.9 as item 29. Docs applied to README, the linter guide, configuration.md, the analysis and topo. + + diff --git a/docs/features/lint-harness/README.md b/docs/features/lint-harness/README.md index 750f79f..5913742 100644 --- a/docs/features/lint-harness/README.md +++ b/docs/features/lint-harness/README.md @@ -1,3 +1,5 @@ + + # lint-harness ## Goal @@ -547,3 +549,5 @@ Points reviewed and accepted: starts_with quirk inherited knowingly from the .cases precedent. With this, the owner's 2-3-4-5-7 sequence is complete. + + diff --git a/docs/features/lint-rules-2/README.md b/docs/features/lint-rules-2/README.md index 839d202..68586f5 100644 --- a/docs/features/lint-rules-2/README.md +++ b/docs/features/lint-rules-2/README.md @@ -1,3 +1,5 @@ + + # lint-rules-2 ## Goal @@ -665,3 +667,5 @@ Points reviewed and accepted: Remaining §4 items stay honestly open: external waiver files, per-rule style configuration (needs the lucisv.toml lint key), and the --rules-doc CLI flag (handshake filed; rules_markdown() is ready). + + diff --git a/docs/features/linter-core/README.md b/docs/features/linter-core/README.md index 12b21b7..b73148a 100644 --- a/docs/features/linter-core/README.md +++ b/docs/features/linter-core/README.md @@ -1,3 +1,5 @@ + + # linter-core ## Goal @@ -610,3 +612,5 @@ rules, markdown rule docs, wire/reg mixup (needs a SystemVerilog-ness decision), and one-parse-two-tools (check re-parses today; only LintContext changes when unified). The LSP server should surface lint diagnostics in a future round — filed there as a natural follow-up. + + diff --git a/docs/features/linter-expansion-1/README.md b/docs/features/linter-expansion-1/README.md index 7eafa55..946d679 100644 --- a/docs/features/linter-expansion-1/README.md +++ b/docs/features/linter-expansion-1/README.md @@ -1,3 +1,5 @@ + + # linter expansion, wave 1 (TODO §33) ## Goal @@ -618,3 +620,5 @@ three runs each under `tools/guard.sh`: 0.35.0 1.06–1.08 s, this tree 1.06–1.07 s over opentitan `hw/` — no difference. The dev's "faster" was not reproduced either; the census change is neutral at this scale. Ships in 0.36.0. Wave 2 (§34) takes the Style family and per-rule options. + + diff --git a/docs/features/linter-expansion-2/README.md b/docs/features/linter-expansion-2/README.md index f6f3581..67efca3 100644 --- a/docs/features/linter-expansion-2/README.md +++ b/docs/features/linter-expansion-2/README.md @@ -1,3 +1,5 @@ + + # linter expansion, wave 2 — per-rule options and the first Style rules ## Goal @@ -835,3 +837,5 @@ no checked-in e2e case for `lucisv.lint.options` over the wire (QA drove it by hand twice), and `always-comb` on plain `.v` files being a judgment call the unsafe fix and one `ignore` already cover. Ships in 0.38.0; §35 takes the remaining twenty Verible rules. + + diff --git a/docs/features/linter-expansion-3/README.md b/docs/features/linter-expansion-3/README.md index fa1472d..87c48a8 100644 --- a/docs/features/linter-expansion-3/README.md +++ b/docs/features/linter-expansion-3/README.md @@ -1,3 +1,5 @@ + + # linter expansion, wave 3 — the remaining Verible rules ## Goal @@ -573,3 +575,5 @@ wrote two spaces where the formatter writes one — fixed at review with its two expectations. Ships in 0.39.0. The linter now stands at 73 rules with severities, toggles and options; what remains for it is measurement in use, not more rules. + + diff --git a/docs/features/linux-test-portability/README.md b/docs/features/linux-test-portability/README.md index 281c481..ee5d168 100644 --- a/docs/features/linux-test-portability/README.md +++ b/docs/features/linux-test-portability/README.md @@ -1,3 +1,5 @@ + + # linux-test-portability ## Goal @@ -1056,3 +1058,5 @@ only); Windows at run time (compile only); a real suspend or NTP step - Open, filed in TODO: future-mtime trees re-read on every call; the mmap limit and the Windows gap are now written in `docs/features/mcp-transport`; a weak assertion in `cli.rs`; `qa_m3.rs` does not compile for Windows. + + diff --git a/docs/features/localized-reindex/README.md b/docs/features/localized-reindex/README.md index 6894c52..92ad87b 100644 --- a/docs/features/localized-reindex/README.md +++ b/docs/features/localized-reindex/README.md @@ -1,3 +1,5 @@ + + # localized-reindex ## Goal @@ -1286,3 +1288,5 @@ next lane: - Open, handed to lane 71.7 with reproductions: the out-of-order edit during a rescan, directory-only watcher events, excluded buffers after close, symlink spellings. + + diff --git a/docs/features/lsp-318-extras/README.md b/docs/features/lsp-318-extras/README.md index 90ca779..599be16 100644 --- a/docs/features/lsp-318-extras/README.md +++ b/docs/features/lsp-318-extras/README.md @@ -1,3 +1,5 @@ + + # lsp-318-extras ## Goal @@ -583,3 +585,5 @@ deliberate-breakage check on the overflow fix. Declining to split the whole-document edit into per-range claims the engine never verified is exactly the invariant culture applied to a reply shape. This completes §9c and the LSP 3.18 audit's feature work. Accepted as shipped. + + diff --git a/docs/features/lucisv-core-lift/README.md b/docs/features/lucisv-core-lift/README.md index 9b084c7..5044eaa 100644 --- a/docs/features/lucisv-core-lift/README.md +++ b/docs/features/lucisv-core-lift/README.md @@ -1,3 +1,5 @@ + + # lucisv-core-lift ## Goal @@ -469,3 +471,5 @@ Lead fix on acceptance: the corpus file-count figure (860→820) per QA. The stale lucisv-server Assumptions this lift superseded were struck through with lead notes at the editor-packaging review, alongside the TODO path pointers. + + diff --git a/docs/features/lucisv-server/README.md b/docs/features/lucisv-server/README.md index 2eab981..a6a4945 100644 --- a/docs/features/lucisv-server/README.md +++ b/docs/features/lucisv-server/README.md @@ -1,3 +1,5 @@ + + # lucisv-server ## Goal @@ -1219,3 +1221,5 @@ the reference for anyone scripting against the server. Round 12: editor packaging (VS Code extension + Neovim lspconfig) and the config/walk library lifts, closing TODO §6. + + diff --git a/docs/features/macro-expansion/README.md b/docs/features/macro-expansion/README.md index 1d08ce4..146db38 100644 --- a/docs/features/macro-expansion/README.md +++ b/docs/features/macro-expansion/README.md @@ -1,3 +1,5 @@ + + # macro-expansion ## Goal @@ -422,3 +424,4 @@ what `Define::params` actually records, it reads the source rather than guessing. One step means one step, pinned by test. Accepted; M14 and the 0.5.0 bump close the M7–M14 run. + diff --git a/docs/features/macro-items/README.md b/docs/features/macro-items/README.md index b3b3be7..34be0a9 100644 --- a/docs/features/macro-items/README.md +++ b/docs/features/macro-items/README.md @@ -1,3 +1,5 @@ + + # macro-items ## Goal @@ -887,3 +889,5 @@ Also accepted: the `` `M (a, b); `` space-before-paren gap stays a documented Assumption (the expression-position ambiguity the dev identified is real; it needs its own round if it ever matters — no corpus call site writes it spaced). + + diff --git a/docs/features/macro-word-census/README.md b/docs/features/macro-word-census/README.md index 00109db..ff2b17e 100644 --- a/docs/features/macro-word-census/README.md +++ b/docs/features/macro-word-census/README.md @@ -1,3 +1,5 @@ + + # macro-word census (TODO §29) ## Goal @@ -459,3 +461,5 @@ extreme fan-out, invisible at a realistic one, unisolated) is recorded and not chased: the pass is measured at 0.2 ms and the gap sits inside the pre-existing fan-out. Filed by the dev and accepted: a `perf.rs` probe for the rename warning pass. Ships in 0.34.0. + + diff --git a/docs/features/mcp-cache-and-census/README.md b/docs/features/mcp-cache-and-census/README.md index 4f89e80..0ea7719 100644 --- a/docs/features/mcp-cache-and-census/README.md +++ b/docs/features/mcp-cache-and-census/README.md @@ -1,3 +1,5 @@ + + # mcp-cache-and-census Lane **M6** of the MCP block (`TODO-MCP.md`, `docs/mcp/PLAN.md` §6 and §8): @@ -385,3 +387,5 @@ first census round. The forced-delete ruling (rule 6) and the first `INSTRUCTIONS` revision landed here; the census revises the instructions again. The full workspace suite was still running when the machine moved; the dev's run on the same code passed 4 858 and QA's crate suite 318. + + diff --git a/docs/features/mcp-edit-tools/README.md b/docs/features/mcp-edit-tools/README.md index 7a0900f..82d0348 100644 --- a/docs/features/mcp-edit-tools/README.md +++ b/docs/features/mcp-edit-tools/README.md @@ -1,3 +1,5 @@ + + # mcp-edit-tools Lane **M3** of the MCP block (`TODO-MCP.md`, `docs/mcp/PLAN.md` §4.3). @@ -703,3 +705,5 @@ its own engine lane, M3.5, before M4; until it lands the `rename` tool says so in its description. MCP-8 (a false `remove_port` refusal on same-file instantiations) and MCP-10 (CRLF in `extract_module`) are engine findings filed for the owner. Committed as M3. + + diff --git a/docs/features/mcp-feedback-1/README.md b/docs/features/mcp-feedback-1/README.md index 95c1bd4..302e6b9 100644 --- a/docs/features/mcp-feedback-1/README.md +++ b/docs/features/mcp-feedback-1/README.md @@ -1,3 +1,5 @@ + + # mcp-feedback-1 Lane **feedback-1** of the MCP block: the changes the first token-census @@ -431,3 +433,5 @@ anchoring name. Ruling on QA's finding 6: under `dry_run` the mention line numbers describe the file as it would be written; the line text beside each number is the recovery, and the wording stays. Committed; the round-2 binary is frozen from this commit. + + diff --git a/docs/features/mcp-feedback-2/README.md b/docs/features/mcp-feedback-2/README.md index f3ce915..ed55d9c 100644 --- a/docs/features/mcp-feedback-2/README.md +++ b/docs/features/mcp-feedback-2/README.md @@ -1,3 +1,5 @@ + + # mcp-feedback-2 Lane **feedback-2** of the MCP block: the changes the second token-census @@ -310,3 +312,5 @@ opentitan, `hierarchy up prim_fifo_sync` with `in: "ip/**/rtl/*.sv"` answers everything below it, as `.gitignore` reads it) and the README's outside-root sentence, and left notes 3 and 4 as documented behaviour. Committed; the round-3 binary is frozen from this commit. + + diff --git a/docs/features/mcp-feedback-3/README.md b/docs/features/mcp-feedback-3/README.md index 769afaf..fe070a3 100644 --- a/docs/features/mcp-feedback-3/README.md +++ b/docs/features/mcp-feedback-3/README.md @@ -1,3 +1,5 @@ + + # mcp-feedback-3 Lane **feedback-3** of the MCP block, the last census lane: the changes the @@ -296,3 +298,5 @@ opt-in text byte-identical to the old output over every fixture and the opentitan clone. The `dry_run` wording trim in `edit.rs` is accepted. The Agents guide's tool table was regenerated from the binary by the lead. Committed; the release binary is this one. + + diff --git a/docs/features/mcp-lean-catalogue/README.md b/docs/features/mcp-lean-catalogue/README.md index 7ca1a50..6688e0e 100644 --- a/docs/features/mcp-lean-catalogue/README.md +++ b/docs/features/mcp-lean-catalogue/README.md @@ -1,3 +1,5 @@ + + # mcp-lean-catalogue Lane **M7** of the MCP block (`TODO-MCP.md`, `docs/mcp/PLAN.md` §10). @@ -608,3 +610,5 @@ qualified `unit.name`/`pkg::name`, the 5-declaration cap on `find refs` (MCP-11 filed), per-file `format` refusals, the root line on `hierarchy` down. Gates at commit: lucisv_mcp 366 passed / 4 ignored, workspace 4 922 passed / 0 failed. Census round 4 follows on this binary. + + diff --git a/docs/features/mcp-navigation/README.md b/docs/features/mcp-navigation/README.md index 84bce12..0b9125c 100644 --- a/docs/features/mcp-navigation/README.md +++ b/docs/features/mcp-navigation/README.md @@ -1,3 +1,5 @@ + + # mcp-navigation TODO-MCP.md **M2** — the navigation, diagnostics and resource half of @@ -768,3 +770,5 @@ and one-step macro expansion are not offered (server-only code; MCP-5 filed). MCP-6 — the LSP omits three real `aes` instantiations in the `*_pd_main.sv` tops — is a possible LSP bug to file in TODO.md at the end of the block. Committed as M2. + + diff --git a/docs/features/mcp-packaging/README.md b/docs/features/mcp-packaging/README.md index 761274c..85534f8 100644 --- a/docs/features/mcp-packaging/README.md +++ b/docs/features/mcp-packaging/README.md @@ -1,3 +1,5 @@ + + # mcp-packaging ## Goal @@ -337,3 +339,5 @@ the registration) and F4 (`--index-cache` may not exist yet — M6's reader must tolerate it) noted for M6. The tracked docs site rebuilt so the Agents page ships. Rows 18–25 of `docs/manual-acceptance.md` are the owner's in a live VS Code. Committed as M5. + + diff --git a/docs/features/mcp-read-only/README.md b/docs/features/mcp-read-only/README.md index 82cae8a..ae6f55d 100644 --- a/docs/features/mcp-read-only/README.md +++ b/docs/features/mcp-read-only/README.md @@ -1,3 +1,5 @@ + + # mcp-read-only Lane **M8** of the MCP block (`TODO-MCP.md`, `docs/mcp/PLAN.md` §11). @@ -357,3 +359,5 @@ first (finding 4); PLAN §11 now says the index store is written wherever `--index-cache` points. Gates at commit: lucisv_mcp 378 passed / 4 ignored (15 suites), node tests 6/6, both smokes OK. Census round 5 follows on this binary. + + diff --git a/docs/features/mcp-read-tools/README.md b/docs/features/mcp-read-tools/README.md index 6e0cc44..b952da9 100644 --- a/docs/features/mcp-read-tools/README.md +++ b/docs/features/mcp-read-tools/README.md @@ -1,3 +1,5 @@ + + # mcp-read-tools TODO-MCP.md **M1** (second half) — the six read tools of `lucisv-mcp`: @@ -383,3 +385,5 @@ listed is the right posture for opentitan's per-top duplicates; the cross-contamination was the one wrong answer and is fixed at the declaration, where it belongs. Committed as M1; the token census (M6) will say whether the renderings are compact *enough*. + + diff --git a/docs/features/mcp-structural-edits/README.md b/docs/features/mcp-structural-edits/README.md index ee2ec14..47565e1 100644 --- a/docs/features/mcp-structural-edits/README.md +++ b/docs/features/mcp-structural-edits/README.md @@ -1,3 +1,5 @@ + + # mcp-structural-edits Lane **M4** of the MCP block (`TODO-MCP.md`, `docs/mcp/PLAN.md` §4.3). @@ -812,3 +814,5 @@ holds a `` `define`` is refused by rule 6 (ruling for the fix: `force` relaxes rule 6 on delete, with a warning), and rule 3 lexes every file spelling a common name on each delete (measure on opentitan before changing). MCP-11/12/13 filed. Committed as M4. + + diff --git a/docs/features/mcp-transport/README.md b/docs/features/mcp-transport/README.md index 85ebf99..ad3a940 100644 --- a/docs/features/mcp-transport/README.md +++ b/docs/features/mcp-transport/README.md @@ -1,3 +1,5 @@ + + # mcp-transport TODO-MCP.md **M1** (first half) — the `lucisv-mcp` binary, its argument @@ -475,3 +477,5 @@ unit; a by-name miss walks once per call. The guard kill the dev saw was two concurrent cargo invocations and did not reproduce under either QA run. QA finding 11 (an escaped identifier ending in `@digits` cannot be selected bare) is carried into M2 as a small item. Committed as M1. + + diff --git a/docs/features/member-completion/README.md b/docs/features/member-completion/README.md index 42e49af..2e79284 100644 --- a/docs/features/member-completion/README.md +++ b/docs/features/member-completion/README.md @@ -1,3 +1,5 @@ + + # member-completion ## Goal @@ -953,3 +955,5 @@ which made the round better than the brief. warnings, smoke OK. `docs/topo.md` row written and corrected for the facts bump. Ships as 0.26.0 alongside escaped-identifiers, which ran in parallel in its own worktree. + + diff --git a/docs/features/mop-up-2/README.md b/docs/features/mop-up-2/README.md index 8ca2431..58ce7b0 100644 --- a/docs/features/mop-up-2/README.md +++ b/docs/features/mop-up-2/README.md @@ -1,3 +1,5 @@ + + # mop-up-2 ## Goal @@ -366,3 +368,5 @@ under attack. The one item above is a documentation gap (Assumptions doesn't mention the list-directive blast radius), not a code defect. ## Review + + diff --git a/docs/features/name-spans/README.md b/docs/features/name-spans/README.md index 92f4c71..3a4e72b 100644 --- a/docs/features/name-spans/README.md +++ b/docs/features/name-spans/README.md @@ -1,3 +1,5 @@ + + # name-spans ## Goal @@ -493,3 +495,5 @@ Consequence for the next rounds: `scan.rs` is down to one consumer vlog_semantic should adopt these fields and shrink scan.rs in its next touch; hover/definition on end labels (`endmodule : m`) is now free data for the server. + + diff --git a/docs/features/null-items/README.md b/docs/features/null-items/README.md index 6588121..b968e9a 100644 --- a/docs/features/null-items/README.md +++ b/docs/features/null-items/README.md @@ -1,3 +1,5 @@ + + # null-items ## Goal @@ -450,3 +452,5 @@ the opentitan sweep confirmed byte-identical to trunk. No blocking findings. gains a grammar-lane row and a linter-lane row. Ships as 0.21.0 — formatter output changes for files that contain a null item, so the version bump is owed by the format-cache rule as well. + + diff --git a/docs/features/on-type-formatting/README.md b/docs/features/on-type-formatting/README.md index e25d1ae..1b1e881 100644 --- a/docs/features/on-type-formatting/README.md +++ b/docs/features/on-type-formatting/README.md @@ -1,3 +1,5 @@ + + # on-type formatting ## Goal @@ -633,3 +635,5 @@ becomes a real complaint, the answer is a [lib] refactor, not an #[ignore]. QA's six added tests (CRLF, mixed tabs, macro-body and EOF semicolons, fence, whole-file ifdef) close the shapes the dev's own sweep missed. Accepted as shipped. + + diff --git a/docs/features/one-parse/README.md b/docs/features/one-parse/README.md index e016588..e1d7546 100644 --- a/docs/features/one-parse/README.md +++ b/docs/features/one-parse/README.md @@ -1,3 +1,5 @@ + + # one-parse ## Goal @@ -513,3 +515,5 @@ Points reviewed and accepted: 5. QA-3 (the unused 'a on new()) stands as a noted quirk; QA-4 (CRLF trailing-whitespace fix gap) is pre-existing and joins the linter's known-gaps list. + + diff --git a/docs/features/organize-imports/README.md b/docs/features/organize-imports/README.md index de745ff..a33a968 100644 --- a/docs/features/organize-imports/README.md +++ b/docs/features/organize-imports/README.md @@ -1,3 +1,5 @@ + + # organize-imports TODO §52 — the third of the §8 refactoring backlog. One judgement, three @@ -787,3 +789,5 @@ class leaks upward and over-keeps) is the safe direction and is left as recorded. The macro/`` `include `` refusal is what decides the feature's usefulness on verification code; it stays, and is the honest limit of a tool that does not preprocess. + + diff --git a/docs/features/out-of-class-constraints/README.md b/docs/features/out-of-class-constraints/README.md index 63473da..569c8b4 100644 --- a/docs/features/out-of-class-constraints/README.md +++ b/docs/features/out-of-class-constraints/README.md @@ -1,3 +1,5 @@ + + # out-of-class constraints ## Goal @@ -455,3 +457,5 @@ the QA-added opacity test `an_out_of_block_constraint_is_absent_but_nothing_crashes` is replaced by `an_out_of_block_constraint_binds_into_its_class`. See `docs/features/constraint-bodies/README.md`. + + diff --git a/docs/features/overlay-promotion/README.md b/docs/features/overlay-promotion/README.md index b9ccd49..3c02bc0 100644 --- a/docs/features/overlay-promotion/README.md +++ b/docs/features/overlay-promotion/README.md @@ -1,3 +1,5 @@ + + # overlay-promotion ## Goal @@ -977,3 +979,5 @@ first fix had edited by mistake. The cast-binds-no-reference gap stays filed as pre-existing. `indexed_type` is gone, its guard with it, and the two handlers cannot drift because only one resolution path remains. Accepted as shipped. + + diff --git a/docs/features/package-reexports/README.md b/docs/features/package-reexports/README.md index d150238..c7b7fa7 100644 --- a/docs/features/package-reexports/README.md +++ b/docs/features/package-reexports/README.md @@ -1,3 +1,5 @@ + + # package re-exports (TODO §48) ## Goal @@ -479,3 +481,5 @@ carry. On opentitan a real gap closed: `spi_device_pkg::SramDepth` is reached only through a re-export and now resolves, with the four further sites QA found all correct. The two doc counts QA caught are corrected above. + + diff --git a/docs/features/parallel-files/README.md b/docs/features/parallel-files/README.md index 741fd4c..79fd0db 100644 --- a/docs/features/parallel-files/README.md +++ b/docs/features/parallel-files/README.md @@ -1,3 +1,5 @@ + + # parallel-files ## Goal @@ -490,3 +492,5 @@ its sub-linearity (early parse failures). QA's methodology note (Cargo mtime fingerprinting silently serving a stale sabotaged build) is preserved in the QA log — future sabotage checks should `touch` after restore. + + diff --git a/docs/features/parser-skips/README.md b/docs/features/parser-skips/README.md index 2006312..874e4d1 100644 --- a/docs/features/parser-skips/README.md +++ b/docs/features/parser-skips/README.md @@ -1,3 +1,5 @@ + + # parser-skips ## Goal @@ -413,3 +415,5 @@ handshake to comment-slots. Byte-identity: 0 of 820 corpus files differ from 0.41.0, and over 2 554 opentitan files exactly the two named files change outcome, both from parse error to formattable. QA's LOW (a rival nested in a generate `if` arm also recovers) is fine as it is. + + diff --git a/docs/features/perf-first-after-edit/README.md b/docs/features/perf-first-after-edit/README.md index f79f4a7..57e7cd7 100644 --- a/docs/features/perf-first-after-edit/README.md +++ b/docs/features/perf-first-after-edit/README.md @@ -1,3 +1,5 @@ + + # perf-first-after-edit TODO §63.2 — N1 of the 0.52.0 review (`docs/performance_052_review.md`, @@ -652,3 +654,5 @@ token clone into `parse_tolerant` (the parser mutates the stream it is given), `analyze`, `resolve_external`, and dropping the previous revision on the request path. `lexer.rs` at 770 production lines is noted: the fusion removed a responsibility rather than adding one. + + diff --git a/docs/features/perf5-p0/README.md b/docs/features/perf5-p0/README.md index 8e6dae0..7be017b 100644 --- a/docs/features/perf5-p0/README.md +++ b/docs/features/perf5-p0/README.md @@ -1,3 +1,5 @@ + + # perf5-p0 — the harness tells the truth Take 5 §P0 / TODO §60.0. Harness only: no Rust source is touched. @@ -431,3 +433,5 @@ sweep change, the tracker's REF cells and experiment entry, both logs. 84–86 ms), a P4a lead. - Deviation accepted: the CLI probe stays a scratch script beside `sweep.sh` rather than changing the committed sweep's cell set. + + diff --git a/docs/features/perf5-p1/README.md b/docs/features/perf5-p1/README.md index c9e18c2..a3640c6 100644 --- a/docs/features/perf5-p1/README.md +++ b/docs/features/perf5-p1/README.md @@ -1,3 +1,5 @@ + + # perf5-p1 — code-action discovery stops repeating work ## Goal @@ -1219,3 +1221,5 @@ Docs applied at merge: topo edges for `vlog_parser::stats`, the four - Deviations accepted: the predicate rendering the propagation's edits to count them (text work, no parse, no index); the one `use` line in `server/tests/mod.rs`; the two engine test files. + + diff --git a/docs/features/perf5-p2/README.md b/docs/features/perf5-p2/README.md index 709a032..41aaba5 100644 --- a/docs/features/perf5-p2/README.md +++ b/docs/features/perf5-p2/README.md @@ -1,3 +1,5 @@ + + # perf5-p2 — rename reuses its analysis, verification untouched Take 5 §P2 (`docs/performance_take5.md`), TODO §60.2. Stages P2a → P2b → P2c @@ -1535,3 +1537,5 @@ every one of the nineteen timed phases. repeated analysis to remove; its cost is `module_sources` selecting hundreds of files for a *package* name, which is the §P1 finding filed for §P2d and handshake 33. + + diff --git a/docs/features/perf5-p3/README.md b/docs/features/perf5-p3/README.md index 5026309..5fd5c93 100644 --- a/docs/features/perf5-p3/README.md +++ b/docs/features/perf5-p3/README.md @@ -1,3 +1,5 @@ + + # perf5-p3 — one parse for the CLI package census ## Goal @@ -456,3 +458,5 @@ of the five corpus cells are the acceptance. Docs applied at merge: topo edges `lucisv ──▶ vlog_linter` (`package_exports_in`) and `vlog_linter ──▶ vlog_semantic` (`FileFacts::from_analysis` + `IndexBuilder`). + + diff --git a/docs/features/perf5-p4/README.md b/docs/features/perf5-p4/README.md index 189e30d..13aad34 100644 --- a/docs/features/perf5-p4/README.md +++ b/docs/features/perf5-p4/README.md @@ -1,3 +1,5 @@ + + # perf5-p4 — the startup and memory breakdown (take 5 §P4a) ## Goal @@ -2148,3 +2150,5 @@ Docs applied at merge: the stale `absorb` link in `state/mod.rs`; the folders-and-config Assumptions sentence; topo (the scan-interleave row amended, the module ownership entries); the walk-metadata item and the first-answer gap added to the loop-3 list. + + diff --git a/docs/features/perf5r-first-answer/README.md b/docs/features/perf5r-first-answer/README.md index 7e272a2..6c93c5f 100644 --- a/docs/features/perf5r-first-answer/README.md +++ b/docs/features/perf5r-first-answer/README.md @@ -1,3 +1,5 @@ + + # perf5r-first-answer — the first useful answer of a workspace start (R2a, R2b) ## Goal @@ -1615,3 +1617,5 @@ two passes and a lead fix. - Out of scope, written down: a file-level symlink under a *different* name is two files; a buffer opened mid-scan is not put through the alias test (unchanged since 0.51.0). + + diff --git a/docs/features/perf5r-lint-snapshot/README.md b/docs/features/perf5r-lint-snapshot/README.md index daa6ae9..4341717 100644 --- a/docs/features/perf5r-lint-snapshot/README.md +++ b/docs/features/perf5r-lint-snapshot/README.md @@ -1,3 +1,5 @@ + + # perf5r-lint-snapshot — the code-action path on a large file Take 5 **review** round (`docs/performance_take5_review.md` §1), TODO §61.2, @@ -600,3 +602,5 @@ are the acceptance. Docs applied at merge: topo (the snapshot and trace modules, the diagnostics/quick-fix shared result, the parsed `timing: codeaction` line); the `format::indent_width` request to the loop-3 list. + + diff --git a/docs/features/perf5r-preflight/README.md b/docs/features/perf5r-preflight/README.md index 15bced7..b137ed4 100644 --- a/docs/features/perf5r-preflight/README.md +++ b/docs/features/perf5r-preflight/README.md @@ -1,3 +1,5 @@ + + # perf5r-preflight — engine-owned refusal preflights Take 5 **review** round (`docs/performance_take5_review.md` §3 items 5–6), @@ -607,3 +609,5 @@ Docs applied at merge: topo §1.2 — `rename_preflight` owes whole-scope `rename` the same refusal text, one-directionally, and reads no index. *(empty — for the lead)* + + diff --git a/docs/features/perf5r-publication/README.md b/docs/features/perf5r-publication/README.md index e14902e..fe99352 100644 --- a/docs/features/perf5r-publication/README.md +++ b/docs/features/perf5r-publication/README.md @@ -1,3 +1,5 @@ + + # perf5r-publication — what a startup scan costs while requests keep arriving Review round §R4 (TODO §61.4). `docs/performance_take5_review.md` §4 and its @@ -977,3 +979,5 @@ ruling. Docs applied at merge: topo (the cadence, the `deferred` state and its cancel rule, `HEAD_WALK_MAX`); the cancel-request README's dated entry; the tail trade in the tracker. + + diff --git a/docs/features/perf5r-scope-reuse/README.md b/docs/features/perf5r-scope-reuse/README.md index aadb92a..6bbcca3 100644 --- a/docs/features/perf5r-scope-reuse/README.md +++ b/docs/features/perf5r-scope-reuse/README.md @@ -1,3 +1,5 @@ + + # perf5r-scope-reuse — the rename's scope stage, measured and then reused Take 5 **review round** §3 items 1–4 (`docs/performance_take5_review.md`), @@ -657,3 +659,5 @@ opentitan renames in three reuse modes are the acceptance. Docs applied at merge: topo (`rename_traced_with` + `KnownFacts`); the loop-3 note. + + diff --git a/docs/features/performance-take4/README.md b/docs/features/performance-take4/README.md index 835141a..429c058 100644 --- a/docs/features/performance-take4/README.md +++ b/docs/features/performance-take4/README.md @@ -1,3 +1,5 @@ + + # performance-take4 TODO §58 — the fourth opentitan performance round. **0.49.0 against 0.43.0**, @@ -353,3 +355,5 @@ against take 3's, the perf README entry, the harness README and the QA log. Docs applied at merge: perf README entry (the dev's), TODO §58 ticked, the §8.2 gate and §8.3 walk added to the loop-3 open items. + + diff --git a/docs/features/port-detail-spans/README.md b/docs/features/port-detail-spans/README.md index 0b82540..580693e 100644 --- a/docs/features/port-detail-spans/README.md +++ b/docs/features/port-detail-spans/README.md @@ -1,3 +1,5 @@ + + # port-detail-spans ## Goal @@ -446,3 +448,4 @@ CRLF strip is display-only and does not touch the buffer. The dev renamed and inverted a QA-authored test, and flagged it. Correct call and correctly surfaced: the behaviour that test pinned *was* the finding. + diff --git a/docs/features/port-entry-grace/README.md b/docs/features/port-entry-grace/README.md index c1d07cc..49f66b3 100644 --- a/docs/features/port-entry-grace/README.md +++ b/docs/features/port-entry-grace/README.md @@ -1,3 +1,5 @@ + + # port-entry-grace ## Goal @@ -536,3 +538,5 @@ Open, minor: QA notes 11 (rule (a) wording in this README) and 12 (a positional list continuing a hierarchical name on the next line counts as named). **Not verified by anyone:** the squiggle's timing in a running VS Code with the pull + refresh client, and whether 1.5 s feels right. + + diff --git a/docs/features/pull-diagnostics/README.md b/docs/features/pull-diagnostics/README.md index 558c01c..a434226 100644 --- a/docs/features/pull-diagnostics/README.md +++ b/docs/features/pull-diagnostics/README.md @@ -1,3 +1,5 @@ + + # pull-diagnostics ## Goal @@ -289,3 +291,5 @@ already states the true invariant — *every diagnostic-affecting input bumps inherits it. The `both_models_say_exactly_the_same_thing_about_a_buffer` test is the right tripwire for divergence. No change requested. Accepted as shipped. + + diff --git a/docs/features/range-formatting/README.md b/docs/features/range-formatting/README.md index 3dd3688..cde99a7 100644 --- a/docs/features/range-formatting/README.md +++ b/docs/features/range-formatting/README.md @@ -1,3 +1,5 @@ + + # range-formatting ## Goal @@ -720,3 +722,5 @@ With this, the owner's full directive is delivered. What remains on the backlog is the corpus-nominated queues/dynamic-arrays parse round (41 files), the parked §4 linter items, and the LSP-side class navigation gap — all documented where they live. + + diff --git a/docs/features/recursion-limit/README.md b/docs/features/recursion-limit/README.md index e5f2fb7..9af5b2d 100644 --- a/docs/features/recursion-limit/README.md +++ b/docs/features/recursion-limit/README.md @@ -1,3 +1,5 @@ + + # recursion-limit ## Goal @@ -1486,3 +1488,5 @@ Standing handshakes reaffirmed for future rounds: rayon workers need ≥8 MiB stacks (TODO §3); error-tolerant parsing must not reset `depth` or `links` during recovery (TODO §6); any new parser loop that boxes a base expression per iteration must charge the chain budget. + + diff --git a/docs/features/refactor-instantiate/README.md b/docs/features/refactor-instantiate/README.md index 2c57c21..ba3a04d 100644 --- a/docs/features/refactor-instantiate/README.md +++ b/docs/features/refactor-instantiate/README.md @@ -1,3 +1,5 @@ + + # refactor-instantiate M4 of the refactoring plan (`docs/features/refactor/README.md`): **module @@ -991,3 +993,5 @@ extra space in the snippet spelling when a default carries `$`/`}` — both spellings still parse) is accepted as a cosmetic known limitation; fix it if `terminate` is ever touched again. Accepted; M4 checked off in the umbrella plan and TODO.md §8. + + diff --git a/docs/features/refactor-ports/README.md b/docs/features/refactor-ports/README.md index 4f47981..faffc08 100644 --- a/docs/features/refactor-ports/README.md +++ b/docs/features/refactor-ports/README.md @@ -1,3 +1,5 @@ + + # refactor-ports Milestone **M3** of `docs/features/refactor/README.md`. @@ -1441,3 +1443,5 @@ unchanged. Accepted; M3 checked off in the umbrella plan and TODO.md §8. Noted, not blocking: QA's cosmetic over-warning on directives after the insertion point, and CRLF insertions writing `\n` — both recorded in the work log with reasoning. + + diff --git a/docs/features/refactor-rename/README.md b/docs/features/refactor-rename/README.md index 1dab9a1..0041035 100644 --- a/docs/features/refactor-rename/README.md +++ b/docs/features/refactor-rename/README.md @@ -1,3 +1,5 @@ + + # refactor-rename Milestone **M2** of `docs/features/refactor/README.md`. @@ -2607,3 +2609,5 @@ declaring neither name is read, not refused. Filed for the owner: the tolerant parser's leniency on a trailing `,` and `{d,, d}`, and `type(x)'(y)` in a connection parsing as an error element (vlog_parser). Committed as M3.5; ships in 0.56.0. + + diff --git a/docs/features/refactor/README.md b/docs/features/refactor/README.md index 6dbbc9b..0f6520c 100644 --- a/docs/features/refactor/README.md +++ b/docs/features/refactor/README.md @@ -1,3 +1,5 @@ + + # refactor — a rope for Verilog/SystemVerilog (umbrella plan) This is the **umbrella plan** for porting the ideas of @@ -302,3 +304,5 @@ itself carries no code) ## Review (reserved) + + diff --git a/docs/features/references-fanout-pd-main/README.md b/docs/features/references-fanout-pd-main/README.md index 4f1a8ca..ba82c95 100644 --- a/docs/features/references-fanout-pd-main/README.md +++ b/docs/features/references-fanout-pd-main/README.md @@ -1,3 +1,5 @@ + + # references-fanout-pd-main ## Goal @@ -138,3 +140,4 @@ instantiated outside the scope leaves those instantiations unchanged). No production code changed, so no QA lane was run; the lead reviewed the tests. + diff --git a/docs/features/references-hierarchical-surface/README.md b/docs/features/references-hierarchical-surface/README.md index 0332cd7..a92371a 100644 --- a/docs/features/references-hierarchical-surface/README.md +++ b/docs/features/references-hierarchical-surface/README.md @@ -1,3 +1,5 @@ + + # references-hierarchical-surface TODO.md §64.1 — `textDocument/references` for a declaration that only a @@ -1097,3 +1099,5 @@ declaration whose kind changed in place. `spells_exactly` made `pub(crate)` rather than copied is the right call. Handshake request recorded (a `Def`-keyed `hierarchical_only` on the index) and left for the next lane in `index.rs`. Ships in 0.55.0. + + diff --git a/docs/features/references-nav/README.md b/docs/features/references-nav/README.md index 13eadb0..5d2f6a9 100644 --- a/docs/features/references-nav/README.md +++ b/docs/features/references-nav/README.md @@ -1,3 +1,5 @@ + + # references-nav M7 of the refactoring plan (`docs/features/refactor/README.md`), the first @@ -1129,3 +1131,5 @@ is the gitignore-aware walk, as suspected, and its TODO.md flag was the lead's own uncommitted M7–M14 queue. Rename↔references span consistency was verified — the property that makes this milestone honest. Accepted; M7 checked off in the umbrella plan and TODO.md §8. + + diff --git a/docs/features/release-gates/README.md b/docs/features/release-gates/README.md index 662d2d4..91cc329 100644 --- a/docs/features/release-gates/README.md +++ b/docs/features/release-gates/README.md @@ -1,3 +1,5 @@ + + # release-gates — TODO §65.3: a dependable release gate script ## Goal @@ -364,3 +366,4 @@ Runaway guard) and the root README's Building section now point at `tools/gates.sh`. The ten green runs were on a healthy host — the first `KILLED → retried` row on a stalled one is the evidence still to come. + diff --git a/docs/features/release-prep/README.md b/docs/features/release-prep/README.md index 1e1e8d8..32d9a71 100644 --- a/docs/features/release-prep/README.md +++ b/docs/features/release-prep/README.md @@ -1,3 +1,5 @@ + + # release-prep ## Goal @@ -404,3 +406,5 @@ Points reviewed and accepted: Owner actions remain exactly the TODO one-liner: publishing whenever (or never), an icon, a real publisher id, and the copyright name if "lucio" isn't right. + + diff --git a/docs/features/rename-bind-occurrences/README.md b/docs/features/rename-bind-occurrences/README.md index 335d760..0c8383b 100644 --- a/docs/features/rename-bind-occurrences/README.md +++ b/docs/features/rename-bind-occurrences/README.md @@ -1,3 +1,5 @@ + + # rename-bind-occurrences — a `bind` file's own occurrence of a renamed name TODO §63.1, from §61.5's QA finding `task_834abda3` @@ -594,3 +596,5 @@ Rulings on QA's findings: Topo rows amended by the lead: the `FACTS_FORMAT` line (**20**) and a new `rename-bind-occurrences ◀──▶ workspace-index / index-persistence / bind-semantics / refactor-rename` handshake row; §2.9-33 unchanged. + + diff --git a/docs/features/safety-net/README.md b/docs/features/safety-net/README.md index e83f79a..22c4480 100644 --- a/docs/features/safety-net/README.md +++ b/docs/features/safety-net/README.md @@ -1,3 +1,5 @@ + + # safety-net ## Goal @@ -390,3 +392,5 @@ Follow-ups spun out of this review (not blockers): - rustfmt.toml has since been added at the repo root (case-tables review), resolving this feature's fmt caveat; the repo-wide normalization commit follows this one. + + diff --git a/docs/features/scan-interleave/README.md b/docs/features/scan-interleave/README.md index a3e8cc3..b2e62fd 100644 --- a/docs/features/scan-interleave/README.md +++ b/docs/features/scan-interleave/README.md @@ -1,3 +1,5 @@ + + # scan-interleave ## Goal @@ -774,3 +776,5 @@ caught up with `started`. The double-publish for a buffer opened mid-scan (half-built answer, then finished answer) is correct by the scope-relative-in-time doctrine and now pinned. Accepted; committed by the lead. + + diff --git a/docs/features/scan-ordering/README.md b/docs/features/scan-ordering/README.md index 2ed95ae..cb20ee2 100644 --- a/docs/features/scan-ordering/README.md +++ b/docs/features/scan-ordering/README.md @@ -1,3 +1,5 @@ + + # scan-ordering ## Goal @@ -892,3 +894,5 @@ cancellation really sends `$/cancelRequest` for a held rename). - Not verified: a real VS Code, in particular whether it drops a rename or format result when the buffer changed while the request was held (QA-8 rests on that for its "Info" grade). + + diff --git a/docs/features/selection-formatting/README.md b/docs/features/selection-formatting/README.md index 04c1b70..8b49162 100644 --- a/docs/features/selection-formatting/README.md +++ b/docs/features/selection-formatting/README.md @@ -1,3 +1,5 @@ + + # selection-formatting ## Goal @@ -346,3 +348,5 @@ hand-written multibyte cases; `--release` gate script `tools/gates.sh`. 6. **Open**: the LSP reply is still one whole-document edit; the engine now knows the exact bytes it replaced, so a minimal edit is possible. Not verified in a running editor. + + diff --git a/docs/features/selection-range/README.md b/docs/features/selection-range/README.md index 91f624e..1fe4047 100644 --- a/docs/features/selection-range/README.md +++ b/docs/features/selection-range/README.md @@ -1,3 +1,5 @@ + + # selection-range ## Goal @@ -225,3 +227,5 @@ identifier", and forty `ExprKind` arms is a follow-up, not a blocker. QA's 860-file corpus sweep (6,880 positions, invariant held everywhere) is exactly the kind of evidence this repo's rounds are supposed to produce. Accepted as shipped. + + diff --git a/docs/features/semantic-lints-on/README.md b/docs/features/semantic-lints-on/README.md index 4c4a897..c08a3e4 100644 --- a/docs/features/semantic-lints-on/README.md +++ b/docs/features/semantic-lints-on/README.md @@ -1,3 +1,5 @@ + + # semantic-lints-on ## Goal @@ -955,3 +957,5 @@ rule never fired on a signal read only by an assertion and cannot now "stop" firing. `constraint-bodies` recorded the identical observation about its own round. `assertions.lint` case 4 pins the unchanged verdict, so the claim is on the record in the direction it is actually true. + + diff --git a/docs/features/semantic-lints/README.md b/docs/features/semantic-lints/README.md index 714b181..bdd6251 100644 --- a/docs/features/semantic-lints/README.md +++ b/docs/features/semantic-lints/README.md @@ -1,3 +1,5 @@ + + # semantic-lints ## Goal @@ -909,3 +911,5 @@ future round's measurements. *(reserved for the lead)* + + diff --git a/docs/features/semantic-tokens-delta/README.md b/docs/features/semantic-tokens-delta/README.md index f7c8738..64493c9 100644 --- a/docs/features/semantic-tokens-delta/README.md +++ b/docs/features/semantic-tokens-delta/README.md @@ -1,3 +1,5 @@ + + # semantic-tokens-delta ## Goal @@ -458,3 +460,5 @@ particular pair breaks the match earlier and that test passes — the trap is real but is caught by the other ten failures. The work log stands as the dev's account, with the QA log as the precise version. Accepted as shipped. + + diff --git a/docs/features/server-lint/README.md b/docs/features/server-lint/README.md index dc6105a..be91aed 100644 --- a/docs/features/server-lint/README.md +++ b/docs/features/server-lint/README.md @@ -1,3 +1,5 @@ + + # server-lint ## Goal @@ -501,3 +503,5 @@ Points reviewed and accepted: Lead note on QA's nit: the work-log's "one annotation line" was two locations — both correct; miscount acknowledged here rather than rewriting the dev's log. + + diff --git a/docs/features/shared-fence-filter/README.md b/docs/features/shared-fence-filter/README.md index 0237a9b..df63ba2 100644 --- a/docs/features/shared-fence-filter/README.md +++ b/docs/features/shared-fence-filter/README.md @@ -1,3 +1,5 @@ + + # shared-fence-filter ## Goal @@ -467,3 +469,5 @@ pinned in fence.rs. The stale committed corpus-check-results.tsv both this round's agents flagged is removed from tracking in this commit (generated artifact, already gitignored; staleness confirmed by two independent QAs). + + diff --git a/docs/features/small-items-3/README.md b/docs/features/small-items-3/README.md index 03d5968..272bb7b 100644 --- a/docs/features/small-items-3/README.md +++ b/docs/features/small-items-3/README.md @@ -1,3 +1,5 @@ + + # small items, round 3 ## Goal @@ -549,3 +551,5 @@ QA's only miss-of-the-dev's-audit (`mismatched-labels`) is a reminder that a grep for a sibling variant is not an exhaustiveness proof; the fix is in. Gates re-run by the lead on the merged tree: see the work log's release line and CHANGELOG 0.40.0. + + diff --git a/docs/features/small-items-4/README.md b/docs/features/small-items-4/README.md index 94d6dd3..33d960b 100644 --- a/docs/features/small-items-4/README.md +++ b/docs/features/small-items-4/README.md @@ -1,3 +1,5 @@ + + # small items, round 4 ## Goal @@ -563,3 +565,5 @@ refusal on legal input — the one class of bug the verifier exists to catch, and it did — fixed at review with the rule the sibling printer already had. Byte-identity: 0 of 860 corpus files and 0 of 3 947 opentitan files differ from 0.43.0. + + diff --git a/docs/features/spans/README.md b/docs/features/spans/README.md index ee455c4..aade1a1 100644 --- a/docs/features/spans/README.md +++ b/docs/features/spans/README.md @@ -1,3 +1,5 @@ + + # spans ## Goal @@ -537,3 +539,5 @@ exercising them for real. Unblocked by this feature: format-off fences and `--lines` range formatting (TODO §2), and every §6 LSP capability. Next foundations: error-tolerant parsing, then the `` `define`` table. + + diff --git a/docs/features/statement-fences/README.md b/docs/features/statement-fences/README.md index 1b96bc3..6689675 100644 --- a/docs/features/statement-fences/README.md +++ b/docs/features/statement-fences/README.md @@ -1,3 +1,5 @@ + + # statement-fences ## Goal @@ -636,3 +638,5 @@ existing property of item-level fences too (a region is source bytes; the formatter never rewrites them) and is not this round's obligation. `format/stmt.rs` at 590 production lines is the next lane's first split. Ships in 0.35.0. + + diff --git a/docs/features/struct-members/README.md b/docs/features/struct-members/README.md index a37af2b..55ae7ae 100644 --- a/docs/features/struct-members/README.md +++ b/docs/features/struct-members/README.md @@ -1,3 +1,5 @@ + + # struct-members ## Goal @@ -532,3 +534,5 @@ direction at a plausible magnitude, timing sub-millisecond, diagnostics clean. - Gates re-run by the lead: fmt clean, clippy zero warnings, 2 810 passed / 0 failed, smoke OK. `docs/topo.md`: §2.9-13 struck as delivered, handshake row added. Ships as 0.25.0 (FACTS_FORMAT 9). + + diff --git a/docs/features/sva-bodies/README.md b/docs/features/sva-bodies/README.md index dd11c8e..f605c30 100644 --- a/docs/features/sva-bodies/README.md +++ b/docs/features/sva-bodies/README.md @@ -1,3 +1,5 @@ + + # SVA bodies as real nodes ## Goal @@ -1213,3 +1215,5 @@ QA experiments now happen in a throwaway worktree, by rule. The P6 server half stays filed under `docs/topo.md` §2.9-18 with the ruling — a `FileFacts::macro_words` census, never a `files_mentioning` rung. The `CENSUS` relative-path note (QA LOW) added at review. Ships in 0.33.0. + + diff --git a/docs/features/testbench-mopup/README.md b/docs/features/testbench-mopup/README.md index 7eed79c..9209735 100644 --- a/docs/features/testbench-mopup/README.md +++ b/docs/features/testbench-mopup/README.md @@ -1,3 +1,5 @@ + + # testbench-mopup ## Goal @@ -631,3 +633,5 @@ strict-superset check (0 of 3,855 previously-passing files' output moved) is stronger than the round claimed for itself and is the right bar for parser waves. Accepted; merged by the lead. OpenTitan sweep: 151 at the wave's start, 43 after this round. + + diff --git a/docs/features/top-rooted-paths/README.md b/docs/features/top-rooted-paths/README.md index d9333e7..3c29d87 100644 --- a/docs/features/top-rooted-paths/README.md +++ b/docs/features/top-rooted-paths/README.md @@ -1,3 +1,5 @@ + + # top-rooted-paths TODO §65.4 (from §65.1 QA F1). Wave 0.62.0 (§65.7), serial after lane A. @@ -681,3 +683,4 @@ warnings.rs` (H1, said once), `lucisv_server/src/state/sources.rs` (F3), the message in `rename/mod.rs`. H2 (completion after `tb.`) deferred as TODO §65.8. + diff --git a/docs/features/type-definition/README.md b/docs/features/type-definition/README.md index 68ba4dd..780bec3 100644 --- a/docs/features/type-definition/README.md +++ b/docs/features/type-definition/README.md @@ -1,3 +1,5 @@ + + # type-definition ## Goal @@ -800,3 +802,5 @@ note: the first QA agent was lost to an infrastructure error mid-run; the resumed agent picked up its uncommitted work, finished the sweep, and found the rejection-worthy bug in the step the first run never reached. Accepted as shipped. + + diff --git a/docs/features/type-hierarchy/README.md b/docs/features/type-hierarchy/README.md index 0fdea28..168608d 100644 --- a/docs/features/type-hierarchy/README.md +++ b/docs/features/type-hierarchy/README.md @@ -1,3 +1,5 @@ + + # type-hierarchy TODO.md §9c: **the class `extends` tree, both directions, over LSP @@ -613,3 +615,5 @@ not a fact about where classes can live. The inheritance-edge-table want is filed beside the instantiation-edge request, correctly, as one future index round. Interface classes stay blocked on the parser and are pinned. Accepted as shipped. + + diff --git a/docs/features/type-name-spans/README.md b/docs/features/type-name-spans/README.md index bc1c55e..c71be2c 100644 --- a/docs/features/type-name-spans/README.md +++ b/docs/features/type-name-spans/README.md @@ -1,3 +1,5 @@ + + # Type-name spans ## Goal @@ -451,3 +453,5 @@ target) are now exact. Census unchanged in every field, 0 of 860 corpus files differ, 200/200 opentitan answers identical for definition, hover and typeDefinition. The `type_def.rs` window lookup is filed as a follow-up in Handshakes, not a regression. + + diff --git a/docs/features/types-decls/README.md b/docs/features/types-decls/README.md index 0843a67..52b5601 100644 --- a/docs/features/types-decls/README.md +++ b/docs/features/types-decls/README.md @@ -1,3 +1,5 @@ + + # types-decls ## Goal @@ -224,3 +226,4 @@ panics, no idempotency breaks. No BLOCKING findings for this cluster. + diff --git a/docs/features/vendor-formal-grammar/README.md b/docs/features/vendor-formal-grammar/README.md index c527e91..1729cfb 100644 --- a/docs/features/vendor-formal-grammar/README.md +++ b/docs/features/vendor-formal-grammar/README.md @@ -1,3 +1,5 @@ + + # vendor-formal-grammar ## Goal @@ -495,3 +497,5 @@ semantic-lints-on (§24) in its worktree under the CLAUDE.md lane rule. - Gates re-run by the lead: fmt clean, clippy zero warnings, 3 092 passed / 0 failed over 46 binaries, corpus 814/820, smoke OK. Ships in 0.30.0 with semantic-lints-on. + + diff --git a/docs/features/verbose-timing/README.md b/docs/features/verbose-timing/README.md index e7667f2..01ab307 100644 --- a/docs/features/verbose-timing/README.md +++ b/docs/features/verbose-timing/README.md @@ -1,3 +1,5 @@ + + # verbose-timing ## Goal @@ -886,3 +888,5 @@ consistent across topo.md, both server docs, both editor READMEs and the manifest. Accepted; committed by the lead. *(reserved for the lead)* + + diff --git a/docs/features/viewport-highlight/README.md b/docs/features/viewport-highlight/README.md index d7f0c06..d55b9f9 100644 --- a/docs/features/viewport-highlight/README.md +++ b/docs/features/viewport-highlight/README.md @@ -1,3 +1,5 @@ + + # viewport-highlight ## Goal @@ -825,3 +827,5 @@ Viewport (`range`) answers now cost the visible lines, not the file. workspace-scope late-open figure the dev's paragraph left out. - Not verified: a running VS Code; the `vscode-languageclient` facts (read from a fetched copy, not the pinned one). + + diff --git a/docs/features/vlog-semantic/README.md b/docs/features/vlog-semantic/README.md index 1370b90..7911f78 100644 --- a/docs/features/vlog-semantic/README.md +++ b/docs/features/vlog-semantic/README.md @@ -1,3 +1,5 @@ + + # vlog-semantic ## Goal @@ -790,3 +792,5 @@ Corpus effect (860 files, both layers): references 101,199 → 102,338, of which 1,139 are new names inside covergroup bodies that bound nothing at all before, and 1,135 of those are answered. See `docs/features/covergroup-bodies/README.md`. + + diff --git a/docs/features/vscode-hierarchy-sidebar/README.md b/docs/features/vscode-hierarchy-sidebar/README.md index dd68335..44bd100 100644 --- a/docs/features/vscode-hierarchy-sidebar/README.md +++ b/docs/features/vscode-hierarchy-sidebar/README.md @@ -1,3 +1,5 @@ + + # vscode-hierarchy-sidebar ## Goal @@ -804,3 +806,5 @@ lead. Credit: codex (implementation), Opus dev (integration fixes), Sonnet QA, the owner's live UI feedback. _(reserved for the lead.)_ + + diff --git a/docs/features/vscode-references-view/README.md b/docs/features/vscode-references-view/README.md index a4bbc9b..8ba6e93 100644 --- a/docs/features/vscode-references-view/README.md +++ b/docs/features/vscode-references-view/README.md @@ -1,3 +1,5 @@ + + # vscode-references-view ## Goal @@ -221,3 +223,4 @@ every runtime module. Still to confirm in a real VS Code: the keybinding winning over the built-in Find All References, the hidden view revealing on first use, and how the highlights render. + diff --git a/docs/features/waiver-files/README.md b/docs/features/waiver-files/README.md index f4eb6f6..ae0def0 100644 --- a/docs/features/waiver-files/README.md +++ b/docs/features/waiver-files/README.md @@ -1,3 +1,5 @@ + + # waiver-files ## Goal @@ -559,3 +561,5 @@ union has to be checked for at every consumer — the fix routes the last consumer through the run. Unused-waiver reporting on the CLI only, after the whole run, stays as ruled. The opentitan demonstration (307 → 306 by one directive, 304 with a whole-file rule waiver) is the behaviour asked for. + + diff --git a/docs/features/walk-cycles/README.md b/docs/features/walk-cycles/README.md index 7a0bf52..6c9c6ee 100644 --- a/docs/features/walk-cycles/README.md +++ b/docs/features/walk-cycles/README.md @@ -1,3 +1,5 @@ + + # walk cycles ## Goal @@ -513,3 +515,5 @@ the right size; the `#(1:2:3)` interior stays §2.9-22's. The one behaviour change QA flagged is corrected above so no user loses an error they had. Both front ends share the walk unchanged in signature, and the byte-identity gate over the corpus is 0 differing. + + diff --git a/docs/features/will-save-wait-until/README.md b/docs/features/will-save-wait-until/README.md index 97ed1c6..b87fd8c 100644 --- a/docs/features/will-save-wait-until/README.md +++ b/docs/features/will-save-wait-until/README.md @@ -1,3 +1,5 @@ + + # will-save-wait-until ## Goal @@ -386,3 +388,5 @@ lucisv.toml and saves in a loop is being told something true each time. The error-on-every-save decision for refusals stands as argued. QA's tab-size-gap tests turned the README's honesty into executable fact, which is the standard here. Accepted as shipped. + + diff --git a/docs/features/work-done-progress/README.md b/docs/features/work-done-progress/README.md index 4b7d28d..e61eea6 100644 --- a/docs/features/work-done-progress/README.md +++ b/docs/features/work-done-progress/README.md @@ -1,3 +1,5 @@ + + # work-done-progress ## Goal @@ -402,3 +404,5 @@ nothing here can cancel, and the end message costing nothing because the index already knew its file count. QA's four gap-closing tests (both interleaving directions, capability-off on all trigger paths, the rootless zero-count startup) complete the surface. Accepted as shipped. + + diff --git a/docs/features/workspace-index/README.md b/docs/features/workspace-index/README.md index 866766b..bd29ec1 100644 --- a/docs/features/workspace-index/README.md +++ b/docs/features/workspace-index/README.md @@ -1,3 +1,5 @@ + + # workspace-index ## Goal @@ -712,3 +714,5 @@ variant when a diagnostic needs it, not speculatively). With this, TODO §6's foundations are all delivered: spans, tolerant parsing, define table, single-file semantics, workspace index. What remains is the server itself and editor packaging. + + diff --git a/docs/manual-acceptance.md b/docs/manual-acceptance.md index 49af450..9fba6c5 100644 --- a/docs/manual-acceptance.md +++ b/docs/manual-acceptance.md @@ -1,3 +1,5 @@ + + # Manual extension-host acceptance — checklist The one test of the VS Code extension that is not `editors/vscode/smoke.js`. @@ -40,3 +42,5 @@ hour. Record the release, the date and any failure in the table at the end. | Release | Date | Result | Failures (step, what happened) | |---|---|---|---| | | | | | + + diff --git a/docs/mcp/PLAN.md b/docs/mcp/PLAN.md index a09fcf0..f30ae6f 100644 --- a/docs/mcp/PLAN.md +++ b/docs/mcp/PLAN.md @@ -1,3 +1,5 @@ + + # MCP for lucisv — the plan Written 2026-09-23 by the lead, at 0.55.0 (`ef867db`), before any MCP code @@ -635,3 +637,5 @@ under two names, and the extension chooses by a setting. snippet. - Census round 5 (lead): tasks a and d on the read-only mode, against round 4's full-mode figures. + + diff --git a/docs/perf/README.md b/docs/perf/README.md index 0822a9f..5e0cb7e 100644 --- a/docs/perf/README.md +++ b/docs/perf/README.md @@ -1,3 +1,5 @@ + + # perf — measured numbers for the paths a keystroke and a hover run through ## Goal @@ -1531,3 +1533,5 @@ lane's: the rescan itself (whole, for one created file), its first ~0.5–2 s before any drain point, `workspace/symbol` (118 ms for one letter at 40k), the hierarchy snapshot (26 MB, 274 ms at 40k), and a 20k-line buffer's reparse per keystroke (~20–27 ms). + + diff --git a/docs/perf/review-052-20260909/README.md b/docs/perf/review-052-20260909/README.md index 8e20734..82400fa 100644 --- a/docs/perf/review-052-20260909/README.md +++ b/docs/perf/review-052-20260909/README.md @@ -1,3 +1,5 @@ + + # Independent 0.52.0 review evidence — 2026-09-09 [Review, findings and assessment](../../performance_052_review.md) · @@ -71,3 +73,5 @@ new scratch proof directory for a rerun; it deliberately does not silently reuse or delete an earlier proof. The normal benchmark driver similarly needs the F2 priming correction before its warm-load rows can be trusted on fresh storage. Exact accepted and excluded commands are retained in the run logs. + + diff --git a/docs/perf/review-052-20260909/run.py b/docs/perf/review-052-20260909/run.py index 492d3b8..932256b 100644 --- a/docs/perf/review-052-20260909/run.py +++ b/docs/perf/review-052-20260909/run.py @@ -1,3 +1,5 @@ +# Author: Guoliang Chen, a Senior Digital Design Engineer + import subprocess,os,json,time,hashlib from pathlib import Path root=Path('/Users/guoliangchen/repo/verilogrustformatter'); out=Path('/tmp/lucisv-perf-review-20260909'); corpus=Path('/Users/guoliangchen/repo/opentitan') @@ -18,3 +20,5 @@ for i,phase in enumerate(['offerkinds','offerqueue','offeredit','renametrace','s with (out/'runs.jsonl').open('a') as f:f.write(json.dumps(r)+'\n') print('END',phase,label,p.returncode,flush=True) if p.returncode or not r['corpus_unchanged']:raise RuntimeError(r) + +# Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/docs/perf/review-052-20260909/symlink_lifecycle.py b/docs/perf/review-052-20260909/symlink_lifecycle.py index 5ad6593..a2c61d7 100644 --- a/docs/perf/review-052-20260909/symlink_lifecycle.py +++ b/docs/perf/review-052-20260909/symlink_lifecycle.py @@ -1,3 +1,5 @@ +# Author: Guoliang Chen, a Senior Digital Design Engineer + import sys,json,pathlib sys.path.insert(0,'/Users/guoliangchen/repo/verilogrustformatter/tools/perf') from lspclient import Session,uri @@ -18,3 +20,5 @@ for label,server in [('0.51.0',out/'reference/target/release/lucisv-server'),('0 prepare_after=s.request('textDocument/prepareRename',params)[1] s.drain() print(json.dumps(dict(label=label,trial=trial,answer=answer,prepare=prepare,after_rescan=after,prepare_after_rescan=prepare_after,logs=s.log_messages)),flush=True) + +# Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/docs/perf/review-052-20260909/symlink_probe.py b/docs/perf/review-052-20260909/symlink_probe.py index d7c3f4e..99f541c 100644 --- a/docs/perf/review-052-20260909/symlink_probe.py +++ b/docs/perf/review-052-20260909/symlink_probe.py @@ -1,3 +1,5 @@ +# Author: Guoliang Chen, a Senior Digital Design Engineer + import sys,json,pathlib sys.path.insert(0,'/Users/guoliangchen/repo/verilogrustformatter/tools/perf') from lspclient import Session,uri @@ -14,3 +16,5 @@ for label,server in [('0.51.0',out/'reference/target/release/lucisv-server'),('0 answer=s.request('textDocument/definition',params)[1] s.drain() print(json.dumps(dict(label=label,trial=trial,answer=answer,logs=s.log_messages)),flush=True) + +# Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/docs/perf/review-052-20260909/verify.py b/docs/perf/review-052-20260909/verify.py index 4b7a2cd..13a7e97 100644 --- a/docs/perf/review-052-20260909/verify.py +++ b/docs/perf/review-052-20260909/verify.py @@ -1,3 +1,5 @@ +# Author: Guoliang Chen, a Senior Digital Design Engineer + import subprocess,pathlib,json,time,os out=pathlib.Path('/tmp/lucisv-perf-review-20260909') commands=[('warm-priming-proof',['python3',str(out/'warm_priming_probe.py')]),('symlink-lifecycle',['python3',str(out/'symlink_lifecycle.py')]),('fmt',['cargo','fmt','--all','--','--check']),('clippy',['cargo','clippy','--workspace','--all-targets','--locked','--','-D','warnings']),('tests',['cargo','test','--workspace','--locked'])] @@ -9,3 +11,5 @@ for name,args in commands: with (out/(name+'.log')).open('w') as f:r=subprocess.run(cmd,stdout=f,stderr=subprocess.STDOUT,env=dict(os.environ,PYTHONDONTWRITEBYTECODE='1')) with (out/'verification-runs.jsonl').open('a') as f:f.write(json.dumps(dict(name=name,command=cmd,exit=r.returncode,start=started,end=time.time()))+'\n') print('END',name,r.returncode,flush=True) + +# Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/docs/perf/review-052-20260909/warm_priming_probe.py b/docs/perf/review-052-20260909/warm_priming_probe.py index 41a9ae4..e3af95b 100644 --- a/docs/perf/review-052-20260909/warm_priming_probe.py +++ b/docs/perf/review-052-20260909/warm_priming_probe.py @@ -1,3 +1,5 @@ +# Author: Guoliang Chen, a Senior Digital Design Engineer + import sys,pathlib,argparse,json,statistics sys.path.insert(0,'/Users/guoliangchen/repo/verilogrustformatter/tools/perf') import harness,phases_r4,sites @@ -11,3 +13,5 @@ for trial in range(2): with Session(server,root,str(store),scope={'index':{'scope':'workspace'}},verbose=True,cold=False) as s: r=phases_r4.one_session(s,100,35,phases_r4.rtl_files(1),harness.at(sites.TB,' aes #(',1,2)) print(json.dumps(dict(trial=trial,cache_directory_existed=existed,requested_cold=False,scans=r['scans'],median_ms=statistics.median(a['ms'] for a in r['answers']),max_ms=max(a['ms'] for a in r['answers']))),flush=True) + +# Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/docs/perf/take5-baseline/README.md b/docs/perf/take5-baseline/README.md index 8b675e4..796752c 100644 --- a/docs/perf/take5-baseline/README.md +++ b/docs/perf/take5-baseline/README.md @@ -1,3 +1,5 @@ + + # Take 5 baseline evidence — 0.50.0, bbdbfe9 Read [the analysis and plan](../../performance_take5.md) and [implementation tracker](../take5-tracking.md). These are measured inputs to future implementation; no optimization is included. @@ -87,3 +89,5 @@ for trial in range(1,4): ``` The CLI probe's summary matcher missed `found N violations`; these summary fields were filled from the saved raw logs afterward. Timings, exit codes, hashes and memory figures are unmodified. + + diff --git a/docs/perf/take5-review-20260908/README.md b/docs/perf/take5-review-20260908/README.md index 7b657c0..68c2c20 100644 --- a/docs/perf/take5-review-20260908/README.md +++ b/docs/perf/take5-review-20260908/README.md @@ -1,3 +1,5 @@ + + # Independent 0.51.0 performance review evidence Collected 2026-09-08. Interpretation and follow-up priorities are in @@ -53,3 +55,5 @@ zero placeholder, not an executed command measurement; use `execute` instead. `refused` means no edit was produced. RSS is KiB, CLI peak RSS is bytes, and CLI process timings are seconds. Three samples support prioritization, not percentile or significance claims. + + diff --git a/docs/perf/take5-review-20260908/cli_probe.py b/docs/perf/take5-review-20260908/cli_probe.py index ad68e7e..20890f7 100644 --- a/docs/perf/take5-review-20260908/cli_probe.py +++ b/docs/perf/take5-review-20260908/cli_probe.py @@ -1,3 +1,5 @@ +# Author: Guoliang Chen, a Senior Digital Design Engineer + import subprocess, pathlib, os, time, json, re, shutil, hashlib root=pathlib.Path('/Users/guoliangchen/repo/verilogrustformatter') out=pathlib.Path('/tmp/lucisv-perf-review-20260908'); corpus='/Users/guoliangchen/repo/opentitan' @@ -27,3 +29,5 @@ for trial in range(1,4): shutil.rmtree(cache,ignore_errors=True) for warmth in ['cold','warm']: run('0.51.0','format-'+warmth,trial,['format','--check','--cache-dir',str(cache)]) + +# Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/docs/perf/take5-review-20260908/post.py b/docs/perf/take5-review-20260908/post.py index 8ec5a37..0269848 100644 --- a/docs/perf/take5-review-20260908/post.py +++ b/docs/perf/take5-review-20260908/post.py @@ -1,3 +1,5 @@ +# Author: Guoliang Chen, a Senior Digital Design Engineer + import subprocess, pathlib, os, json, time root=pathlib.Path('/Users/guoliangchen/repo/verilogrustformatter'); out=pathlib.Path('/tmp/lucisv-perf-review-20260908') commands=[('cli-probe',['python3',str(out/'cli_probe.py')])] @@ -13,3 +15,5 @@ for name,cmd in commands: with (out/'post-runs.jsonl').open('a') as f:f.write(json.dumps(dict(name=name,command=cmd,exit=r.returncode,start=start,end=time.time()))+'\n') print('END',name,r.returncode,flush=True) if r.returncode: raise RuntimeError(name) + +# Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/docs/perf/take5-review-20260908/run.py b/docs/perf/take5-review-20260908/run.py index fc75005..8447170 100644 --- a/docs/perf/take5-review-20260908/run.py +++ b/docs/perf/take5-review-20260908/run.py @@ -1,3 +1,5 @@ +# Author: Guoliang Chen, a Senior Digital Design Engineer + import subprocess,os,json,time,hashlib from pathlib import Path root=Path('/Users/guoliangchen/repo/verilogrustformatter'); out=Path('/tmp/lucisv-perf-review-20260908'); corpus=Path('/Users/guoliangchen/repo/opentitan') @@ -18,3 +20,5 @@ for i,phase in enumerate(['baseline','offerkinds','offerqueue','offeredit','tail with (out/'runs.jsonl').open('a') as f:f.write(json.dumps(r)+'\n') print('END',phase,label,p.returncode,flush=True) if p.returncode or not r['corpus_unchanged']:raise RuntimeError(r) + +# Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com diff --git a/docs/perf/take5-tracking.md b/docs/perf/take5-tracking.md index 540a3ba..65e06bd 100644 --- a/docs/perf/take5-tracking.md +++ b/docs/perf/take5-tracking.md @@ -1,3 +1,5 @@ + + # Performance implementation tracker — take 5 **Status (2026-09-08): complete.** Every stage the plan sequenced has run and been measured — P0; P1a, P1b, P1c; P2a, P2b, P2c; handshake 33 and P2d (measured, no narrowing shipped: the proof was negative) with the `warnings` dedupe; P3; P4a and P4b (three passes). P5 stays deferred (no stage's measurement reopened it). Baseline cells are the owner's and untouched; REF cells are the P0 re-take; every later cell names its experiment. @@ -2850,3 +2852,5 @@ from `v0.52.0` for this comparison. each" condition; measured collateral today is nil (±1.4 % on all six rows). - **QA result and lead review link:** pending — `docs/features/perf5r-scope-reuse/README.md`. + + diff --git a/docs/performance.md b/docs/performance.md index ea392ec..5e2bfb8 100644 --- a/docs/performance.md +++ b/docs/performance.md @@ -1,3 +1,5 @@ + + # lucisv-server LSP performance against opentitan Measured 2026-08-28 on the real opentitan checkout, driving the real server @@ -485,3 +487,5 @@ All under | `logs/completion.log`, `logs/keystroke.log`, `logs/typing.log` | §6d | | `logs/progress-ws-cold.log` | the multi-bar progress trace behind §4's note | | `caps.txt` | full `initialize` result (advertised capabilities) | + + diff --git a/docs/performance_052_review.md b/docs/performance_052_review.md index 3a46eaa..92666c2 100644 --- a/docs/performance_052_review.md +++ b/docs/performance_052_review.md @@ -1,3 +1,5 @@ + + # Independent review of 0.52.0 — performance follow-up implementation Reviewed 2026-09-09 at `3ceba21bb2ef4404a188b076301b170af862075b`, against 0.51.0 at `126a6bcdac99e940534c87bce94a5269cdc53ae4`. @@ -132,3 +134,5 @@ This review covers menu filters, queued navigation, first-after-edit requests, e **Independent validation:** `cargo fmt --all -- --check` and `cargo clippy --workspace --all-targets --locked -- -D warnings` passed. The default full workspace suite (`cargo test --workspace --locked`) finished with **4,374 passed, 0 failed, 45 ignored**, including doc-test result blocks. The ignored tests were not forced on. No guard limit was hit. All **84 comparable non-load outcome rows** matched on their recorded status, fingerprint, message, titles/shapes, edit/file/create/result counts and warnings where present. This is not a new full rename-warning oracle run; the implementation's wider warning checks remain in its own QA evidence. The new alias reproduction fails startup equivalence despite the existing suite passing, demonstrating a coverage gap. Final corpus status/hashes and both release-binary hashes were unchanged. One-minute load samples during the initial paired phases were approximately 3.87–5.98; small timing movements are not treated as established regressions. + + diff --git a/docs/performance_take2.md b/docs/performance_take2.md index a8659ef..76fa449 100644 --- a/docs/performance_take2.md +++ b/docs/performance_take2.md @@ -1,3 +1,5 @@ + + # lucisv-server LSP performance against opentitan — take 2 Same corpus, same scenarios, same client, same machine as @@ -675,3 +677,5 @@ All under | `logs/midscan.log` | §3, the interleaved-scan probe | | `logs/progress-ws-cold.log` | §7, the progress/logMessage census | | `caps.txt` | full `initialize` result (advertised capabilities) | + + diff --git a/docs/performance_take3.md b/docs/performance_take3.md index ad7a1a7..942138f 100644 --- a/docs/performance_take3.md +++ b/docs/performance_take3.md @@ -1,3 +1,5 @@ + + # lucisv performance against opentitan — take 3 Same corpus, same scenarios, same machine as @@ -783,3 +785,5 @@ written; the numbers here are the record): | `sweep.sh`, `sweeptable.py` | §7 — the timed CLI sweeps and their table | | `outcomes.sh` | §7a — the per-file outcome runs for the 0.39.0 → 0.43.0 diff | | `results.jsonl`, `logs/*.log` | every measurement, machine-readable | + + diff --git a/docs/performance_take4.md b/docs/performance_take4.md index 8b5203b..de95872 100644 --- a/docs/performance_take4.md +++ b/docs/performance_take4.md @@ -1,3 +1,5 @@ + + # lucisv performance against opentitan — take 4 Same corpus, same scenarios, same machine as [`performance.md`](performance.md) @@ -966,3 +968,5 @@ The raw measurements are under | `outcomes/