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_service/src/scanner/workspace_bridges.rs
crates/biome_service/src/scanner/workspace_bridges.rs
use std::panic::RefUnwindSafe; use biome_fs::FileSystem; use biome_module_graph::{ModuleDependencies, ModuleDiagnostic}; use camino::Utf8Path; use crate::{WorkspaceError, projects::ProjectKey, workspace::ServiceNotification}; use super::*; /// Trait used to give access to workspace functionality required by the ///...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_service/src/scanner/watcher.rs
crates/biome_service/src/scanner/watcher.rs
use std::path::PathBuf; use super::WorkspaceWatcherBridge; use crate::WorkspaceError; use crate::diagnostics::WatchError; use biome_diagnostics::PrintDescription; use biome_diagnostics::serde::Diagnostic; use camino::{Utf8Path, Utf8PathBuf}; use crossbeam::channel::{Receiver, Sender, bounded, unbounded}; use notify::e...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_service/src/scanner/test_utils.rs
crates/biome_service/src/scanner/test_utils.rs
use std::sync::mpsc; use crate::projects::ProjectKey; use crate::{WatcherInstruction, WorkspaceError}; use biome_diagnostics::serde::Diagnostic; use biome_fs::{BiomePath, FileSystem}; use camino::{Utf8Path, Utf8PathBuf}; use papaya::HashSet; use rustc_hash::{FxBuildHasher, FxHashSet}; use super::watcher::WatcherInstr...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_service/src/scanner/workspace_scanner_bridge.tests.rs
crates/biome_service/src/scanner/workspace_scanner_bridge.tests.rs
//! Tests for the methods of [`WorkspaceScannerBridge`]. //! //! These tests mainly verify that the workspace can handle interactions between //! clients and the scanner when files are simultaneously opened and indexed, as //! well as making sure that the workspace rejects indexing requests from the //! scanner for pat...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_service/src/scanner/watcher.tests.rs
crates/biome_service/src/scanner/watcher.tests.rs
//! [`Watcher`] tests. //! //! These tests instantiate a real watcher, and test its functionality using a //! mock workspace bridge. //! //! For tests involving both a real watcher and a real workspace, see //! `crates/biome_lsp/src/server.tests.rs`. use std::{ fs, thread::{self, sleep}, time::Duration, };...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_service/src/documentation/mod.rs
crates/biome_service/src/documentation/mod.rs
use biome_analyze::{ FixKind, GroupCategory, Queryable, RegistryVisitor, Rule, RuleCategory, RuleDomain, RuleGroup, RuleMetadata, }; use biome_console::fmt::{Display, Formatter}; use biome_console::{Padding, markup}; use biome_css_syntax::CssLanguage; use biome_graphql_syntax::GraphqlLanguage; use biome_html_sy...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_grit_factory/src/lib.rs
crates/biome_grit_factory/src/lib.rs
#![deny(clippy::use_self)] use biome_grit_syntax::GritLanguage; use biome_rowan::TreeBuilder; mod generated; pub use crate::generated::GritSyntaxFactory; // Re-exported for tests #[doc(hidden)] pub use biome_grit_syntax as syntax; pub type GritSyntaxTreeBuilder = TreeBuilder<'static, GritLanguage, GritSyntaxFactory...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_grit_factory/src/generated.rs
crates/biome_grit_factory/src/generated.rs
#[rustfmt::skip] pub(super) mod syntax_factory; #[rustfmt::skip] #[expect(unused)] pub(crate) mod node_factory; pub use syntax_factory::GritSyntaxFactory;
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_grit_factory/src/generated/syntax_factory.rs
crates/biome_grit_factory/src/generated/syntax_factory.rs
//! Generated file, do not edit by hand, see `xtask/codegen` #![allow(unused_mut)] use biome_grit_syntax::{GritSyntaxKind, GritSyntaxKind::*, T, *}; use biome_rowan::{ AstNode, ParsedChildren, RawNodeSlots, RawSyntaxNode, SyntaxFactory, SyntaxKind, }; #[derive(Debug)] pub struct GritSyntaxFactory; 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_grit_factory/src/generated/node_factory.rs
crates/biome_grit_factory/src/generated/node_factory.rs
//! Generated file, do not edit by hand, see `xtask/codegen` #![allow(clippy::redundant_closure)] use biome_grit_syntax::{ GritSyntaxElement as SyntaxElement, GritSyntaxNode as SyntaxNode, GritSyntaxToken as SyntaxToken, *, }; use biome_rowan::AstNode; pub fn grit_add_operation( left: AnyGritPattern, p...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_formatter/shared_traits.rs
crates/biome_formatter/shared_traits.rs
// Code that must be included in every language specific formatter crate. Redefining these types // in every formatter crate is necessary because of Rust's orphan rule that prohibits implementing // unowned traits (traits defined in this file) on unowned types (node types) /// Used to get an object that knows how to f...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_formatter/src/source_map.rs
crates/biome_formatter/src/source_map.rs
use crate::{Printed, SourceMarker, TextRange}; use biome_rowan::TextLen; use biome_rowan::{Language, SyntaxNode, TextSize}; use rustc_hash::FxHashMap; use std::cmp::Ordering; use std::iter::FusedIterator; /// A source map for mapping positions of a pre-processed tree back to the locations in the source tree. /// /// T...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_formatter/src/diagnostics.rs
crates/biome_formatter/src/diagnostics.rs
use crate::prelude::TagKind; use biome_console::fmt::Formatter; use biome_console::markup; use biome_diagnostics::{Category, Diagnostic, DiagnosticTags, Location, Severity, category}; use biome_rowan::{SyntaxError, TextRange}; use std::error::Error; #[derive(Debug, PartialEq, Eq, Copy, Clone)] #[cfg_attr(feature = "se...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_formatter/src/prelude.rs
crates/biome_formatter/src/prelude.rs
pub use crate::builders::*; pub use crate::format_element::*; pub use crate::format_extensions::{MemoizeFormat, Memoized}; pub use crate::formatter::Formatter; pub use crate::printer::PrinterOptions; pub use crate::trivia::{ format_dangling_comments, format_leading_comments, format_only_if_breaks, format_traili...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_formatter/src/lib.rs
crates/biome_formatter/src/lib.rs
//! Infrastructure for code formatting //! //! This module defines [FormatElement], an IR to format code documents and provides a mean to print //! such a document to a string. Objects that know how to format themselves implement the [Format] trait. //! //! ## Formatting Traits //! //! * [Format]: Implemented by object...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_formatter/src/comments.rs
crates/biome_formatter/src/comments.rs
//! Types for extracting and representing comments of a syntax tree. //! //! Most programming languages support comments allowing programmers to document their programs. Comments are different from other syntaxes because programming languages allow comments in almost any position, giving programmers great flexibility ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_formatter/src/format_extensions.rs
crates/biome_formatter/src/format_extensions.rs
use crate::prelude::*; use std::cell::OnceCell; use std::marker::PhantomData; use std::ops::Deref; use crate::Buffer; /// Utility trait that allows memorizing the output of a [Format]. /// Useful to avoid re-formatting the same object twice. pub trait MemoizeFormat<Context> { /// Returns a formattable object that...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_formatter/src/arguments.rs
crates/biome_formatter/src/arguments.rs
use super::{Buffer, Format, Formatter}; use crate::FormatResult; use std::ffi::c_void; use std::marker::PhantomData; /// Mono-morphed type to format an object. Used by the [crate::format!], [crate::format_args!], and /// [crate::write!] macros. /// /// This struct is similar to a dynamic dispatch (using `dyn Format`) ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_formatter/src/trivia.rs
crates/biome_formatter/src/trivia.rs
//! Provides builders for comments and skipped token trivia. use crate::comments::is_doc_comment; use crate::format_element::tag::VerbatimKind; use crate::prelude::*; use crate::{ Argument, Arguments, CstFormatContext, FormatRefWithRule, GroupId, SourceComment, TextRange, comments::{CommentKind, CommentStyle},...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_formatter/src/builders.rs
crates/biome_formatter/src/builders.rs
use crate::format_element::tag::{Condition, Tag}; use crate::prelude::tag::{DedentMode, GroupMode, LabelId}; use crate::prelude::*; use crate::{Argument, Arguments, GroupId, TextRange, TextSize, write}; use crate::{Buffer, VecBuffer}; use Tag::*; use biome_rowan::{Language, SyntaxNode, SyntaxToken, TextLen, TokenText};...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_formatter/src/macros.rs
crates/biome_formatter/src/macros.rs
/// Constructs the parameters for other formatting macros. /// /// This macro functions by taking a list of objects implementing [crate::Format]. It canonicalize the /// arguments into a single type. /// /// This macro produces a value of type [crate::Arguments]. This value can be passed to /// the macros within [crate...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_formatter/src/group_id.rs
crates/biome_formatter/src/group_id.rs
use std::num::NonZeroU32; use std::sync::atomic::{AtomicU32, Ordering}; #[cfg(debug_assertions)] mod debug { use super::*; #[derive(Clone, Copy, Eq, PartialEq, Hash)] pub struct GroupId { pub(super) value: NonZeroU32, name: &'static str, } impl GroupId { pub(super) fn new(...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_formatter/src/buffer.rs
crates/biome_formatter/src/buffer.rs
#![expect(clippy::mutable_key_type)] use super::{Arguments, FormatElement, write}; use crate::format_element::Interned; use crate::prelude::tag::Condition; use crate::prelude::{LineMode, PrintMode, Tag}; use crate::{Format, FormatResult, FormatState}; use rustc_hash::FxHashMap; use std::any::{Any, TypeId}; use std::fmt...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_formatter/src/formatter.rs
crates/biome_formatter/src/formatter.rs
use crate::buffer::BufferSnapshot; use crate::builders::{FillBuilder, JoinBuilder, JoinNodesBuilder, Line}; use crate::prelude::*; use crate::{ Arguments, Buffer, Comments, CstFormatContext, FormatContext, FormatState, FormatStateSnapshot, GroupId, VecBuffer, }; /// Handles the formatting of a CST and stores t...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_formatter/src/format_element.rs
crates/biome_formatter/src/format_element.rs
pub mod document; pub mod tag; use crate::format_element::tag::{LabelId, Tag}; use std::borrow::Cow; use crate::{TagKind, TextSize}; use biome_rowan::TokenText; #[cfg(target_pointer_width = "64")] use biome_rowan::static_assert; use std::hash::{Hash, Hasher}; use std::iter::FusedIterator; use std::ops::Deref; use std...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_formatter/src/printed_tokens.rs
crates/biome_formatter/src/printed_tokens.rs
use biome_rowan::{Direction, Language, SyntaxNode, SyntaxToken, TextSize}; use indexmap::IndexSet; /// Tracks the ranges of the formatted (including replaced or tokens formatted as verbatim) tokens. /// /// This implementation uses the fact that no two tokens can have an overlapping range to avoid the need for an inte...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_formatter/src/separated.rs
crates/biome_formatter/src/separated.rs
use crate::prelude::*; use crate::{CstFormatContext, GroupId, write}; use biome_rowan::{AstNode, AstSeparatedElement, SyntaxResult, SyntaxToken}; pub trait FormatSeparatedElementRule<N> where N: AstNode, { type Context; type FormatNode<'a>: Format<Self::Context> where N: 'a; type FormatSepa...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_formatter/src/comments/builder.rs
crates/biome_formatter/src/comments/builder.rs
use super::{ CommentPlacement, CommentStyle, CommentTextPosition, DecoratedComment, SourceComment, TransformSourceMap, map::CommentsMap, }; use crate::source_map::{DeletedRangeEntry, DeletedRanges}; use crate::{TextRange, TextSize}; use biome_rowan::syntax::SyntaxElementKey; use biome_rowan::{ Direction, La...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_formatter/src/comments/map.rs
crates/biome_formatter/src/comments/map.rs
use rustc_hash::FxHashMap; use std::fmt::{Debug, Formatter}; use std::iter::FusedIterator; use std::num::NonZeroU32; use std::ops::Range; /// An optimized multi-map implementation for storing leading, dangling, and trailing parts for a key. /// /// A naive implementation using three multimaps, one to store the leading...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_formatter/src/token/number.rs
crates/biome_formatter/src/token/number.rs
use biome_string_case::StrLikeExtension; use std::borrow::Cow; use std::num::NonZeroUsize; #[derive(Debug, Default, Clone, Copy)] pub struct NumberFormatOptions { /// Controls how numbers with trailing decimal zeroes are formatted. /// /// Prettier behaves differently when printing numbers like `x.00000` i...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_formatter/src/token/string.rs
crates/biome_formatter/src/token/string.rs
use std::borrow::Cow; #[derive(Debug, Eq, PartialEq, Clone, Copy)] pub enum Quote { Double, Single, } impl Quote { pub fn as_char(&self) -> char { match self { Self::Double => '"', Self::Single => '\'', } } pub fn as_byte(&self) -> u8 { self.as_char...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_formatter/src/token/mod.rs
crates/biome_formatter/src/token/mod.rs
pub mod number; pub mod string;
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_formatter/src/format_element/document.rs
crates/biome_formatter/src/format_element/document.rs
#![expect(clippy::mutable_key_type)] use super::tag::Tag; use crate::format_element::tag::DedentMode; use crate::prelude::tag::GroupMode; use crate::prelude::*; use crate::{ BufferExtensions, Format, FormatContext, FormatElement, FormatOptions, FormatResult, Formatter, IndentStyle, IndentWidth, LineEnding, Lin...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_formatter/src/format_element/tag.rs
crates/biome_formatter/src/format_element/tag.rs
use crate::format_element::PrintMode; use crate::{GroupId, TextSize}; use biome_rowan::TextRange; use std::cell::Cell; use std::num::NonZeroU8; /// A Tag marking the start and end of some content to which some special formatting should be applied. /// /// Tags always come in pairs of a start and an end tag and the sty...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_formatter/src/printer/line_suffixes.rs
crates/biome_formatter/src/printer/line_suffixes.rs
use crate::FormatElement; use crate::printer::call_stack::PrintElementArgs; /// Stores the queued line suffixes. #[derive(Debug, Default)] pub(super) struct LineSuffixes<'a> { suffixes: Vec<LineSuffixEntry<'a>>, } impl<'a> LineSuffixes<'a> { /// Extends the line suffixes with `elements`, storing their call st...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_formatter/src/printer/call_stack.rs
crates/biome_formatter/src/printer/call_stack.rs
use crate::format_element::PrintMode; use crate::format_element::tag::TagKind; use crate::printer::Indention; use crate::printer::stack::{Stack, StackedStack}; use crate::{IndentStyle, InvalidDocumentError, PrintError, PrintResult}; use std::fmt::Debug; use std::num::NonZeroU8; #[derive(Copy, Clone, Eq, PartialEq, Deb...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_formatter/src/printer/mod.rs
crates/biome_formatter/src/printer/mod.rs
mod call_stack; mod line_suffixes; mod printer_options; mod queue; mod stack; pub use printer_options::*; use crate::format_element::{BestFittingVariants, LineMode, PrintMode}; use crate::{ ActualStart, FormatElement, GroupId, IndentStyle, InvalidDocumentError, PrintError, PrintResult, Printed, SourceMarker, ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_formatter/src/printer/stack.rs
crates/biome_formatter/src/printer/stack.rs
/// A school book stack. Allows adding, removing, and inspecting elements at the back. pub(super) trait Stack<T> { /// Removes the last element if any and returns it fn pop(&mut self) -> Option<T>; /// Pushes a new element at the back fn push(&mut self, value: T); /// Returns the last element if a...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_formatter/src/printer/queue.rs
crates/biome_formatter/src/printer/queue.rs
use crate::format_element::tag::TagKind; use crate::prelude::Tag; use crate::printer::stack::{Stack, StackedStack}; use crate::printer::{invalid_end_tag, invalid_start_tag}; use crate::{FormatElement, PrintResult}; use std::fmt::Debug; use std::iter::FusedIterator; use std::marker::PhantomData; /// Queue of [FormatEle...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_formatter/src/printer/printer_options/mod.rs
crates/biome_formatter/src/printer/printer_options/mod.rs
use crate::{FormatOptions, IndentStyle, IndentWidth, LineEnding, LineWidth}; /// Options that affect how the [crate::Printer] prints the format tokens #[derive(Clone, Debug, Eq, PartialEq)] pub struct PrinterOptions { /// Width of an indent in characters. /// if indent_style is set to IndentStyle::Tab, treat t...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/prelude.rs
crates/biome_css_parser/src/prelude.rs
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/lib.rs
crates/biome_css_parser/src/lib.rs
//! Extremely fast, lossless, and error-tolerant CSS Parser. #![deny(clippy::use_self)] use crate::parser::CssParser; use crate::syntax::parse_root; use biome_css_factory::CssSyntaxFactory; use biome_css_syntax::{CssLanguage, CssRoot, CssSyntaxNode}; pub use biome_parser::prelude::*; use biome_parser::{AnyParse, Embe...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/token_source.rs
crates/biome_css_parser/src/token_source.rs
use crate::CssParserOptions; use crate::lexer::{CssLexContext, CssLexer, CssReLexContext}; use biome_css_syntax::CssSyntaxKind::EOF; use biome_css_syntax::{CssSyntaxKind, TextRange}; use biome_parser::diagnostic::ParseDiagnostic; use biome_parser::lexer::BufferedLexer; use biome_parser::prelude::{BumpWithContext, Token...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/parser.rs
crates/biome_css_parser/src/parser.rs
use crate::lexer::CssReLexContext; use crate::state::CssParserState; use crate::token_source::{CssTokenSource, CssTokenSourceCheckpoint}; use biome_css_syntax::{CssFileSource, CssSyntaxKind}; use biome_parser::ParserContext; use biome_parser::diagnostic::merge_diagnostics; use biome_parser::event::Event; use biome_pars...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/state.rs
crates/biome_css_parser/src/state.rs
pub(crate) struct CssParserState { /// Indicates that the parser is speculatively parsing a syntax. Speculative parsing means that the /// parser tries to parse a syntax as one kind and determines at the end if the assumption was right /// by testing if the parser is at a specific token (or has no errors). ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/css_modules.rs
crates/biome_css_parser/src/syntax/css_modules.rs
use crate::parser::CssParser; use biome_css_syntax::{CssSyntaxKind, T, TextRange}; use biome_parser::diagnostic::{ParseDiagnostic, ToDiagnostic, expect_one_of}; use biome_parser::{Parser, TokenSet, token_set}; /// A set of tokens representing the CSS Modules pseudo-classes `:local` and `:global`. pub(crate) const CSS_...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/util.rs
crates/biome_css_parser/src/syntax/util.rs
use biome_css_syntax::CssSyntaxKind::*; use biome_css_syntax::T; use biome_parser::Parser; use biome_parser::SyntaxFeature; use biome_parser::token_set; use crate::parser::CssParser; use crate::syntax::CssSyntaxFeatures; /// Skips possible Tailwind CSS specific syntax in the `@import` rule that we don't know how to h...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/mod.rs
crates/biome_css_parser/src/syntax/mod.rs
mod at_rule; mod block; mod css_modules; mod parse_error; mod property; mod selector; mod util; mod value; use crate::lexer::CssLexContext; use crate::parser::CssParser; use crate::syntax::at_rule::{is_at_at_rule, parse_at_rule}; use crate::syntax::block::parse_declaration_or_rule_list_block; use crate::syntax::parse_...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/parse_error.rs
crates/biome_css_parser/src/syntax/parse_error.rs
use crate::parser::CssParser; use biome_console::markup; use biome_css_syntax::CssSyntaxKind; use biome_parser::Parser; use biome_parser::diagnostic::{expect_one_of, expected_any, expected_node}; use biome_parser::prelude::{ParseDiagnostic, ToDiagnostic}; use biome_rowan::TextRange; pub(crate) fn expected_identifier(p...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/block/declaration_block.rs
crates/biome_css_parser/src/syntax/block/declaration_block.rs
use crate::parser::CssParser; use crate::syntax::block::ParseBlockBody; use crate::syntax::{DeclarationList, is_at_declaration}; use biome_css_syntax::CssSyntaxKind; use biome_css_syntax::CssSyntaxKind::*; use biome_parser::CompletedMarker; use biome_parser::parse_lists::ParseNodeList; #[inline] pub(crate) fn parse_de...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/block/rule_block.rs
crates/biome_css_parser/src/syntax/block/rule_block.rs
use crate::parser::CssParser; use crate::syntax::{RuleList, is_at_rule_list_element}; use biome_css_syntax::CssSyntaxKind::*; use biome_css_syntax::{CssSyntaxKind, T}; use biome_parser::CompletedMarker; use biome_parser::parse_lists::ParseNodeList; use crate::syntax::block::ParseBlockBody; #[inline] pub(crate) fn par...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/block/conditional_block.rs
crates/biome_css_parser/src/syntax/block/conditional_block.rs
use crate::parser::CssParser; use biome_parser::CompletedMarker; use crate::syntax::block::{parse_declaration_or_rule_list_block, parse_rule_block}; /// /// Parses a conditional block from the current position in the CSS parser. /// /// If the current state of the parser indicates that it's inside a nesting block (e....
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/block/mod.rs
crates/biome_css_parser/src/syntax/block/mod.rs
mod conditional_block; mod declaration_block; mod declaration_or_at_rule_list_block; mod declaration_or_rule_list_block; mod rule_block; use crate::parser::CssParser; use biome_css_syntax::CssSyntaxKind::*; use biome_css_syntax::{CssSyntaxKind, T}; use biome_parser::diagnostic::{ParseDiagnostic, expected_node}; use bi...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/block/declaration_or_rule_list_block.rs
crates/biome_css_parser/src/syntax/block/declaration_or_rule_list_block.rs
use crate::parser::CssParser; use crate::syntax::at_rule::{is_at_at_rule, parse_at_rule}; use crate::syntax::block::ParseBlockBody; use crate::syntax::parse_error::expected_any_declaration_or_at_rule; use crate::syntax::{ is_at_any_declaration_with_semicolon, is_at_metavariable, is_at_nested_qualified_rule, par...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/block/declaration_or_at_rule_list_block.rs
crates/biome_css_parser/src/syntax/block/declaration_or_at_rule_list_block.rs
use crate::parser::CssParser; use crate::syntax::at_rule::{is_at_at_rule, parse_at_rule}; use crate::syntax::block::ParseBlockBody; use crate::syntax::parse_error::expected_any_declaration_or_at_rule; use crate::syntax::{is_at_any_declaration_with_semicolon, parse_any_declaration_with_semicolon}; use biome_css_syntax::...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/property/unicode_range.rs
crates/biome_css_parser/src/syntax/property/unicode_range.rs
use crate::lexer::{CssLexContext, CssReLexContext}; use crate::parser::CssParser; use biome_css_syntax::CssSyntaxKind::{ self, CSS_BOGUS_UNICODE_RANGE_VALUE, CSS_DIMENSION_VALUE, CSS_NUMBER_LITERAL, CSS_UNICODE_CODEPOINT, CSS_UNICODE_CODEPOINT_LITERAL, CSS_UNICODE_RANGE, CSS_UNICODE_RANGE_INTERVAL, CSS_UNIC...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/property/mod.rs
crates/biome_css_parser/src/syntax/property/mod.rs
pub(crate) mod color; pub(crate) mod unicode_range; use crate::lexer::CssLexContext; use crate::parser::CssParser; use crate::syntax::css_modules::{ composes_not_allowed, expected_classes_list, expected_composes_import_source, }; use crate::syntax::parse_error::{ expected_component_value, expected_identifier, ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/property/color.rs
crates/biome_css_parser/src/syntax/property/color.rs
use crate::lexer::CssLexContext; use crate::parser::CssParser; use biome_css_syntax::CssSyntaxKind::{CSS_COLOR, CSS_COLOR_LITERAL}; use biome_css_syntax::{T, TextRange}; use biome_parser::Parser; use biome_parser::diagnostic::{ParseDiagnostic, expected_node}; use biome_parser::parsed_syntax::ParsedSyntax; use biome_par...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/selector/attribute.rs
crates/biome_css_parser/src/syntax/selector/attribute.rs
use crate::parser::CssParser; use crate::syntax::parse_error::{ expected_any_attribute_matcher_name, expected_any_attribute_modifier, expected_identifier, }; use crate::syntax::selector::{is_nth_at_namespace, parse_namespace, selector_lex_context}; use crate::syntax::{is_at_identifier, parse_regular_identifier, par...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/selector/relative_selector.rs
crates/biome_css_parser/src/syntax/selector/relative_selector.rs
use crate::parser::CssParser; use crate::syntax::parse_error::expected_relative_selector; use crate::syntax::selector::{is_nth_at_compound_selector, parse_selector}; use biome_css_syntax::CssSyntaxKind::*; use biome_css_syntax::{CssSyntaxKind, T}; use biome_parser::parse_lists::ParseSeparatedList; use biome_parser::par...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/selector/pseudo_element.rs
crates/biome_css_parser/src/syntax/selector/pseudo_element.rs
use crate::lexer::CssLexContext; use crate::parser::CssParser; use crate::syntax::parse_error::{ expected_any_pseudo_element, expected_identifier, expected_selector, }; use crate::syntax::selector::{ eat_or_recover_selector_function_close_token, parse_selector, parse_selector_identifier, recover_selector_fu...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/selector/mod.rs
crates/biome_css_parser/src/syntax/selector/mod.rs
mod attribute; mod nested_selector; mod pseudo_class; mod pseudo_element; pub(crate) mod relative_selector; use crate::lexer::CssLexContext; use crate::parser::CssParser; use crate::syntax::parse_error::{ expected_any_sub_selector, expected_compound_selector, expected_identifier, expected_selector, }; use crate::s...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/selector/nested_selector.rs
crates/biome_css_parser/src/syntax/selector/nested_selector.rs
use crate::parser::CssParser; use crate::syntax::selector::selector_lex_context; use biome_css_syntax::CssSyntaxKind::{CSS_NESTED_SELECTOR, CSS_NESTED_SELECTOR_LIST}; use biome_css_syntax::{CssSyntaxKind, T}; use biome_parser::Parser; use biome_parser::parse_lists::ParseNodeList; use biome_parser::parse_recovery::{Reco...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/selector/pseudo_class/function_nth.rs
crates/biome_css_parser/src/syntax/selector/pseudo_class/function_nth.rs
use crate::lexer::CssLexContext; use crate::parser::CssParser; use crate::syntax::parse_error::{expected_any_pseudo_class_nth, expected_number}; use crate::syntax::selector::{ SelectorList, eat_or_recover_selector_function_close_token, recover_selector_function_parameter, }; use crate::syntax::{parse_number, parse_...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/selector/pseudo_class/function_identifier.rs
crates/biome_css_parser/src/syntax/selector/pseudo_class/function_identifier.rs
use crate::parser::CssParser; use crate::syntax::parse_regular_identifier; use crate::syntax::selector::{ eat_or_recover_selector_function_close_token, recover_selector_function_parameter, }; use biome_css_syntax::CssSyntaxKind::CSS_PSEUDO_CLASS_FUNCTION_IDENTIFIER; use biome_css_syntax::CssSyntaxKind::*; use biome...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/selector/pseudo_class/function_compound_selector.rs
crates/biome_css_parser/src/syntax/selector/pseudo_class/function_compound_selector.rs
use crate::parser::CssParser; use crate::syntax::parse_error::expected_compound_selector; use crate::syntax::parse_regular_identifier; use crate::syntax::selector::{ eat_or_recover_selector_function_close_token, parse_compound_selector, recover_selector_function_parameter, }; use biome_css_syntax::CssSyntaxKind...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/selector/pseudo_class/function_value_list.rs
crates/biome_css_parser/src/syntax/selector/pseudo_class/function_value_list.rs
use crate::parser::CssParser; use crate::syntax::parse_error::expected_identifier; use crate::syntax::selector::eat_or_recover_selector_function_close_token; use crate::syntax::{is_at_identifier, parse_regular_identifier, parse_string}; use biome_css_syntax::CssSyntaxKind::*; use biome_css_syntax::{CssSyntaxKind, T}; u...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/selector/pseudo_class/function_selector.rs
crates/biome_css_parser/src/syntax/selector/pseudo_class/function_selector.rs
use crate::parser::CssParser; use crate::syntax::css_modules::{CSS_MODULES_SCOPE_SET, local_or_global_not_allowed}; use crate::syntax::parse_error::expected_selector; use crate::syntax::parse_regular_identifier; use crate::syntax::selector::{ eat_or_recover_selector_function_close_token, parse_selector, recover...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/selector/pseudo_class/function_relative_selector_list.rs
crates/biome_css_parser/src/syntax/selector/pseudo_class/function_relative_selector_list.rs
use crate::parser::CssParser; use crate::syntax::parse_error::expected_relative_selector; use crate::syntax::parse_regular_identifier; use crate::syntax::selector::eat_or_recover_selector_function_close_token; use crate::syntax::selector::relative_selector::RelativeSelectorList; use biome_css_syntax::CssSyntaxKind::CSS...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/selector/pseudo_class/function_custom_identifier_list.rs
crates/biome_css_parser/src/syntax/selector/pseudo_class/function_custom_identifier_list.rs
use crate::lexer::CssLexContext; use crate::parser::CssParser; use crate::syntax::parse_error::{expected_identifier, expected_non_css_wide_keyword_identifier}; use crate::syntax::selector::eat_or_recover_selector_function_close_token; use crate::syntax::{is_at_identifier, parse_custom_identifier, parse_regular_identifi...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/selector/pseudo_class/function_compound_selector_list.rs
crates/biome_css_parser/src/syntax/selector/pseudo_class/function_compound_selector_list.rs
use crate::parser::CssParser; use crate::syntax::parse_error::expected_compound_selector; use crate::syntax::parse_regular_identifier; use crate::syntax::selector::{ eat_or_recover_selector_function_close_token, parse_compound_selector, }; use biome_css_syntax::CssSyntaxKind::*; use biome_css_syntax::CssSyntaxKind:...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/selector/pseudo_class/identifier.rs
crates/biome_css_parser/src/syntax/selector/pseudo_class/identifier.rs
use crate::parser::CssParser; use crate::syntax::is_at_identifier; use crate::syntax::parse_error::expected_identifier; use crate::syntax::selector::parse_selector_identifier; use biome_css_syntax::CssSyntaxKind::*; use biome_parser::Parser; use biome_parser::parsed_syntax::ParsedSyntax; use biome_parser::parsed_syntax...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/selector/pseudo_class/mod.rs
crates/biome_css_parser/src/syntax/selector/pseudo_class/mod.rs
mod function_compound_selector; mod function_compound_selector_list; mod function_custom_identifier; mod function_custom_identifier_list; mod function_identifier; mod function_nth; mod function_relative_selector_list; mod function_selector; mod function_selector_list; mod function_value_list; mod identifier; use self:...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/selector/pseudo_class/function_custom_identifier.rs
crates/biome_css_parser/src/syntax/selector/pseudo_class/function_custom_identifier.rs
use crate::lexer::CssLexContext; use crate::parser::CssParser; use crate::syntax::parse_error::expected_identifier; use crate::syntax::selector::{ eat_or_recover_selector_function_close_token, recover_selector_function_parameter, }; use crate::syntax::{parse_custom_identifier, parse_regular_identifier}; use biome_c...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/selector/pseudo_class/function_selector_list.rs
crates/biome_css_parser/src/syntax/selector/pseudo_class/function_selector_list.rs
use crate::parser::CssParser; use crate::syntax::parse_error::expected_selector; use crate::syntax::parse_regular_identifier; use crate::syntax::selector::{SelectorList, eat_or_recover_selector_function_close_token}; use biome_css_syntax::CssSyntaxKind::*; use biome_css_syntax::{CssSyntaxKind, T}; use biome_parser::par...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/value/if.rs
crates/biome_css_parser/src/syntax/value/if.rs
use biome_css_syntax::CssSyntaxKind; use biome_css_syntax::CssSyntaxKind::*; use biome_css_syntax::T; use biome_parser::Parser; use biome_parser::parse_lists::ParseNodeList; use biome_parser::parse_lists::ParseSeparatedList; use biome_parser::parse_recovery::ParseRecovery; use biome_parser::parse_recovery::RecoveryResu...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/value/url.rs
crates/biome_css_parser/src/syntax/value/url.rs
use crate::lexer::CssLexContext; use crate::parser::CssParser; use crate::syntax::value::function::{is_at_function, is_nth_at_function, parse_function}; use crate::syntax::value::parse_error::expected_url_modifier; use crate::syntax::{is_at_identifier, is_at_string, parse_regular_identifier, parse_string}; use biome_c...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/value/function.rs
crates/biome_css_parser/src/syntax/value/function.rs
use super::r#if::is_at_if_function; use super::parse_error::expected_expression; use super::url::{is_at_url_function, parse_url_function}; use crate::parser::CssParser; use crate::syntax::parse_error::expected_declaration_item; use crate::syntax::value::r#if::parse_if_function; use crate::syntax::{ CssComponentValu...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/value/mod.rs
crates/biome_css_parser/src/syntax/value/mod.rs
pub(crate) mod dimension; pub(crate) mod function; pub(crate) mod r#if; mod parse_error; pub(crate) mod url;
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/value/dimension.rs
crates/biome_css_parser/src/syntax/value/dimension.rs
use crate::parser::CssParser; use biome_css_syntax::CssSyntaxKind::*; use biome_css_syntax::{CssSyntaxKind, T}; use biome_parser::prelude::ParsedSyntax; use biome_parser::prelude::ParsedSyntax::{Absent, Present}; use biome_parser::{Parser, TokenSet, token_set}; #[inline] pub(crate) fn is_at_any_dimension(p: &mut CssPa...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/value/parse_error.rs
crates/biome_css_parser/src/syntax/value/parse_error.rs
use crate::parser::CssParser; use biome_css_syntax::TextRange; use biome_parser::diagnostic::{ParseDiagnostic, expect_one_of, expected_any}; use biome_parser::prelude::ToDiagnostic; pub(crate) fn expected_url_modifier(p: &CssParser, range: TextRange) -> ParseDiagnostic { expect_one_of(&["function", "identifier"], ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/at_rule/view_transition.rs
crates/biome_css_parser/src/syntax/at_rule/view_transition.rs
use crate::parser::CssParser; use crate::syntax::block::parse_declaration_block; use biome_css_syntax::{CssSyntaxKind::*, T}; use biome_parser::{ Parser, parsed_syntax::ParsedSyntax::{self, Present}, prelude::ParsedSyntax::Absent, }; #[inline] pub(crate) fn is_at_view_transition_at_rule(p: &mut CssParser) ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/at_rule/feature.rs
crates/biome_css_parser/src/syntax/at_rule/feature.rs
use crate::parser::CssParser; use crate::syntax::parse_error::expected_identifier; use crate::syntax::{is_at_any_value, is_at_identifier, parse_any_value, parse_regular_identifier}; use biome_css_syntax::CssSyntaxKind::*; use biome_css_syntax::{CssSyntaxKind, T, TextRange}; use biome_parser::diagnostic::{ParseDiagnosti...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/at_rule/counter_style.rs
crates/biome_css_parser/src/syntax/at_rule/counter_style.rs
use crate::lexer::CssLexContext; use crate::parser::CssParser; use crate::syntax::block::parse_declaration_block; use crate::syntax::parse_custom_identifier; use crate::syntax::parse_error::expected_non_css_wide_keyword_identifier; use biome_css_syntax::CssSyntaxKind::*; use biome_css_syntax::{CssSyntaxKind, T}; use bi...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/at_rule/page.rs
crates/biome_css_parser/src/syntax/at_rule/page.rs
use crate::lexer::CssLexContext; use crate::parser::CssParser; use crate::syntax::at_rule::parse_error::{ expected_any_page_at_rule_item, expected_page_selector, expected_page_selector_pseudo, }; use crate::syntax::at_rule::{is_at_at_rule, parse_at_rule}; use crate::syntax::block::{ParseBlockBody, parse_declaration...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/at_rule/charset.rs
crates/biome_css_parser/src/syntax/at_rule/charset.rs
use crate::parser::CssParser; use crate::syntax::parse_error::expected_string; use crate::syntax::parse_string; use biome_css_syntax::CssSyntaxKind::*; use biome_css_syntax::{CssSyntaxKind, T, TextRange}; use biome_parser::parse_recovery::ParseRecoveryTokenSet; use biome_parser::parsed_syntax::ParsedSyntax::Present; us...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/at_rule/unknown.rs
crates/biome_css_parser/src/syntax/at_rule/unknown.rs
use crate::parser::CssParser; use crate::syntax::block::parse_declaration_or_rule_list_block; use crate::syntax::{is_at_identifier, parse_regular_identifier}; use biome_css_syntax::CssSyntaxKind::*; use biome_css_syntax::T; use biome_parser::parsed_syntax::ParsedSyntax::Present; use biome_parser::prelude::ParsedSyntax:...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/at_rule/position_try.rs
crates/biome_css_parser/src/syntax/at_rule/position_try.rs
use crate::syntax::block::parse_declaration_block; use crate::syntax::parse_dashed_identifier; use crate::{parser::CssParser, syntax::parse_error::expected_dashed_identifier}; use biome_css_syntax::{ CssSyntaxKind::{self, *}, T, }; use biome_parser::{ Parser, TokenSet, parse_recovery::ParseRecoveryToken...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/at_rule/document.rs
crates/biome_css_parser/src/syntax/at_rule/document.rs
use crate::lexer::CssLexContext; use crate::parser::CssParser; use crate::syntax::at_rule::parse_error::expected_any_document_matcher; use crate::syntax::block::parse_rule_block; use crate::syntax::parse_error::expected_string; use crate::syntax::parse_string; use crate::syntax::value::url::{is_at_url_function, parse_u...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/at_rule/font_feature_values.rs
crates/biome_css_parser/src/syntax/at_rule/font_feature_values.rs
use super::parse_error::{ expected_any_font_family_name, expected_any_font_feature_value_item, expected_font_feature_values_item, }; use crate::syntax::block::{ParseBlockBody, parse_declaration_block}; use crate::syntax::is_at_string; use crate::{ lexer::CssLexContext, parser::CssParser, syntax::{ ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/at_rule/value.rs
crates/biome_css_parser/src/syntax/at_rule/value.rs
use biome_css_syntax::CssSyntaxKind::*; use biome_css_syntax::{CssSyntaxKind, T, TextRange}; use biome_parser::diagnostic::{ParseDiagnostic, expect_one_of}; use biome_parser::parse_lists::ParseSeparatedList; use biome_parser::parse_recovery::{ParseRecovery, RecoveryResult}; use biome_parser::parsed_syntax::ParsedSyntax...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/at_rule/media.rs
crates/biome_css_parser/src/syntax/at_rule/media.rs
use super::parse_error::expected_media_query; use crate::parser::CssParser; use crate::syntax::at_rule::feature::parse_any_query_feature; use crate::syntax::block::parse_conditional_block; use crate::syntax::util::skip_possible_tailwind_syntax; use crate::syntax::{ is_at_identifier, is_at_metavariable, is_nth_at_id...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/at_rule/starting_style.rs
crates/biome_css_parser/src/syntax/at_rule/starting_style.rs
use crate::parser::CssParser; use crate::syntax::block::parse_conditional_block; use biome_css_syntax::CssSyntaxKind::*; use biome_css_syntax::T; use biome_parser::parsed_syntax::ParsedSyntax::Present; use biome_parser::prelude::ParsedSyntax::Absent; use biome_parser::prelude::*; /// Checks if the current token in the...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/at_rule/font_palette_values.rs
crates/biome_css_parser/src/syntax/at_rule/font_palette_values.rs
use crate::syntax::block::parse_declaration_block; use crate::syntax::parse_dashed_identifier; use crate::{parser::CssParser, syntax::parse_error::expected_dashed_identifier}; use biome_css_syntax::{ CssSyntaxKind::{self, *}, T, }; use biome_parser::{ Parser, TokenSet, parse_recovery::ParseRecoveryToken...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/at_rule/layer.rs
crates/biome_css_parser/src/syntax/at_rule/layer.rs
use crate::parser::CssParser; use crate::syntax::block::parse_conditional_block; use crate::syntax::parse_error::expected_identifier; use crate::syntax::parse_regular_identifier; use biome_css_syntax::CssSyntaxKind::*; use biome_css_syntax::{CssSyntaxKind, T}; use biome_parser::parse_lists::ParseSeparatedList; 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_css_parser/src/syntax/at_rule/font_face.rs
crates/biome_css_parser/src/syntax/at_rule/font_face.rs
use crate::parser::CssParser; use crate::syntax::block::parse_declaration_block; use biome_css_syntax::CssSyntaxKind::*; use biome_css_syntax::T; use biome_parser::parsed_syntax::ParsedSyntax::Present; use biome_parser::prelude::ParsedSyntax::Absent; use biome_parser::prelude::*; #[inline] pub(crate) fn is_at_font_fac...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/at_rule/error.rs
crates/biome_css_parser/src/syntax/at_rule/error.rs
use crate::parser::CssParser; use biome_css_syntax::CssSyntaxKind::CSS_BOGUS; use biome_css_syntax::{CssSyntaxKind, T}; use biome_parser::Parser; use biome_parser::parse_recovery::ParseRecovery; pub(crate) struct AnyQueryParseRecovery; impl ParseRecovery for AnyQueryParseRecovery { type Kind = CssSyntaxKind; ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/at_rule/scope.rs
crates/biome_css_parser/src/syntax/at_rule/scope.rs
use crate::parser::CssParser; use crate::syntax::at_rule::parse_error::expected_any_scope_range; use crate::syntax::block::parse_conditional_block; use crate::syntax::selector::SelectorList; use biome_css_syntax::CssSyntaxKind::*; use biome_css_syntax::{CssSyntaxKind, T}; use biome_parser::parse_lists::ParseSeparatedLi...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/at_rule/mod.rs
crates/biome_css_parser/src/syntax/at_rule/mod.rs
mod charset; mod color_profile; pub(crate) mod container; mod counter_style; mod document; pub(crate) mod error; pub(crate) mod feature; mod font_face; mod font_feature_values; mod font_palette_values; mod import; mod keyframes; mod layer; pub(crate) mod media; mod namespace; mod page; mod parse_error; mod position_try...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/src/syntax/at_rule/import.rs
crates/biome_css_parser/src/syntax/at_rule/import.rs
use crate::parser::CssParser; use crate::syntax::at_rule::layer::LayerNameList; use crate::syntax::at_rule::media::MediaQueryList; use crate::syntax::at_rule::supports::error::expected_any_supports_condition; use crate::syntax::at_rule::supports::parse_any_supports_condition; use crate::syntax::util::skip_possible_tail...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false