Release 0.66.2: every source file names its author
ci / checks (push) Successful in 1m0s
ci / corpus (push) Successful in 18s
ci / linux (push) Successful in 6m4s
release / build-and-publish (push) Successful in 5m31s

Every tracked file that can carry a comment (880 of them) now opens with
"Author: Guoliang Chen, a Senior Digital Design Engineer" and closes with
"Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love,
luciochen.com", in the file's own comment syntax. No behaviour change: the
diff outside the version bump and changelogs is comment lines only.

- tools/stamp_author.py: writes the lines; idempotent, `--check` lists
  what is missing. Headers go under a shebang and under Markdown front
  matter.
- Left alone: test fixtures, cases and snapshots (byte-exact inputs), JSON
  and JSONL, logs, images, lockfiles, docs/site/dist (regenerated) and the
  LICENSE files (already carry the copyright line).
- tools/linux_check.sh: --help reads its header from line 3, now that the
  author line sits under the shebang.
- tools/gates.sh green on this tree: 5 545 tests, corpus 814/6 as before.

Co-Authored-By: Claude Mythos 5.2 <[email protected]>
This commit is contained in:
Guoliang ChenandClaude Mythos 5.2 committed 2026-11-24 12:11:09 -08:00
1 parent 3823b85667
commit 71d13b5fbe
883 files changed
+3620 -15

No files matched your search

+4
View File
@@ -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
+4
View File
@@ -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<Comment>,
pub intersect: Option<Vec<ExprItem>>,
}
// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com
+4
View File
@@ -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<Comment>,
}
// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com
+4
View File
@@ -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
+4
View File
@@ -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::<Stmt>() <= 552, "Stmt is {} bytes", size_of::<Stmt>());
}
}
// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com
+4
View File
@@ -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<Expr>,
}
// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com
@@ -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<Comment>,
}
// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com
+4
View File
@@ -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
+4
View File
@@ -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
+4
View File
@@ -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
+4
View File
@@ -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
+4
View File
@@ -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
+4
View File
@@ -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
@@ -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
+4
View File
@@ -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
@@ -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
+4
View File
@@ -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
+4
View File
@@ -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
@@ -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
+4
View File
@@ -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
@@ -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
+4
View File
@@ -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
@@ -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
+4
View File
@@ -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
+4
View File
@@ -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
+4
View File
@@ -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
@@ -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
+4
View File
@@ -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
@@ -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
+4
View File
@@ -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
+4
View File
@@ -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
+4
View File
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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<Stmt> {
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
@@ -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
@@ -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
@@ -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::<Vec<_>>(), ["i", "", "k"]);
}
// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com
@@ -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
+4
View File
@@ -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
@@ -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
+4
View File
@@ -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
+4
View File
@@ -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
+4
View File
@@ -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