repo stringlengths 6 65 | file_url stringlengths 81 311 | file_path stringlengths 6 227 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:31:58 2026-01-04 20:25:31 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_rowan/src/ast/mutation.rs | crates/biome_rowan/src/ast/mutation.rs | use std::ops;
use crate::{AstNode, AstNodeList, AstSeparatedList, SyntaxToken};
pub trait AstNodeExt: AstNode {
/// Return a new version of this node with the node `prev_node` replaced with `next_node`
///
/// `prev_node` can be a direct child of this node, or an indirect child through any descendant node... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_rowan/src/ast/mod.rs | crates/biome_rowan/src/ast/mod.rs | //! AST definitions for converting untyped syntax nodes into typed AST nodes.
//!
//! Every field of every AST node is optional, this is to allow the parser to recover
//! from any error and produce an ast from any source code. If you don't want to account for
//! optionals for everything, you can use ...
use biome_te... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | true |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_rowan/src/green/node_cache.rs | crates/biome_rowan/src/green/node_cache.rs | use biome_text_size::TextSize;
use hashbrown::hash_map::{RawEntryMut, RawOccupiedEntryMut, RawVacantEntryMut};
use rustc_hash::FxHasher;
use std::fmt::{self, Debug, Formatter};
use std::hash::{BuildHasherDefault, Hash, Hasher};
use std::marker::PhantomData;
use std::ops::Not;
use std::ptr::NonNull;
use crate::green::S... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_rowan/src/green/node.rs | crates/biome_rowan/src/green/node.rs | use std::convert::TryFrom;
use std::fmt::Formatter;
use std::iter::Enumerate;
use std::{
borrow::{Borrow, Cow},
fmt,
iter::FusedIterator,
mem::{self, ManuallyDrop},
ops, ptr, slice,
};
#[cfg(target_pointer_width = "64")]
use crate::utility_types::static_assert;
use crate::{
GreenToken, NodeOrT... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_rowan/src/green/element.rs | crates/biome_rowan/src/green/element.rs | use crate::{
GreenNodeData, NodeOrToken, TextSize,
green::{GreenNode, GreenToken, RawSyntaxKind},
};
use std::borrow::Cow;
use super::GreenTokenData;
pub(crate) type GreenElement = NodeOrToken<GreenNode, GreenToken>;
pub(crate) type GreenElementRef<'a> = NodeOrToken<&'a GreenNodeData, &'a GreenTokenData>;
im... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_rowan/src/green/trivia.rs | crates/biome_rowan/src/green/trivia.rs | use crate::TriviaPiece;
use crate::arc::{Arc, HeaderSlice, ThinArc};
use biome_text_size::TextSize;
use std::fmt::Formatter;
use std::mem::ManuallyDrop;
use std::{fmt, mem, ptr};
#[derive(PartialEq, Eq, Hash)]
pub(crate) struct GreenTriviaHead {
#[cfg(feature = "countme")]
_c: countme::Count<GreenTrivia>,
}
#... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_rowan/src/green/token.rs | crates/biome_rowan/src/green/token.rs | use std::{
borrow::Borrow,
fmt,
mem::{self, ManuallyDrop},
ops, ptr,
};
use crate::green::trivia::GreenTrivia;
use crate::{
TextSize,
arc::{Arc, HeaderSlice, ThinArc},
green::RawSyntaxKind,
};
#[derive(PartialEq, Eq, Hash)]
struct GreenTokenHead {
kind: RawSyntaxKind,
leading: Gree... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_rowan/benches/mutation.rs | crates/biome_rowan/benches/mutation.rs | use biome_rowan::{
AstNode, AstNodeExt, BatchMutationExt, SyntaxNodeCast,
raw_language::{LiteralExpression, RawLanguageKind, RawLanguageRoot, RawSyntaxTreeBuilder},
};
/// ```
/// 0: ROOT@0..1
/// 0: LITERAL_EXPRESSION@0..1
/// 0: STRING_TOKEN@0..1 "a" [] []
/// ```
fn tree_one(a: &str) -> (RawLang... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/src/adapters.rs | crates/biome_diagnostics/src/adapters.rs | //! This modules exposes a number of "adapter diagnostics" that wrap error types
//! such as [std::error::Error] or [std::io::Error] in newtypes implementing the
//! [Diagnostic] trait
#[cfg(feature = "std")]
use std::io;
use biome_console::{
fmt::{self},
markup,
};
use crate::{Category, Diagnostic, category... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/src/serde.rs | crates/biome_diagnostics/src/serde.rs | use std::io;
use biome_console::{MarkupBuf, fmt, markup};
use biome_rowan::TextSize;
use biome_text_edit::TextEdit;
use biome_text_size::TextRange;
use serde::{
Deserialize, Deserializer, Serialize, Serializer,
de::{self, SeqAccess},
};
use crate::{
Advices as _, Backtrace, Category, DiagnosticTags, LogCa... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/src/lib.rs | crates/biome_diagnostics/src/lib.rs | #![deny(clippy::use_self)]
#![deny(rust_2018_idioms)]
use ::serde::{Deserialize, Serialize};
mod adapters;
pub mod advice;
pub mod context;
pub mod diagnostic;
pub mod display;
pub mod display_github;
pub mod error;
pub mod location;
pub mod panic;
pub mod serde;
#[cfg(feature = "camino")]
pub use adapters::CaminoEr... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/src/panic.rs | crates/biome_diagnostics/src/panic.rs | use std::panic::UnwindSafe;
#[derive(Default, Debug)]
pub struct PanicError {
pub info: String,
pub backtrace: Option<std::backtrace::Backtrace>,
}
thread_local! {
static LAST_PANIC: std::cell::Cell<Option<PanicError>> = const { std::cell::Cell::new(None) };
}
impl std::fmt::Display for PanicError {
... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/src/display_github.rs | crates/biome_diagnostics/src/display_github.rs | use crate::display::frame::SourceFile;
use crate::display::markup_to_string;
use crate::{Diagnostic, Resource, Severity, diagnostic::internal::AsDiagnostic};
use biome_console::{MarkupBuf, fmt, markup};
use biome_text_size::{TextRange, TextSize};
use std::io;
/// Helper struct for printing a diagnostic as markup into ... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/src/error.rs | crates/biome_diagnostics/src/error.rs | //! The `error` module contains the implementation of [Error], a dynamic
//! container struct for any type implementing [Diagnostic].
//!
//! We reduce the size of `Error` by using `Box<Box<dyn Diagnostic>>` (a thin
//! pointer to a fat pointer) rather than `Box<dyn Diagnostic>` (a fat
//! pointer), in order to make re... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/src/display.rs | crates/biome_diagnostics/src/display.rs | use biome_console::fmt::MarkupElements;
use biome_console::{
HorizontalLine, Markup, MarkupBuf, MarkupElement, MarkupNode, Padding, fmt, markup,
};
use biome_text_edit::TextEdit;
use std::path::Path;
use std::{env, io, iter};
use terminal_size::terminal_size;
use unicode_width::UnicodeWidthStr;
mod backtrace;
mod ... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | true |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/src/advice.rs | crates/biome_diagnostics/src/advice.rs | use crate::Applicability;
use crate::{
Location,
display::Backtrace,
location::{AsResource, AsSourceCode, AsSpan},
};
use biome_console::fmt::{self, Display};
use biome_console::{MarkupBuf, markup};
use biome_text_edit::TextEdit;
use serde::{Deserialize, Serialize};
use std::io;
/// Trait implemented by ty... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/src/location.rs | crates/biome_diagnostics/src/location.rs | use biome_text_size::{TextRange, TextSize};
use serde::{Deserialize, Serialize};
use std::fmt::Debug;
use std::ops::Range;
use std::{borrow::Borrow, ops::Deref};
/// Represents the location of a diagnostic in a resource.
#[derive(Debug, Default, Clone, Copy)]
pub struct Location<'a> {
/// The resource this diagnos... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/src/context.rs | crates/biome_diagnostics/src/context.rs | use biome_console::fmt;
use crate::context::internal::{SeverityDiagnostic, TagsDiagnostic};
use crate::{
Category, DiagnosticTags, Error, Resource, Severity, SourceCode,
diagnostic::internal::AsDiagnostic,
location::{AsResource, AsSourceCode, AsSpan},
};
/// This trait is implemented for all types impleme... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/src/suggestion.rs | crates/biome_diagnostics/src/suggestion.rs | use ::serde::{Deserialize, Serialize};
use biome_console::MarkupBuf;
use biome_rowan::TextRange;
use biome_text_edit::TextEdit;
/// Indicates how a tool should manage this suggestion.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash, Serialize, Deserialize)]
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/src/diagnostic.rs | crates/biome_diagnostics/src/diagnostic.rs | use std::{
convert::Infallible,
fmt::{Debug, Display},
io,
ops::{BitOr, BitOrAssign},
str::FromStr,
};
use enumflags2::{BitFlags, bitflags, make_bitflags};
use serde::{Deserialize, Serialize};
use biome_console::{fmt, markup};
use crate::{Category, Location, Visit};
/// The `Diagnostic` trait de... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/src/display/diff.rs | crates/biome_diagnostics/src/display/diff.rs | use std::{
collections::{BTreeMap, BTreeSet},
io, slice,
};
use biome_console::{MarkupElement, fmt, markup};
use biome_text_edit::{ChangeTag, CompressedOp, TextEdit};
use super::frame::{
CODE_FRAME_CONTEXT_LINES, IntoIter, OneIndexed, PrintInvisiblesOptions, calculate_print_width,
print_invisibles, te... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | true |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/src/display/frame.rs | crates/biome_diagnostics/src/display/frame.rs | use std::{
borrow::Cow,
io,
iter::FusedIterator,
num::NonZeroUsize,
ops::{Bound, RangeBounds},
};
use biome_console::{fmt, markup};
use biome_text_size::{TextLen, TextRange, TextSize};
use unicode_width::UnicodeWidthChar;
use crate::{
LineIndexBuf, Location,
location::{BorrowedSourceCode, ... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/src/display/backtrace.rs | crates/biome_diagnostics/src/display/backtrace.rs | use std::{borrow::Cow, path::PathBuf};
use std::{cell::Cell, fmt::Write as _, io, os::raw::c_void, path::Path, slice};
use biome_console::{fmt, markup};
use serde::{Deserialize, Serialize};
use super::IndentWriter;
/// The [Backtrace] type can be used to capture a native Rust stack trace, to
/// be displayed a diagn... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/src/display/message.rs | crates/biome_diagnostics/src/display/message.rs | use biome_console::fmt::{Formatter, Termcolor};
use biome_console::{MarkupBuf, markup};
use serde::{Deserialize, Serialize};
use termcolor::NoColor;
/// Convenient type that can be used when message and descriptions match, and they need to be
/// displayed using different formatters
///
/// ## Examples
///
/// ```
///... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/tests/disagnostics.rs | crates/biome_diagnostics/tests/disagnostics.rs | use biome_console::fmt::{Formatter, HTML};
use biome_console::markup;
use biome_diagnostics::{DiagnosticTags, MessageAndDescription, PrintDiagnostic};
use biome_diagnostics_macros::Diagnostic;
use biome_text_size::TextRange;
#[derive(Diagnostic, Debug)]
#[diagnostic(
severity = Error,
category = "check"
)]
str... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/tests/macros.rs | crates/biome_diagnostics/tests/macros.rs | #[test]
fn test_macros() {
let t = trybuild::TestCases::new();
t.compile_fail("tests/macros/*.rs");
}
| rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/tests/macros/location_eq.rs | crates/biome_diagnostics/tests/macros/location_eq.rs | use biome_diagnostics::Diagnostic;
#[derive(Debug, Diagnostic)]
struct TestDiagnostic {
#[location = Identifier]
location: (),
}
fn main() {}
| rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/tests/macros/category_ident.rs | crates/biome_diagnostics/tests/macros/category_ident.rs | use biome_diagnostics::Diagnostic;
#[derive(Debug, Diagnostic)]
#[diagnostic(category = Identifier)]
struct TestDiagnostic {}
fn main() {}
| rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/tests/macros/severity_lit_str.rs | crates/biome_diagnostics/tests/macros/severity_lit_str.rs | use biome_diagnostics::Diagnostic;
#[derive(Debug, Diagnostic)]
#[diagnostic(severity = "Error")]
struct TestDiagnostic {}
fn main() {}
| rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/tests/macros/unknown_message_attr.rs | crates/biome_diagnostics/tests/macros/unknown_message_attr.rs | use biome_diagnostics::Diagnostic;
#[derive(Debug, Diagnostic)]
#[diagnostic(message(unknown))]
struct TestDiagnostic {}
fn main() {}
| rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/tests/macros/unknown_container_attr.rs | crates/biome_diagnostics/tests/macros/unknown_container_attr.rs | use biome_diagnostics::Diagnostic;
#[derive(Debug, Diagnostic)]
#[diagnostic(unknown_attr)]
struct TestDiagnostic {}
fn main() {}
| rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/tests/macros/unknown_location_attr.rs | crates/biome_diagnostics/tests/macros/unknown_location_attr.rs | use biome_diagnostics::Diagnostic;
#[derive(Debug, Diagnostic)]
struct TestDiagnostic {
#[location(unknown)]
location: (),
}
fn main() {}
| rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/tests/macros/description_syntax_error.rs | crates/biome_diagnostics/tests/macros/description_syntax_error.rs | use biome_diagnostics::Diagnostic;
#[derive(Debug, Diagnostic)]
#[diagnostic(message(description = "text {unclosed"))]
struct TestDiagnostic {}
fn main() {}
| rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/tests/macros/category_paren.rs | crates/biome_diagnostics/tests/macros/category_paren.rs | use biome_diagnostics::Diagnostic;
#[derive(Debug, Diagnostic)]
#[diagnostic(message(description = Ident))]
struct TestDiagnostic {}
fn main() {}
| rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/tests/macros/severity_paren.rs | crates/biome_diagnostics/tests/macros/severity_paren.rs | use biome_diagnostics::Diagnostic;
#[derive(Debug, Diagnostic)]
#[diagnostic(severity(Error))]
struct TestDiagnostic {}
fn main() {}
| rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/tests/macros/description_paren.rs | crates/biome_diagnostics/tests/macros/description_paren.rs | use biome_diagnostics::Diagnostic;
#[derive(Debug, Diagnostic)]
#[diagnostic(message(description("description")))]
struct TestDiagnostic {}
fn main() {}
| rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/tests/macros/tags_comma.rs | crates/biome_diagnostics/tests/macros/tags_comma.rs | use biome_diagnostics::Diagnostic;
#[derive(Debug, Diagnostic)]
#[diagnostic(tags(Identifier, Identifier))]
struct TestDiagnostic {}
fn main() {}
| rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/tests/macros/error_union.rs | crates/biome_diagnostics/tests/macros/error_union.rs | use biome_diagnostics::Diagnostic;
#[derive(Diagnostic)]
union ErrorUnion {
int: u32,
float: f32,
}
fn main() {}
| rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/tests/macros/unknown_field_attr.rs | crates/biome_diagnostics/tests/macros/unknown_field_attr.rs | use biome_diagnostics::Diagnostic;
#[derive(Debug, Diagnostic)]
struct TestDiagnostic {
#[unknown_attr]
field: bool,
}
fn main() {}
| rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/tests/macros/description_ident.rs | crates/biome_diagnostics/tests/macros/description_ident.rs | use biome_diagnostics::Diagnostic;
#[derive(Debug, Diagnostic)]
#[diagnostic(category = Identifier)]
struct TestDiagnostic {}
fn main() {}
| rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/tests/macros/tags_eq.rs | crates/biome_diagnostics/tests/macros/tags_eq.rs | use biome_diagnostics::Diagnostic;
#[derive(Debug, Diagnostic)]
#[diagnostic(tags = Identifier)]
struct TestDiagnostic {}
fn main() {}
| rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/examples/serde.rs | crates/biome_diagnostics/examples/serde.rs | use biome_console::{ConsoleExt, EnvConsole, markup};
use biome_diagnostics::{Diagnostic, LineIndexBuf, PrintDiagnostic, Resource, Result, SourceCode};
use biome_rowan::{TextRange, TextSize};
use serde_json::Error;
#[derive(Debug, Diagnostic)]
#[diagnostic(category = "internalError/io", tags(INTERNAL))]
struct SerdeDia... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/examples/fs.rs | crates/biome_diagnostics/examples/fs.rs | use std::io;
use biome_console::{ConsoleExt, EnvConsole, fmt, markup};
use biome_diagnostics::{
Advices, Diagnostic, Location, LogCategory, PrintDiagnostic, Resource, SourceCode, Visit,
};
use biome_rowan::{TextRange, TextSize};
#[derive(Debug, Diagnostic)]
#[diagnostic(category = "args/fileNotFound", message = "... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/examples/cli.rs | crates/biome_diagnostics/examples/cli.rs | use std::io;
use biome_console::{ConsoleExt, EnvConsole, markup};
use biome_diagnostics::{Advices, Diagnostic, LogCategory, PrintDiagnostic, Resource, Visit};
use biome_rowan::{TextRange, TextSize};
#[derive(Debug, Diagnostic)]
#[diagnostic(
category = "flags/invalid",
message(
description = "Unknown ... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics/examples/lint.rs | crates/biome_diagnostics/examples/lint.rs | use std::io;
use biome_console::{ConsoleExt, EnvConsole, markup};
use biome_diagnostics::{
Advices, Diagnostic, Location, LogCategory, PrintDiagnostic, Resource, SourceCode, Visit,
};
use biome_rowan::{TextRange, TextSize};
use biome_text_edit::TextEdit;
#[derive(Debug, Diagnostic)]
#[diagnostic(
category = "... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_package/src/diagnostics.rs | crates/biome_package/src/diagnostics.rs | use biome_console::markup;
use biome_diagnostics::console::fmt::Display;
use biome_diagnostics::location::AsSpan;
use biome_diagnostics::{Diagnostic, DiagnosticTags, MessageAndDescription};
use biome_text_size::TextRange;
use serde::{Deserialize, Serialize};
#[derive(Debug, Diagnostic, Deserialize, Serialize, Clone)]
... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_package/src/lib.rs | crates/biome_package/src/lib.rs | #![deny(clippy::use_self)]
mod diagnostics;
mod license;
mod node_js_package;
pub mod node_semver;
pub use crate::diagnostics::{ProjectAnalyzeDiagnostic, ProjectDiagnostic};
use biome_fs::FileSystem;
use camino::Utf8Path;
pub use license::generated::*;
pub use node_js_package::{
CompilerOptions, Dependencies, Nod... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_package/src/license/mod.rs | crates/biome_package/src/license/mod.rs | pub(crate) use crate::LicenseList;
pub mod generated;
impl LicenseList {
pub fn is_valid(&self, license_id: &str) -> bool {
let license_found = self
.license_list
.iter()
.find(|license| license.license_id == license_id);
license_found.is_some()
}
pub ... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_package/src/license/generated.rs | crates/biome_package/src/license/generated.rs | //! Generated file, do not edit by hand, see `xtask/codegen`
#[derive(Debug)]
pub struct LicenseList {
#[expect(unused)]
pub(crate) license_list_version: &'static str,
pub(crate) license_list: &'static [&'static Licence],
#[expect(unused)]
pub(crate) release_date: &'static str,
}
#[derive(Debug)]
p... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | true |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_package/src/node_js_package/package_json.rs | crates/biome_package/src/node_js_package/package_json.rs | use crate::node_semver::{Range, VersionError};
use crate::{LanguageRoot, Manifest};
use biome_deserialize::json::deserialize_from_json_str;
use biome_deserialize::{
Deserializable, DeserializableTypes, DeserializableValue, DeserializationContext,
DeserializationVisitor, Deserialized, Text, json::deserialize_fro... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_package/src/node_js_package/turbo_json.rs | crates/biome_package/src/node_js_package/turbo_json.rs | use crate::{LanguageRoot, Manifest};
use biome_deserialize::{
Deserialized,
json::{deserialize_from_json_ast, deserialize_from_json_str},
};
use biome_deserialize_macros::Deserializable;
use biome_diagnostics::Error;
use biome_json_parser::JsonParserOptions;
use biome_json_syntax::JsonLanguage;
use camino::{Utf... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_package/src/node_js_package/mod.rs | crates/biome_package/src/node_js_package/mod.rs | mod package_json;
mod tsconfig_json;
mod turbo_json;
use camino::Utf8Path;
pub use package_json::{Dependencies, PackageJson, PackageType, Version};
pub use tsconfig_json::{CompilerOptions, TsConfigJson};
pub use turbo_json::TurboJson;
use biome_rowan::Language;
use std::sync::Arc;
use crate::{LICENSE_LIST, Manifest,... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_package/src/node_js_package/tsconfig_json.rs | crates/biome_package/src/node_js_package/tsconfig_json.rs | use std::hash::BuildHasherDefault;
use crate::{LanguageRoot, Manifest};
use biome_deserialize::{
Deserializable, DeserializableValue, DeserializationContext,
json::{deserialize_from_json_ast, deserialize_from_json_str},
};
use biome_deserialize::{DeserializableType, Deserialized};
use biome_deserialize_macros:... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_package/src/node_semver/range.rs | crates/biome_package/src/node_semver/range.rs | use crate::node_semver::version::{Version, VersionError};
use std::fmt;
use std::str::FromStr;
/// A version range that can match multiple versions.
///
/// Ranges support complex expressions including OR operations, compound ranges,
/// and various comparison operators like tilde (`~`) and caret (`^`).
///
/// The ra... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_package/src/node_semver/version.rs | crates/biome_package/src/node_semver/version.rs | use std::cmp::Ordering;
use std::fmt;
use std::str::FromStr;
/// A semantic version representation following the SemVer 2.0.0 specification.
///
/// A version consists of MAJOR.MINOR.PATCH, optionally followed by prerelease
/// identifiers and build metadata.
///
/// # Examples
///
/// ```
/// use biome_package::node_... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_package/src/node_semver/range.tests.rs | crates/biome_package/src/node_semver/range.tests.rs | use super::*;
#[test]
fn test_exact_range() {
let range = "1.2.3".parse::<Range>().unwrap();
assert!(range.includes(&"1.2.3".parse().unwrap()));
assert!(!range.includes(&"1.2.4".parse().unwrap()));
}
#[test]
fn test_tilde_range() {
let range = "~1.2.3".parse::<Range>().unwrap();
assert!(range.in... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_package/src/node_semver/mod.rs | crates/biome_package/src/node_semver/mod.rs | //! A Rust implementation of the node-semver specification.
//!
//! This module provides semantic version parsing, comparison, and range matching
//! functionality compatible with the Node.js semver package.
//!
//! # Overview
//!
//! The module consists of three main parts:
//!
//! - **Version parsing and comparison**... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_package/tests/manifest_spec_tests.rs | crates/biome_package/tests/manifest_spec_tests.rs | use biome_diagnostics::{DiagnosticExt, print_diagnostic_to_string};
use biome_json_parser::{JsonParserOptions, parse_json};
use biome_package::{NodeJsPackage, Package};
use camino::{Utf8Component, Utf8Path, Utf8PathBuf};
use std::fs::read_to_string;
mod manifest {
tests_macros::gen_tests! {"tests/manifest/invalid/... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_package/benches/package_json.rs | crates/biome_package/benches/package_json.rs | use biome_deserialize::json::deserialize_from_json_str;
use biome_json_parser::JsonParserOptions;
use biome_package::PackageJson;
use divan::Bencher;
fn main() {
// Run registered benchmarks.
divan::main();
}
#[cfg(target_os = "windows")]
#[global_allocator]
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMal... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_package/benches/tsconfig_json.rs | crates/biome_package/benches/tsconfig_json.rs | use biome_deserialize::json::deserialize_from_json_str;
use biome_json_parser::JsonParserOptions;
use biome_package::TsConfigJson;
use divan::Bencher;
fn main() {
// Run registered benchmarks.
divan::main();
}
#[cfg(target_os = "windows")]
#[global_allocator]
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMa... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_package/benches/semver.rs | crates/biome_package/benches/semver.rs | use biome_package::node_semver::{Range, Version};
#[cfg(target_os = "windows")]
#[global_allocator]
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
#[cfg(all(
any(target_os = "macos", target_os = "linux"),
not(target_env = "musl"),
))]
#[global_allocator]
static GLOBAL: tikv_jemallocator::Jemalloc = t... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_html_factory/src/lib.rs | crates/biome_html_factory/src/lib.rs | #![deny(clippy::use_self)]
use biome_html_syntax::HtmlLanguage;
use biome_rowan::TreeBuilder;
mod generated;
pub use crate::generated::HtmlSyntaxFactory;
pub mod make;
// Re-exported for tests
#[doc(hidden)]
pub use biome_html_syntax as syntax;
pub type JsonSyntaxTreeBuilder = TreeBuilder<'static, HtmlLanguage, Htm... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_html_factory/src/make.rs | crates/biome_html_factory/src/make.rs | use biome_html_syntax::{HtmlSyntaxKind, HtmlSyntaxToken};
pub use crate::generated::node_factory::*;
pub fn ident(text: &str) -> HtmlSyntaxToken {
HtmlSyntaxToken::new_detached(HtmlSyntaxKind::IDENT, text, [], [])
}
/// Create a new string literal token with no attached trivia
pub fn html_string_literal(text: &s... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_html_factory/src/generated.rs | crates/biome_html_factory/src/generated.rs | #[rustfmt::skip]
pub(super) mod syntax_factory;
#[rustfmt::skip]
pub mod node_factory;
pub use syntax_factory::HtmlSyntaxFactory;
| rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_html_factory/src/generated/syntax_factory.rs | crates/biome_html_factory/src/generated/syntax_factory.rs | //! Generated file, do not edit by hand, see `xtask/codegen`
#![allow(unused_mut)]
use biome_html_syntax::{HtmlSyntaxKind, HtmlSyntaxKind::*, T, *};
use biome_rowan::{
AstNode, ParsedChildren, RawNodeSlots, RawSyntaxNode, SyntaxFactory, SyntaxKind,
};
#[derive(Debug)]
pub struct HtmlSyntaxFactory;
impl SyntaxFacto... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | true |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_html_factory/src/generated/node_factory.rs | crates/biome_html_factory/src/generated/node_factory.rs | //! Generated file, do not edit by hand, see `xtask/codegen`
#![allow(clippy::redundant_closure)]
use biome_html_syntax::{
HtmlSyntaxElement as SyntaxElement, HtmlSyntaxNode as SyntaxNode,
HtmlSyntaxToken as SyntaxToken, *,
};
use biome_rowan::AstNode;
pub fn astro_embedded_content() -> AstroEmbeddedContentBui... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | true |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_value/src/lib.rs | crates/biome_json_value/src/lib.rs | #![deny(clippy::use_self)]
mod json_value;
pub use json_value::*;
| rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_value/src/json_value.rs | crates/biome_json_value/src/json_value.rs | //! JSON value types based on `biome_json_syntax`.
//!
//! Compared to the CST types defined in `biome_json_syntax`, these have the
//! following characteristics:
//!
//! - Values can be constructed from [`biome_json_syntax::AnyJsonValue`] with
//! few allocations. The only types that require allocation are arrays an... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_value/src/json_value.tests.rs | crates/biome_json_value/src/json_value.tests.rs | use biome_deserialize::json::deserialize_from_json_str;
use biome_json_parser::JsonParserOptions;
use super::*;
#[test]
fn test_string_escaped_newline() {
let deserialized = deserialize_from_json_str(
r#"{ "foo": "multi\nline" }"#,
JsonParserOptions::default(),
"test_json",
);
let ... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_analyze/src/lib.rs | crates/biome_js_analyze/src/lib.rs | #![deny(clippy::use_self)]
#![warn(clippy::needless_pass_by_value)]
use crate::suppression_action::JsSuppressionAction;
use biome_analyze::{
AnalysisFilter, Analyzer, AnalyzerContext, AnalyzerOptions, AnalyzerPluginSlice,
AnalyzerSignal, AnalyzerSuppression, ControlFlow, InspectMatcher, LanguageRoot,
Match... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_analyze/src/assist.rs | crates/biome_js_analyze/src/assist.rs | //! Generated file, do not edit by hand, see `xtask/codegen`
//! Generated file, do not edit by hand, see `xtask/codegen`
pub mod source;
::biome_analyze::declare_category! { pub Assist { kind : Action , groups : [self :: source :: Source ,] } }
| rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_analyze/src/suppression_action.rs | crates/biome_js_analyze/src/suppression_action.rs | use crate::utils::batch::JsBatchMutation;
use biome_analyze::{ApplySuppression, SuppressionAction};
use biome_js_factory::make::{jsx_expression_child, jsx_ident, jsx_text, token};
use biome_js_syntax::jsx_ext::AnyJsxElement;
use biome_js_syntax::{
AnyJsxChild, JsLanguage, JsSyntaxKind, JsSyntaxToken, JsxChildList, ... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_analyze/src/lint.rs | crates/biome_js_analyze/src/lint.rs | //! Generated file, do not edit by hand, see `xtask/codegen`
//! Generated file, do not edit by hand, see `xtask/codegen`
pub mod a11y;
pub mod complexity;
pub mod correctness;
pub mod nursery;
pub mod performance;
pub mod security;
pub mod style;
pub mod suspicious;
::biome_analyze::declare_category! { pub Lint { ki... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_analyze/src/syntax.rs | crates/biome_js_analyze/src/syntax.rs | //! Generated file, do not edit by hand, see `xtask/codegen`
//! Generated file, do not edit by hand, see `xtask/codegen`
pub mod correctness;
::biome_analyze::declare_category! { pub Syntax { kind : Syntax , groups : [self :: correctness :: Correctness ,] } }
| rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_analyze/src/ast_utils.rs | crates/biome_js_analyze/src/ast_utils.rs | use biome_js_semantic::{BindingExtensions, SemanticModel};
use biome_js_syntax::{
AnyJsArrayElement, AnyJsExpression, AnyJsLiteralExpression, AnyJsTemplateElement,
JsArrowFunctionExpression, JsAssignmentOperator, JsFunctionDeclaration, JsLanguage,
JsLogicalOperator, JsMethodClassMember, JsMethodObjectMember... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_analyze/src/a11y.rs | crates/biome_js_analyze/src/a11y.rs | use biome_js_syntax::jsx_ext::AnyJsxElement;
/// Check the element is hidden from screen reader.
///
/// Ref:
/// - https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-hidden
/// - https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/hidden
/// - https://github.com/jsx-eslint/esl... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_analyze/src/assists.rs | crates/biome_js_analyze/src/assists.rs | //! Generated file, do not edit by hand, see `xtask/codegen`
//! Generated file, do not edit by hand, see `xtask/codegen`
pub mod source;
::biome_analyze::declare_category! { pub Assists { kind : Action , groups : [self :: source :: Source ,] } }
| rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_analyze/src/utils.rs | crates/biome_js_analyze/src/utils.rs | use biome_js_syntax::{AnyJsExpression, JsBinaryExpression, JsSyntaxNode, inner_string_text};
use biome_rowan::{AstNode, Direction, WalkEvent};
use std::iter;
pub mod batch;
pub mod rename;
#[cfg(test)]
pub mod tests;
/// Verifies that both nodes are equal by checking their descendants (nodes included) kinds
/// and t... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_analyze/src/registry.rs | crates/biome_js_analyze/src/registry.rs | //! Generated file, do not edit by hand, see `xtask/codegen`
use biome_analyze::RegistryVisitor;
use biome_js_syntax::JsLanguage;
pub fn visit_registry<V: RegistryVisitor<JsLanguage>>(registry: &mut V) {
registry.record_category::<crate::assist::Assist>();
registry.record_category::<crate::lint::Lint>();
r... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_analyze/src/options.rs | crates/biome_js_analyze/src/options.rs | //! Generated file, do not edit by hand, see `xtask/codegen`
//! Generated file, do not edit by hand, see `xtask/codegen`
use crate::assist;
use crate::lint;
pub type NoAccessKey = <lint::a11y::no_access_key::NoAccessKey as biome_analyze::Rule>::Options;
pub type NoAccumulatingSpread = < lint :: performance :: no_acc... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | true |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_analyze/src/suppressions.tests.rs | crates/biome_js_analyze/src/suppressions.tests.rs | use super::*;
use biome_analyze::{AnalyzerOptions, Never, RuleCategoriesBuilder, RuleFilter};
use biome_diagnostics::category;
use biome_diagnostics::{Diagnostic, DiagnosticExt, Severity, print_diagnostic_to_string};
use biome_js_parser::{JsParserOptions, parse};
use biome_js_syntax::{JsFileSource, TextRange, TextSize}... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_analyze/src/react.rs | crates/biome_js_analyze/src/react.rs | //! A series of AST utilities to work with the React library
pub mod components;
pub mod hooks;
use biome_js_semantic::{Binding, SemanticModel};
use biome_js_syntax::{
AnyJsCallArgument, AnyJsExpression, AnyJsMemberExpression, AnyJsNamedImportSpecifier,
AnyJsObjectMember, JsCallExpression, JsIdentifierBinding... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_analyze/src/nextjs.rs | crates/biome_js_analyze/src/nextjs.rs | use biome_js_semantic::Binding;
use biome_js_syntax::JsImport;
use biome_rowan::AstNode;
/// Represent Next.js built-in utility.
#[derive(Debug, Clone, Copy)]
pub(crate) enum NextUtility {
Script,
// you can add more here
}
impl NextUtility {
pub const fn import_names(self) -> &'static [&'static str] {
... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_analyze/src/services/semantic.rs | crates/biome_js_analyze/src/services/semantic.rs | use biome_analyze::{
AddVisitor, FromServices, Phase, Phases, QueryKey, QueryMatch, Queryable, RuleKey,
RuleMetadata, ServiceBag, ServicesDiagnostic, SyntaxVisitor, Visitor, VisitorContext,
VisitorFinishContext,
};
use biome_js_semantic::{SemanticEventExtractor, SemanticModel, SemanticModelBuilder};
use bio... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_analyze/src/services/aria.rs | crates/biome_js_analyze/src/services/aria.rs | use biome_analyze::{
AddVisitor, FromServices, Phase, Phases, QueryKey, Queryable, RuleKey, RuleMetadata,
ServiceBag, ServicesDiagnostic, SyntaxVisitor,
};
use biome_aria::AriaRoles;
use biome_js_syntax::{AnyJsRoot, JsLanguage, JsSyntaxNode};
use biome_rowan::AstNode;
use std::sync::Arc;
#[derive(Debug, Clone)... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_analyze/src/services/manifest.rs | crates/biome_js_analyze/src/services/manifest.rs | use std::sync::Arc;
use biome_analyze::{
AddVisitor, FromServices, Phase, Phases, QueryKey, Queryable, RuleKey, RuleMetadata,
ServiceBag, ServicesDiagnostic, SyntaxVisitor,
};
use biome_js_syntax::{AnyJsRoot, JsLanguage, JsSyntaxNode};
use biome_package::PackageJson;
use biome_rowan::AstNode;
use camino::Utf8P... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_analyze/src/services/turborepo.rs | crates/biome_js_analyze/src/services/turborepo.rs | //! Service for checking environment variable declarations against Turborepo configuration.
//!
//! This module provides [`TurborepoServices`] which aggregates all applicable `turbo.json`
//! configurations (root and package-level) and enables lint rules to verify that environment
//! variables accessed in code are pro... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_analyze/src/services/mod.rs | crates/biome_js_analyze/src/services/mod.rs | pub mod aria;
pub mod control_flow;
pub mod manifest;
pub mod module_graph;
pub mod semantic;
pub mod semantic_class;
pub mod turborepo;
pub mod typed;
| rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_analyze/src/services/typed.rs | crates/biome_js_analyze/src/services/typed.rs | use biome_analyze::{
AddVisitor, FromServices, Phase, Phases, QueryKey, QueryMatch, Queryable, RuleDomain, RuleKey,
RuleMetadata, ServiceBag, ServicesDiagnostic, SyntaxVisitor,
};
use biome_js_syntax::{
AnyJsBinding, AnyJsExpression, AnyJsFunction, AnyJsRoot, JsLanguage, JsSyntaxNode,
};
use biome_js_type_i... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_analyze/src/services/module_graph.rs | crates/biome_js_analyze/src/services/module_graph.rs | use biome_analyze::{
AddVisitor, FromServices, Phase, Phases, QueryKey, QueryMatch, Queryable, RuleDomain, RuleKey,
RuleMetadata, ServiceBag, ServicesDiagnostic, SyntaxVisitor,
};
use biome_module_graph::{JsModuleInfo, ModuleGraph};
use biome_project_layout::ProjectLayout;
use biome_rowan::{AstNode, Language, S... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_analyze/src/services/semantic_class.rs | crates/biome_js_analyze/src/services/semantic_class.rs | use biome_analyze::{
AddVisitor, FromServices, Phase, Phases, QueryKey, QueryMatch, Queryable, RuleKey,
RuleMetadata, ServiceBag, ServicesDiagnostic, Visitor, VisitorContext, VisitorFinishContext,
};
use biome_js_syntax::{
AnyJsBindingPattern, AnyJsClassMember, AnyJsExpression, AnyJsObjectBindingPatternMemb... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | true |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_analyze/src/services/control_flow.rs | crates/biome_js_analyze/src/services/control_flow.rs | use biome_analyze::QueryMatch;
use biome_analyze::{AddVisitor, Phases, Queryable, ServiceBag};
use biome_js_syntax::AnyJsRoot;
use biome_js_syntax::JsLanguage;
use biome_js_syntax::TextRange;
pub type JsControlFlowGraph = biome_control_flow::ControlFlowGraph<JsLanguage>;
pub(crate) type FunctionBuilder = biome_control... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_analyze/src/services/control_flow/visitor.rs | crates/biome_js_analyze/src/services/control_flow/visitor.rs | use std::any::TypeId;
use biome_analyze::{Visitor, VisitorContext, merge_node_visitors};
use biome_js_syntax::{
AnyJsFunction, JsConstructorClassMember, JsGetterClassMember, JsGetterObjectMember, JsLanguage,
JsMethodClassMember, JsMethodObjectMember, JsModule, JsScript, JsSetterClassMember,
JsSetterObjectM... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_analyze/src/services/control_flow/nodes.rs | crates/biome_js_analyze/src/services/control_flow/nodes.rs | mod block;
mod bogus;
mod break_stmt;
mod continue_stmt;
mod do_while;
mod for_in;
mod for_of;
mod for_stmt;
mod if_stmt;
mod return_stmt;
mod statement;
mod switch_stmt;
mod throw_stmt;
mod try_catch;
mod variable;
mod while_stmt;
pub(super) use block::*;
pub(super) use bogus::*;
pub(super) use break_stmt::*;
pub(sup... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_analyze/src/services/control_flow/nodes/switch_stmt.rs | crates/biome_js_analyze/src/services/control_flow/nodes/switch_stmt.rs | use biome_control_flow::builder::BlockId;
use biome_js_syntax::{AnyJsSwitchClause, JsLabeledStatement, JsSwitchStatement, JsSyntaxToken};
use biome_rowan::{AstNode, SyntaxResult};
use crate::services::control_flow::{
FunctionBuilder,
visitor::{NodeVisitor, StatementStack},
};
pub(in crate::services::control_f... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_analyze/src/services/control_flow/nodes/variable.rs | crates/biome_js_analyze/src/services/control_flow/nodes/variable.rs | use biome_js_syntax::JsVariableStatement;
use biome_rowan::{AstNode, SyntaxResult};
use crate::services::control_flow::{
FunctionBuilder,
visitor::{NodeVisitor, StatementStack},
};
pub(in crate::services::control_flow) struct VariableVisitor;
impl NodeVisitor for VariableVisitor {
type Node = JsVariableS... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_analyze/src/services/control_flow/nodes/break_stmt.rs | crates/biome_js_analyze/src/services/control_flow/nodes/break_stmt.rs | use std::any::TypeId;
use biome_js_syntax::JsBreakStatement;
use biome_rowan::{AstNode, SyntaxError, SyntaxResult};
use crate::services::control_flow::{
FunctionBuilder,
nodes::{
BlockVisitor, DoWhileVisitor, ForInVisitor, ForOfVisitor, ForVisitor, SwitchVisitor,
WhileVisitor,
},
visit... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_analyze/src/services/control_flow/nodes/throw_stmt.rs | crates/biome_js_analyze/src/services/control_flow/nodes/throw_stmt.rs | use biome_js_syntax::JsThrowStatement;
use biome_rowan::{AstNode, SyntaxResult};
use crate::services::control_flow::{
FunctionBuilder,
visitor::{NodeVisitor, StatementStack},
};
pub(in crate::services::control_flow) struct ThrowVisitor;
impl NodeVisitor for ThrowVisitor {
type Node = JsThrowStatement;
... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_analyze/src/services/control_flow/nodes/for_stmt.rs | crates/biome_js_analyze/src/services/control_flow/nodes/for_stmt.rs | use biome_control_flow::builder::BlockId;
use biome_js_syntax::{JsForStatement, JsLabeledStatement, JsSyntaxToken};
use biome_rowan::{AstNode, SyntaxResult};
use crate::services::control_flow::{
FunctionBuilder,
visitor::{NodeVisitor, StatementStack},
};
pub(in crate::services::control_flow) struct ForVisitor... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
biomejs/biome | https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_analyze/src/services/control_flow/nodes/if_stmt.rs | crates/biome_js_analyze/src/services/control_flow/nodes/if_stmt.rs | use biome_control_flow::builder::BlockId;
use biome_js_syntax::{JsElseClause, JsIfStatement};
use biome_rowan::{AstNode, SyntaxResult};
use crate::services::control_flow::{
FunctionBuilder,
visitor::{NodeVisitor, StatementStack},
};
pub(in crate::services::control_flow) struct IfVisitor {
/// Saved positi... | rust | Apache-2.0 | 499594b74475be0ae81ce50858e76c9c97b8c48f | 2026-01-04T15:39:05.365085Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.