refactor: prepare for linting on syntaxes (#1640)

* refactor: for query

* refactor: for diag

* feat: lazy hash expr info

* feat: hash resolves

* fix: update snapshot
This commit is contained in:
Myriad-Dreamin 2025-04-09 04:10:47 +08:00 committed by GitHub
parent 01afa463f4
commit 054d3aecc0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 261 additions and 241 deletions

View file

@ -309,7 +309,7 @@ pub(crate) struct Tokenizer {
pos_offset: usize,
output: Vec<SemanticToken>,
source: Source,
ei: Arc<ExprInfo>,
ei: ExprInfo,
encoding: PositionEncoding,
allow_multiline_token: bool,
@ -320,7 +320,7 @@ pub(crate) struct Tokenizer {
impl Tokenizer {
pub fn new(
source: Source,
ei: Arc<ExprInfo>,
ei: ExprInfo,
allow_multiline_token: bool,
encoding: PositionEncoding,
) -> Self {