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_css_parser/src/syntax/at_rule/property.rs
crates/biome_css_parser/src/syntax/at_rule/property.rs
use biome_css_syntax::CssSyntaxKind::*; use biome_css_syntax::{CssSyntaxKind, T}; use biome_parser::TokenSet; use biome_parser::parse_recovery::ParseRecoveryTokenSet; use biome_parser::parsed_syntax::ParsedSyntax::Present; use biome_parser::prelude::ParsedSyntax::Absent; use biome_parser::token_set; use biome_parser::{...
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/namespace.rs
crates/biome_css_parser/src/syntax/at_rule/namespace.rs
use crate::parser::CssParser; use crate::syntax::at_rule::parse_error::expected_any_namespace_url; use crate::syntax::value::url::{is_at_url_function, parse_url_function}; use crate::syntax::{is_at_string, parse_regular_identifier, parse_string}; use biome_css_syntax::CssSyntaxKind::*; use biome_css_syntax::{CssSyntaxK...
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/keyframes.rs
crates/biome_css_parser/src/syntax/at_rule/keyframes.rs
use crate::lexer::CssLexContext; use crate::parser::CssParser; use crate::syntax::at_rule::parse_error::{ expected_keyframes_item, expected_keyframes_item_selector, }; use crate::syntax::block::{ParseBlockBody, parse_declaration_block}; use crate::syntax::css_modules::{ CSS_MODULES_SCOPE_SET, expected_any_css_m...
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/color_profile.rs
crates/biome_css_parser/src/syntax/at_rule/color_profile.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/parse_error.rs
crates/biome_css_parser/src/syntax/at_rule/parse_error.rs
use crate::parser::CssParser; use biome_parser::diagnostic::{ToDiagnostic, expect_one_of, expected_node}; use biome_parser::prelude::ParseDiagnostic; use biome_rowan::TextRange; pub(crate) fn expected_media_query(p: &CssParser, range: TextRange) -> ParseDiagnostic { expected_node("media query", range, p) } pub(cr...
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/tailwind.rs
crates/biome_css_parser/src/syntax/at_rule/tailwind.rs
use crate::lexer::CssLexContext; use crate::parser::CssParser; use crate::syntax::at_rule::parse_at_rule_declarator; use crate::syntax::block::{ parse_declaration_block, parse_declaration_or_rule_list_block, parse_rule_block, }; use crate::syntax::parse_error::{expected_identifier, expected_string, expected_tw_sour...
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/supports/error.rs
crates/biome_css_parser/src/syntax/at_rule/supports/error.rs
use crate::parser::CssParser; use biome_css_syntax::TextRange; use biome_parser::diagnostic::{ParseDiagnostic, ToDiagnostic, expect_one_of}; pub(crate) fn expected_any_supports_condition(p: &CssParser, range: TextRange) -> ParseDiagnostic { expect_one_of( &[ "not <supports-in-parens>", ...
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/supports/mod.rs
crates/biome_css_parser/src/syntax/at_rule/supports/mod.rs
pub(crate) mod error; use crate::parser::CssParser; use crate::syntax::at_rule::error::{AnyInParensChainParseRecovery, AnyInParensParseRecovery}; use crate::syntax::at_rule::supports::error::{ expected_any_supports_condition, expected_any_supports_condition_in_parens, }; use crate::syntax::block::parse_conditional...
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/container/error.rs
crates/biome_css_parser/src/syntax/at_rule/container/error.rs
use crate::parser::CssParser; use biome_css_syntax::TextRange; use biome_parser::diagnostic::{ParseDiagnostic, ToDiagnostic, expect_one_of}; pub(crate) fn expected_any_container_query(p: &CssParser, range: TextRange) -> ParseDiagnostic { expect_one_of( &[ "not <query-in-parens>", "<...
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/container/mod.rs
crates/biome_css_parser/src/syntax/at_rule/container/mod.rs
pub(crate) mod error; use crate::lexer::CssLexContext; use crate::parser::CssParser; use crate::syntax::at_rule::container::error::{ expected_any_container_style_in_parens, expected_any_container_style_query, }; use crate::syntax::at_rule::error::{ AnyInParensChainParseRecovery, AnyInParensParseRecovery, AnyQu...
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/lexer/tests.rs
crates/biome_css_parser/src/lexer/tests.rs
#![cfg(test)] #![expect(unused_mut, unused_variables)] use super::{CssLexer, TextSize}; use crate::lexer::CssLexContext; use crate::CssParserOptions; use biome_css_syntax::CssSyntaxKind::EOF; use biome_parser::lexer::Lexer; use quickcheck_macros::quickcheck; use std::sync::mpsc::channel; use std::thread; use std::time...
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/lexer/mod.rs
crates/biome_css_parser/src/lexer/mod.rs
//! An extremely fast, lookup table based, СSS lexer which yields SyntaxKind tokens used by the rome-css parser. #[rustfmt::skip] mod tests; use crate::CssParserOptions; use biome_css_syntax::{CssSyntaxKind, CssSyntaxKind::*, T, TextLen, TextSize}; use biome_parser::diagnostic::ParseDiagnostic; use biome_parser::lexer...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_parser/tests/quick_test.rs
crates/biome_css_parser/tests/quick_test.rs
use biome_css_parser::{CssParserOptions, parse_css}; use biome_test_utils::has_bogus_nodes_or_empty_slots; #[ignore] #[test] pub fn quick_test() { let code = r#" @utility border-overlay-* { position: relative; &::after { border-width: 1px; } } "#; let root = parse_css( code, ...
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/tests/spec_test.rs
crates/biome_css_parser/tests/spec_test.rs
use biome_configuration::Configuration; use biome_console::fmt::{Formatter, Termcolor}; use biome_console::markup; use biome_css_parser::{CssParserOptions, parse_css}; use biome_deserialize::json::deserialize_from_str; use biome_diagnostics::DiagnosticExt; use biome_diagnostics::display::PrintDiagnostic; use biome_diag...
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/tests/spec_tests.rs
crates/biome_css_parser/tests/spec_tests.rs
mod spec_test; tests_macros::gen_tests! {"tests/css_test_suite/ok/**/*.css", crate::spec_test::run, "ok"} tests_macros::gen_tests! {"tests/css_test_suite/error/**/*.css", crate::spec_test::run, "error"}
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/benches/css_parser.rs
crates/biome_css_parser/benches/css_parser.rs
use biome_css_parser::{CssParserOptions, parse_css_with_cache}; use biome_diagnostics::{DiagnosticExt, print_diagnostic_to_string}; use biome_rowan::NodeCache; use biome_test_utils::BenchCase; use criterion::{ BatchSize, BenchmarkId, Criterion, Throughput, black_box, criterion_group, criterion_main, }; use std::col...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_parser/src/prelude.rs
crates/biome_json_parser/src/prelude.rs
pub(crate) use crate::JsonParser; pub use biome_json_syntax::T; pub use biome_parser::prelude::*;
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_parser/src/lib.rs
crates/biome_json_parser/src/lib.rs
//! Extremely fast, lossless, and error tolerant JSON Parser. #![deny(clippy::use_self)] use crate::parser::JsonParser; use crate::syntax::parse_root; use biome_json_factory::JsonSyntaxFactory; use biome_json_syntax::{JsonLanguage, JsonRoot, JsonSyntaxNode}; pub use biome_parser::prelude::*; use biome_parser::{AnyPar...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_parser/src/token_source.rs
crates/biome_json_parser/src/token_source.rs
use crate::JsonParserOptions; use crate::lexer::{Lexer, Token}; use biome_json_syntax::JsonSyntaxKind::{EOF, TOMBSTONE}; use biome_json_syntax::{JsonSyntaxKind, TextRange}; use biome_parser::diagnostic::ParseDiagnostic; use biome_parser::prelude::TokenSource; use biome_parser::token_source::Trivia; use biome_rowan::Tri...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_parser/src/parser.rs
crates/biome_json_parser/src/parser.rs
use crate::token_source::JsonTokenSource; use biome_json_syntax::{JsonFileSource, JsonSyntaxKind}; use biome_parser::ParserContext; use biome_parser::diagnostic::merge_diagnostics; use biome_parser::event::Event; use biome_parser::prelude::*; use biome_parser::token_source::Trivia; pub(crate) struct JsonParser<'source...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_parser/src/syntax.rs
crates/biome_json_parser/src/syntax.rs
use crate::prelude::*; use biome_json_syntax::JsonSyntaxKind; use biome_json_syntax::JsonSyntaxKind::*; use biome_parser::ParserProgress; use biome_parser::diagnostic::{expected_any, expected_node}; use biome_parser::parse_recovery::ParseRecoveryTokenSet; use biome_parser::parsed_syntax::ParsedSyntax::Absent; 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_json_parser/src/lexer/tests.rs
crates/biome_json_parser/src/lexer/tests.rs
#![cfg(test)] #![expect(unused_mut)] use super::{Lexer, TextSize}; use biome_json_syntax::JsonSyntaxKind::{self, EOF}; use quickcheck_macros::quickcheck; use std::sync::mpsc::channel; use std::thread; use std::time::Duration; // Assert the result of lexing a piece of source code, // and make sure the tokens yielded a...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_parser/src/lexer/mod.rs
crates/biome_json_parser/src/lexer/mod.rs
//! An extremely fast, lookup table based, JSON lexer which yields SyntaxKind tokens used by the rome-json parser. #[rustfmt::skip] mod tests; use biome_json_syntax::{JsonSyntaxKind, JsonSyntaxKind::*, T, TextLen, TextRange, TextSize}; use biome_parser::diagnostic::ParseDiagnostic; use biome_unicode_table::{Dispatch:...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_parser/tests/spec_test.rs
crates/biome_json_parser/tests/spec_test.rs
use biome_console::fmt::{Formatter, Termcolor}; use biome_console::markup; use biome_diagnostics::DiagnosticExt; use biome_diagnostics::display::PrintDiagnostic; use biome_diagnostics::termcolor; use biome_json_parser::{JsonParserOptions, parse_json}; use biome_rowan::SyntaxKind; use biome_test_utils::validate_eof_toke...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_parser/tests/spec_tests.rs
crates/biome_json_parser/tests/spec_tests.rs
mod spec_test; mod ok { //! Tests that must pass according to the JSON specification tests_macros::gen_tests! {"tests/json_test_suite/ok/*.json", crate::spec_test::run, "ok"} } mod err { //! Tests that must fail according to the JSON specification tests_macros::gen_tests! {"tests/json_test_suite/err/*...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_json_parser/benches/json_parser.rs
crates/biome_json_parser/benches/json_parser.rs
use biome_diagnostics::{DiagnosticExt, print_diagnostic_to_string}; use biome_json_parser::{JsonParserOptions, parse_json, parse_json_with_cache}; use biome_rowan::NodeCache; use biome_test_utils::BenchCase; use criterion::{ BatchSize, BenchmarkId, Criterion, Throughput, black_box, criterion_group, criterion_main, ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_runtime/src/module_loader.rs
crates/biome_js_runtime/src/module_loader.rs
use std::cell::RefCell; use std::rc::Rc; use std::sync::Arc; use boa_engine::module::{ModuleLoader, Referrer}; use boa_engine::{JsNativeError, JsResult, JsString, Module, Source}; use camino::{Utf8Path, Utf8PathBuf}; use rustc_hash::FxHashMap; use biome_resolver::{FsWithResolverProxy, ResolveOptions, resolve}; pub 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_runtime/src/lib.rs
crates/biome_js_runtime/src/lib.rs
mod context; mod module_loader; mod plugin_api; pub use context::JsExecContext; pub use module_loader::JsModuleLoader;
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_runtime/src/plugin_api.rs
crates/biome_js_runtime/src/plugin_api.rs
use std::cell::RefCell; use std::rc::Rc; use boa_engine::module::SyntheticModuleInitializer; use boa_engine::object::FunctionObjectBuilder; use boa_engine::{Context, JsNativeError, JsValue, Module, NativeFunction, js_string}; use biome_analyze::RuleDiagnostic; use biome_diagnostics::{Severity, category}; use biome_te...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_runtime/src/context.rs
crates/biome_js_runtime/src/context.rs
use std::rc::Rc; use std::sync::Arc; use boa_engine::builtins::promise::PromiseState; use boa_engine::object::builtins::JsFunction; use boa_engine::{ Context, JsError, JsNativeError, JsResult, JsValue, Module, NativeFunction, Source, js_string, }; use camino::Utf8Path; use biome_analyze::RuleDiagnostic; 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_js_type_info_macros/src/lib.rs
crates/biome_js_type_info_macros/src/lib.rs
#![deny(clippy::use_self)] mod resolvable_derive; use proc_macro::TokenStream; use proc_macro_error2::*; use syn::{DeriveInput, parse_macro_input}; /// Implements the `Resolvable` trait for a given type. /// /// Types with a derived `Resolvable` implementation are expected to be one of /// the following: /// - A 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_type_info_macros/src/resolvable_derive.rs
crates/biome_js_type_info_macros/src/resolvable_derive.rs
use proc_macro_error2::*; use proc_macro2::{Ident, TokenStream}; use quote::{ToTokens, quote}; use syn::{Data, Fields, GenericArgument, PathArguments, Type}; pub(crate) enum DeriveInput { Enum { ident: Ident, variants: Vec<VariantData>, }, Struct { ident: Ident, fields: Vec<...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_factory/src/lib.rs
crates/biome_js_factory/src/lib.rs
#![deny(clippy::use_self)] use biome_js_syntax::JsLanguage; use biome_rowan::TreeBuilder; mod generated; pub use crate::generated::JsSyntaxFactory; pub mod make; mod utils; // Re-exported for tests #[doc(hidden)] pub use biome_js_syntax as syntax; pub type JsSyntaxTreeBuilder = TreeBuilder<'static, JsLanguage, JsS...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_factory/src/utils.rs
crates/biome_js_factory/src/utils.rs
/// Utility function to escape strings. /// /// This function iterates over characters of strings and adds an escape character if needed. /// If there are already odd number of escape characters before the character needs to be escaped, /// the escape character is not added. /// /// **sample case** /// /// | needs_esca...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_factory/src/make.rs
crates/biome_js_factory/src/make.rs
use std::fmt::Display; use biome_js_syntax::{ AnyJsExpression, AnyTsType, JsParenthesizedExpression, JsSyntaxKind, JsSyntaxToken, TsParenthesizedType, }; use biome_rowan::TriviaPiece; pub use crate::generated::node_factory::*; use crate::utils; /// Create a new identifier token with no attached trivia pub 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_factory/src/generated.rs
crates/biome_js_factory/src/generated.rs
#[rustfmt::skip] pub(super) mod syntax_factory; #[rustfmt::skip] pub(crate) mod node_factory; pub use syntax_factory::JsSyntaxFactory;
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_factory/src/generated/syntax_factory.rs
crates/biome_js_factory/src/generated/syntax_factory.rs
//! Generated file, do not edit by hand, see `xtask/codegen` #![allow(unused_mut)] use biome_js_syntax::{JsSyntaxKind, JsSyntaxKind::*, T, *}; use biome_rowan::{ AstNode, ParsedChildren, RawNodeSlots, RawSyntaxNode, SyntaxFactory, SyntaxKind, }; #[derive(Debug)] pub struct JsSyntaxFactory; impl SyntaxFactory for J...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_factory/src/generated/node_factory.rs
crates/biome_js_factory/src/generated/node_factory.rs
//! Generated file, do not edit by hand, see `xtask/codegen` #![allow(clippy::redundant_closure)] use biome_js_syntax::{ JsSyntaxElement as SyntaxElement, JsSyntaxNode as SyntaxNode, JsSyntaxToken as SyntaxToken, *, }; use biome_rowan::AstNode; pub fn js_accessor_modifier(modifier_token: SyntaxToken) -> JsAccessor...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_configuration/src/css.rs
crates/biome_configuration/src/css.rs
use crate::bool::Bool; use biome_deserialize_macros::{Deserializable, Merge}; use biome_formatter::{IndentStyle, IndentWidth, LineEnding, LineWidth, QuoteStyle}; use bpaf::Bpaf; use serde::{Deserialize, Serialize}; /// Options applied to CSS files #[derive( Bpaf, Clone, Debug, Default, Deserializable, Deserialize,...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_configuration/src/diagnostics.rs
crates/biome_configuration/src/diagnostics.rs
use crate::editorconfig::EditorConfigErrorKind; use biome_console::fmt::Display; use biome_console::{MarkupBuf, markup}; use biome_deserialize::DeserializationDiagnostic; use biome_diagnostics::{ Advices, Category, Diagnostic, Error, Location, LogCategory, MessageAndDescription, Severity, Visit, category, }; us...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_configuration/src/html.rs
crates/biome_configuration/src/html.rs
use crate::bool::Bool; use biome_deserialize_macros::{Deserializable, Merge}; use biome_formatter::{ AttributePosition, BracketSameLine, IndentStyle, IndentWidth, LineEnding, LineWidth, }; use biome_html_formatter::context::{ IndentScriptAndStyle, SelfCloseVoidElements, WhitespaceSensitivity, }; use bpaf::Bpaf;...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_configuration/src/max_size.rs
crates/biome_configuration/src/max_size.rs
use biome_deserialize::{Deserializable, DeserializableValue, DeserializationContext}; use biome_deserialize_macros::Merge; use std::{ fmt, num::{NonZeroU64, ParseIntError}, str::FromStr, }; /// Limit the size of files to 1.0 MiB by default pub const DEFAULT_FILE_SIZE_LIMIT: NonZeroU64 = // SAFETY: This...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_configuration/src/lib.rs
crates/biome_configuration/src/lib.rs
//! This module contains the configuration of `biome.json` //! //! The configuration is divided by "tool", and then it's possible to further customise it //! by language. The language might further option divided by tool. #![deny(clippy::use_self)] pub mod analyzer; pub mod bool; pub mod css; pub mod diagnostics; pub...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_configuration/src/grit.rs
crates/biome_configuration/src/grit.rs
use crate::bool::Bool; use biome_deserialize_macros::{Deserializable, Merge}; use biome_formatter::{IndentStyle, IndentWidth, LineEnding, LineWidth}; use bpaf::Bpaf; use serde::{Deserialize, Serialize}; /// Options applied to GritQL files #[derive( Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize, Bpaf...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_configuration/src/overrides.rs
crates/biome_configuration/src/overrides.rs
use crate::analyzer::assist::AssistEnabled; use crate::analyzer::{LinterEnabled, RuleDomains}; use crate::formatter::{FormatWithErrorsEnabled, FormatterEnabled}; use crate::html::HtmlConfiguration; use crate::max_size::MaxSize; use crate::{ CssConfiguration, GraphqlConfiguration, GritConfiguration, JsConfiguration,...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_configuration/src/vcs.rs
crates/biome_configuration/src/vcs.rs
use crate::bool::Bool; use biome_deserialize::{ DeserializableValidator, DeserializationContext, DeserializationDiagnostic, }; use biome_deserialize_macros::{Deserializable, Merge}; use bpaf::Bpaf; use serde::{Deserialize, Serialize}; use std::str::FromStr; // NOTE: when adding a new ignore file, update [DocumentF...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_configuration/src/json.rs
crates/biome_configuration/src/json.rs
use crate::bool::Bool; use biome_deserialize_macros::{Deserializable, Merge}; use biome_formatter::{BracketSpacing, Expand, IndentStyle, IndentWidth, LineEnding, LineWidth}; use biome_json_formatter::context::TrailingCommas; use bpaf::Bpaf; use serde::{Deserialize, Serialize}; /// Options applied to JSON files #[deriv...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_configuration/src/bool.rs
crates/biome_configuration/src/bool.rs
use biome_console::fmt::Formatter; use biome_deserialize::{Deserializable, DeserializableValue, DeserializationContext, Merge}; use std::{ fmt, str::{FromStr, ParseBoolError}, }; /// A `bool` type wrapper with a configurable default value (`true` or `false`) /// /// The const generic indicates the default bool...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_configuration/src/organize_imports.rs
crates/biome_configuration/src/organize_imports.rs
use biome_deserialize::StringSet; use biome_deserialize_macros::{Deserializable, Merge, Partial}; use bpaf::Bpaf; use serde::{Deserialize, Serialize}; #[derive(Clone, Debug, Deserialize, Eq, Partial, PartialEq, Serialize)] #[partial(derive(Bpaf, Clone, Deserializable, Eq, Merge, PartialEq))] #[partial(cfg_attr(feature...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_configuration/src/editorconfig.rs
crates/biome_configuration/src/editorconfig.rs
//! Helpers for handling .editorconfig files. //! //! Here's how the options are mapped to the formatter config: //! //! | .editorconfig option | biome option | //! |----------------------|--------------| //! | indent_style | indent_style | //! | indent_size | indent_width | //! | end_of_line ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_configuration/src/formatter.rs
crates/biome_configuration/src/formatter.rs
use crate::bool::Bool; use biome_deserialize_macros::{Deserializable, Merge}; use biome_formatter::{ AttributePosition, BracketSameLine, BracketSpacing, Expand, IndentStyle, IndentWidth, LineEnding, LineWidth, }; use bpaf::Bpaf; use serde::{Deserialize, Serialize}; pub type FormatterEnabled = Bool<true>; pub t...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_configuration/src/extends.rs
crates/biome_configuration/src/extends.rs
use biome_console::markup; use biome_deserialize::{ Deserializable, DeserializableType, DeserializableValue, DeserializationContext, DeserializationDiagnostic, }; use biome_deserialize_macros::Merge; use biome_diagnostics::Severity; use serde::{Deserialize, Serialize}; /// A list of paths to other JSON files, ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_configuration/src/generated.rs
crates/biome_configuration/src/generated.rs
mod assist; mod domain_selector; mod linter; pub use assist::push_to_analyzer_assist; pub use linter::push_to_analyzer_rules;
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_configuration/src/graphql.rs
crates/biome_configuration/src/graphql.rs
use crate::bool::Bool; use biome_deserialize_macros::{Deserializable, Merge}; use biome_formatter::{ BracketSpacing, IndentStyle, IndentWidth, LineEnding, LineWidth, QuoteStyle, }; use bpaf::Bpaf; use serde::{Deserialize, Serialize}; /// Options applied to GraphQL files #[derive( Bpaf, Clone, Default, Debug, D...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_configuration/src/analyzer/mod.rs
crates/biome_configuration/src/analyzer/mod.rs
pub mod assist; pub mod linter; use crate::analyzer::assist::Actions; pub use crate::analyzer::linter::*; use biome_analyze::options::RuleOptions; use biome_analyze::{FixKind, Rule, RuleCategory, RuleDomain, RuleFilter}; use biome_deserialize::{ Deserializable, DeserializableType, DeserializableValue, Deserializat...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_configuration/src/analyzer/linter/mod.rs
crates/biome_configuration/src/analyzer/linter/mod.rs
mod rules; use crate::bool::Bool; use biome_analyze::RuleDomain; use biome_deserialize_macros::{Deserializable, Merge}; use bpaf::Bpaf; pub use rules::*; use rustc_hash::FxHashMap; use serde::{Deserialize, Serialize}; use std::ops::Deref; pub type LinterEnabled = Bool<true>; #[derive( Clone, Debug, Default, Dese...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_configuration/src/analyzer/linter/rules.rs
crates/biome_configuration/src/analyzer/linter/rules.rs
//! Generated file, do not edit by hand, see `xtask/codegen` use crate::analyzer::{ GroupPlainConfiguration, RuleConfiguration, RuleFixConfiguration, RuleGroupExt, RulePlainConfiguration, SeverityOrGroup, }; use biome_analyze::{RuleFilter, options::RuleOptions}; use biome_deserialize_macros::{Deserializable, M...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_configuration/src/analyzer/assist/mod.rs
crates/biome_configuration/src/analyzer/assist/mod.rs
mod actions; pub use crate::analyzer::assist::actions::*; use crate::bool::Bool; use biome_deserialize_macros::{Deserializable, Merge}; use bpaf::Bpaf; use serde::{Deserialize, Serialize}; pub type AssistEnabled = Bool<true>; #[derive( Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize, Bpaf, Deserializ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_configuration/src/analyzer/assist/actions.rs
crates/biome_configuration/src/analyzer/assist/actions.rs
//! Generated file, do not edit by hand, see `xtask/codegen` use crate::analyzer::{RuleAssistConfiguration, RuleAssistPlainConfiguration}; use biome_analyze::{RuleFilter, options::RuleOptions}; use biome_deserialize_macros::{Deserializable, Merge}; use biome_diagnostics::{Category, Severity}; use rustc_hash::FxHashSet...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_configuration/src/generated/linter.rs
crates/biome_configuration/src/generated/linter.rs
//! Generated file, do not edit by hand, see `xtask/codegen` use crate::analyzer::linter::*; use biome_analyze::{AnalyzerRules, MetadataRegistry}; pub fn push_to_analyzer_rules( rules: &Rules, metadata: &MetadataRegistry, analyzer_rules: &mut AnalyzerRules, ) { if let Some(rules) = rules.a11y.as_ref() ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_configuration/src/generated/assist.rs
crates/biome_configuration/src/generated/assist.rs
//! Generated file, do not edit by hand, see `xtask/codegen` use crate::analyzer::assist::*; use biome_analyze::{AnalyzerRules, MetadataRegistry}; pub fn push_to_analyzer_assist( rules: &Actions, metadata: &MetadataRegistry, analyzer_rules: &mut AnalyzerRules, ) { if let Some(rules) = rules.source.as_r...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_configuration/src/generated/domain_selector.rs
crates/biome_configuration/src/generated/domain_selector.rs
//! Generated file, do not edit by hand, see `xtask/codegen` use crate::analyzer::DomainSelector; use biome_analyze::{Rule, RuleFilter}; use std::sync::LazyLock; static NEXT_FILTERS: LazyLock<Vec<RuleFilter<'static>>> = LazyLock::new(|| { vec![ RuleFilter::Rule("correctness", "useExhaustiveDependencies"), ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_configuration/src/javascript/mod.rs
crates/biome_configuration/src/javascript/mod.rs
mod formatter; use crate::bool::Bool; use biome_deserialize_macros::{Deserializable, Merge}; use bpaf::Bpaf; pub use formatter::*; use serde::{Deserialize, Serialize}; use std::str::FromStr; /// A set of options applied to the JavaScript files #[derive( Bpaf, Clone, Debug, Default, Deserializable, Deserialize, Eq,...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_configuration/src/javascript/formatter.rs
crates/biome_configuration/src/javascript/formatter.rs
use crate::bool::Bool; use biome_deserialize_macros::{Deserializable, Merge}; use biome_formatter::{ AttributePosition, BracketSameLine, BracketSpacing, Expand, IndentStyle, IndentWidth, LineEnding, LineWidth, QuoteStyle, }; use biome_js_formatter::context::{ ArrowParentheses, OperatorLinebreak, QuoteProper...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_configuration/tests/spec_tests.rs
crates/biome_configuration/tests/spec_tests.rs
use biome_configuration::Configuration; use biome_deserialize::json::deserialize_from_json_str; use biome_diagnostics::{DiagnosticExt, print_diagnostic_to_string}; use biome_json_parser::JsonParserOptions; use std::ffi::OsStr; use std::fs::read_to_string; use std::path::Path; tests_macros::gen_tests! {"tests/invalid/*...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_configuration/benches/biome_json.rs
crates/biome_configuration/benches/biome_json.rs
use biome_configuration::Configuration; use biome_deserialize::json::deserialize_from_json_str; use biome_json_parser::JsonParserOptions; use criterion::{BenchmarkId, Criterion, Throughput, black_box, criterion_group, criterion_main}; #[cfg(target_os = "windows")] #[global_allocator] static GLOBAL: mimalloc::MiMalloc ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_formatter/src/syntax_rewriter.rs
crates/biome_js_formatter/src/syntax_rewriter.rs
use crate::comments::is_type_comment; use biome_formatter::{TransformSourceMap, TransformSourceMapBuilder}; use biome_js_syntax::{ AnyJsAssignment, AnyJsExpression, AnyJsOptionalChainExpression, AnyTsType, JsLanguage, JsLogicalExpression, JsSyntaxKind, JsSyntaxNode, JsSyntaxTrivia, misc_ext::AnyJsParenthesized,...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_formatter/src/prelude.rs
crates/biome_js_formatter/src/prelude.rs
//! This module provides important and useful traits to help to format tokens and nodes //! when implementing a syntax formatter. pub(crate) use crate::{ AsFormat as _, FormatNodeRule, FormattedIterExt, JsFormatContext, JsFormatter, comments::JsComments, format_number_token, format_or_verbatim, format_removed,...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_formatter/src/lib.rs
crates/biome_js_formatter/src/lib.rs
//! Biome's official JavaScript formatter. //! //! ## Implement the formatter //! //! Our formatter is node based. Meaning that each AST node knows how to format itself. In order to implement //! the formatting, a node has to implement the trait `FormatNode`. //! //! `biome` has an automatic code generation that create...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_formatter/src/comments.rs
crates/biome_js_formatter/src/comments.rs
use crate::prelude::*; use crate::utils::AnyJsConditional; use biome_diagnostics_categories::category; use biome_formatter::comments::is_alignable_comment; use biome_formatter::{ comments::{ CommentKind, CommentPlacement, CommentStyle, CommentTextPosition, Comments, DecoratedComment, SourceComment, ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_formatter/src/cst.rs
crates/biome_js_formatter/src/cst.rs
use crate::prelude::*; use biome_formatter::{FormatOwnedWithRule, FormatRefWithRule}; use crate::{AsFormat, IntoFormat, JsFormatContext}; use biome_js_syntax::{JsSyntaxNode, map_syntax_node}; #[derive(Debug, Copy, Clone, Default)] pub struct FormatJsSyntaxNode; impl biome_formatter::FormatRule<JsSyntaxNode> for Form...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_formatter/src/trivia.rs
crates/biome_js_formatter/src/trivia.rs
use crate::prelude::JsFormatContext; use crate::{FormatJsSyntaxToken, JsFormatter}; use biome_formatter::formatter::Formatter; use biome_formatter::prelude::{ NumberFormatOptions, format_trimmed_number, syntax_token_cow_slice, }; use biome_formatter::trivia::FormatToken; use biome_formatter::{Argument, Format, Form...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_formatter/src/parentheses.rs
crates/biome_js_formatter/src/parentheses.rs
#[cfg(test)] pub(crate) mod tests { use crate::transform; use biome_js_parser::JsParserOptions; use biome_js_syntax::parentheses::NeedsParentheses; use biome_js_syntax::{JsFileSource, JsLanguage}; use biome_rowan::AstNode; pub(crate) fn assert_needs_parentheses_impl< T: AstNode<Language...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_formatter/src/format.rs
crates/biome_js_formatter/src/format.rs
//! Generated file, do not edit by hand, see `xtask/codegen` use crate::{Format, FormatElement, FormatNode, Formatter}; use biome_formatter::FormatResult; impl Format for biome_js_syntax::JsScript { fn format(&self, formatter: &Formatter) -> FormatResult<FormatElement> { self.format_node(formatter) } }...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_formatter/src/verbatim.rs
crates/biome_js_formatter/src/verbatim.rs
use crate::context::JsFormatContext; use biome_formatter::format_element::tag::VerbatimKind; use biome_formatter::formatter::Formatter; use biome_formatter::prelude::{Tag, text}; use biome_formatter::trivia::{FormatLeadingComments, FormatTrailingComments}; use biome_formatter::{ Buffer, CstFormatContext, Format, Fo...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_formatter/src/context.rs
crates/biome_js_formatter/src/context.rs
pub mod trailing_commas; use crate::comments::{FormatJsLeadingComment, JsCommentStyle, JsComments}; use biome_deserialize_macros::{Deserializable, Merge}; use biome_formatter::printer::PrinterOptions; use biome_formatter::{ AttributePosition, BracketSameLine, BracketSpacing, CstFormatContext, Expand, FormatContext...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_formatter/src/separated.rs
crates/biome_js_formatter/src/separated.rs
use crate::prelude::*; use crate::{AsFormat, FormatJsSyntaxToken}; use biome_formatter::FormatRefWithRule; use biome_formatter::separated::{FormatSeparatedElementRule, FormatSeparatedIter}; use biome_js_syntax::{JsLanguage, JsSyntaxToken}; use biome_rowan::{AstNode, AstSeparatedList, AstSeparatedListElementsIterator}; ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_formatter/src/generated.rs
crates/biome_js_formatter/src/generated.rs
//! This is a generated file. Don't modify it by hand! Run 'cargo codegen formatter' to re-generate the file. #![allow(clippy::use_self)] #![expect(clippy::default_constructed_unit_structs)] use crate::{ AsFormat, FormatBogusNodeRule, FormatNodeRule, IntoFormat, JsFormatContext, JsFormatter, }; use biome_formatter...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_formatter/src/jsx/mod.rs
crates/biome_js_formatter/src/jsx/mod.rs
//! This is a generated file. Don't modify it by hand! Run 'cargo codegen formatter' to re-generate the file. pub(crate) mod any; pub(crate) mod attribute; pub(crate) mod auxiliary; pub(crate) mod expressions; pub(crate) mod lists; pub(crate) mod objects; pub(crate) mod tag;
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_formatter/src/jsx/lists/child_list.rs
crates/biome_js_formatter/src/jsx/lists/child_list.rs
use crate::JsFormatter; use crate::prelude::*; use crate::utils::jsx::{ JsxChild, JsxChildrenIterator, JsxRawSpace, JsxSpace, is_meaningful_jsx_text, is_whitespace_jsx_expression, jsx_split_children, }; use biome_formatter::format_element::tag::{GroupMode, Tag}; use biome_formatter::{CstFormatContext, FormatRul...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_formatter/src/jsx/lists/attribute_list.rs
crates/biome_js_formatter/src/jsx/lists/attribute_list.rs
use crate::prelude::*; use biome_formatter::AttributePosition; use biome_js_syntax::JsxAttributeList; #[derive(Debug, Clone, Default)] pub struct FormatJsxAttributeList; impl FormatRule<JsxAttributeList> for FormatJsxAttributeList { type Context = JsFormatContext; fn fmt(&self, node: &JsxAttributeList, 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_formatter/src/jsx/lists/mod.rs
crates/biome_js_formatter/src/jsx/lists/mod.rs
//! This is a generated file. Don't modify it by hand! Run 'cargo codegen formatter' to re-generate the file. pub(crate) mod attribute_list; pub(crate) mod child_list;
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_formatter/src/jsx/auxiliary/reference_identifier.rs
crates/biome_js_formatter/src/jsx/auxiliary/reference_identifier.rs
use crate::prelude::*; use biome_formatter::write; use biome_js_syntax::JsxReferenceIdentifier; #[derive(Debug, Clone, Default)] pub struct FormatJsxReferenceIdentifier; impl FormatNodeRule<JsxReferenceIdentifier> for FormatJsxReferenceIdentifier { fn fmt_fields(&self, node: &JsxReferenceIdentifier, f: &mut JsFo...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_formatter/src/jsx/auxiliary/string.rs
crates/biome_js_formatter/src/jsx/auxiliary/string.rs
use crate::prelude::*; use crate::utils::{FormatLiteralStringToken, StringLiteralParentKind}; use biome_formatter::write; use biome_js_syntax::JsxString; #[derive(Debug, Clone, Default)] pub struct FormatJsxString; impl FormatNodeRule<JsxString> for FormatJsxString { fn fmt_fields(&self, node: &JsxString, f: &mu...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_formatter/src/jsx/auxiliary/expression_child.rs
crates/biome_js_formatter/src/jsx/auxiliary/expression_child.rs
use crate::jsx::attribute::expression_attribute_value::should_inline_jsx_expression; use crate::prelude::*; use crate::prelude::{format_args, write}; use biome_formatter::{CstFormatContext, FormatResult}; use biome_js_syntax::binary_like_expression::AnyJsBinaryLikeExpression; use biome_js_syntax::{AnyJsExpression, Jsx...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_formatter/src/jsx/auxiliary/text.rs
crates/biome_js_formatter/src/jsx/auxiliary/text.rs
use crate::prelude::*; use crate::verbatim::format_js_verbatim_node; use biome_formatter::FormatResult; use biome_js_syntax::JsxText; #[derive(Debug, Clone, Default)] pub struct FormatJsxText; impl FormatNodeRule<JsxText> for FormatJsxText { fn fmt_fields(&self, node: &JsxText, f: &mut JsFormatter) -> FormatResul...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_formatter/src/jsx/auxiliary/mod.rs
crates/biome_js_formatter/src/jsx/auxiliary/mod.rs
//! This is a generated file. Don't modify it by hand! Run 'cargo codegen formatter' to re-generate the file. pub(crate) mod expression_child; pub(crate) mod name; pub(crate) mod namespace_name; pub(crate) mod reference_identifier; pub(crate) mod spread_child; pub(crate) mod string; pub(crate) mod text;
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_formatter/src/jsx/auxiliary/namespace_name.rs
crates/biome_js_formatter/src/jsx/auxiliary/namespace_name.rs
use crate::prelude::*; use biome_formatter::write; use biome_js_syntax::{JsxNamespaceName, JsxNamespaceNameFields}; #[derive(Debug, Clone, Default)] pub struct FormatJsxNamespaceName; impl FormatNodeRule<JsxNamespaceName> for FormatJsxNamespaceName { fn fmt_fields(&self, node: &JsxNamespaceName, f: &mut JsFormat...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_formatter/src/jsx/auxiliary/name.rs
crates/biome_js_formatter/src/jsx/auxiliary/name.rs
use crate::prelude::*; use biome_formatter::write; use biome_js_syntax::{JsxName, JsxNameFields}; #[derive(Debug, Clone, Default)] pub struct FormatJsxName; impl FormatNodeRule<JsxName> for FormatJsxName { fn fmt_fields(&self, node: &JsxName, f: &mut JsFormatter) -> FormatResult<()> { let JsxNameFields {...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_formatter/src/jsx/auxiliary/spread_child.rs
crates/biome_js_formatter/src/jsx/auxiliary/spread_child.rs
use crate::prelude::*; use biome_formatter::write; use crate::utils::format_node_without_comments::FormatAnyJsExpressionWithoutComments; use biome_js_syntax::{JsxSpreadChild, JsxSpreadChildFields}; #[derive(Debug, Clone, Default)] pub struct FormatJsxSpreadChild; impl FormatNodeRule<JsxSpreadChild> for FormatJsxSpre...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_formatter/src/jsx/expressions/tag_expression.rs
crates/biome_js_formatter/src/jsx/expressions/tag_expression.rs
use crate::prelude::*; use crate::utils::jsx::{WrapState, get_wrap_state}; use biome_formatter::{format_args, write}; use biome_js_syntax::parentheses::NeedsParentheses; use biome_js_syntax::{ JsArrowFunctionExpression, JsCallArgumentList, JsCallExpression, JsxExpressionChild, JsxTagExpression, }; use biome_ro...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_formatter/src/jsx/expressions/mod.rs
crates/biome_js_formatter/src/jsx/expressions/mod.rs
//! This is a generated file. Don't modify it by hand! Run 'cargo codegen formatter' to re-generate the file. pub(crate) mod tag_expression;
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_formatter/src/jsx/tag/element.rs
crates/biome_js_formatter/src/jsx/tag/element.rs
use crate::prelude::*; use crate::jsx::lists::child_list::{FormatChildrenResult, FormatJsxChildList, JsxChildListLayout}; use crate::utils::jsx::{is_jsx_suppressed, is_meaningful_jsx_text}; use biome_formatter::{CstFormatContext, FormatResult, FormatRuleWithOptions, format_args, write}; use biome_js_syntax::{ AnyJ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_formatter/src/jsx/tag/closing_fragment.rs
crates/biome_js_formatter/src/jsx/tag/closing_fragment.rs
use crate::prelude::*; use biome_formatter::write; use biome_js_syntax::{JsxClosingFragment, JsxClosingFragmentFields}; #[derive(Debug, Clone, Default)] pub struct FormatJsxClosingFragment; impl FormatNodeRule<JsxClosingFragment> for FormatJsxClosingFragment { fn fmt_fields(&self, node: &JsxClosingFragment, 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_formatter/src/jsx/tag/closing_element.rs
crates/biome_js_formatter/src/jsx/tag/closing_element.rs
use crate::prelude::*; use biome_formatter::write; use biome_js_syntax::{JsxClosingElement, JsxClosingElementFields}; #[derive(Debug, Clone, Default)] pub struct FormatJsxClosingElement; impl FormatNodeRule<JsxClosingElement> for FormatJsxClosingElement { fn fmt_fields(&self, node: &JsxClosingElement, f: &mut Js...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_formatter/src/jsx/tag/fragment.rs
crates/biome_js_formatter/src/jsx/tag/fragment.rs
use crate::prelude::*; use crate::jsx::tag::element::AnyJsxTagWithChildren; use crate::utils::jsx::is_jsx_suppressed; use biome_formatter::write; use biome_js_syntax::JsxFragment; #[derive(Debug, Clone, Default)] pub struct FormatJsxFragment; impl FormatNodeRule<JsxFragment> for FormatJsxFragment { fn fmt_fields...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_formatter/src/jsx/tag/opening_element.rs
crates/biome_js_formatter/src/jsx/tag/opening_element.rs
use crate::prelude::*; use biome_formatter::{CstFormatContext, write}; use biome_js_syntax::{ AnyJsxAttribute, AnyJsxAttributeValue, AnyJsxElementName, JsSyntaxToken, JsxAttributeList, JsxOpeningElement, JsxSelfClosingElement, JsxString, TsTypeArguments, }; use biome_rowan::{SyntaxResult, declare_node_union}; ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_formatter/src/jsx/tag/mod.rs
crates/biome_js_formatter/src/jsx/tag/mod.rs
//! This is a generated file. Don't modify it by hand! Run 'cargo codegen formatter' to re-generate the file. pub(crate) mod closing_element; pub(crate) mod closing_fragment; pub(crate) mod element; pub(crate) mod fragment; pub(crate) mod opening_element; pub(crate) mod opening_fragment; pub(crate) mod self_closing_el...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_formatter/src/jsx/tag/opening_fragment.rs
crates/biome_js_formatter/src/jsx/tag/opening_fragment.rs
use crate::prelude::*; use biome_formatter::write; use biome_js_syntax::{JsxOpeningFragment, JsxOpeningFragmentFields}; #[derive(Debug, Clone, Default)] pub struct FormatJsxOpeningFragment; impl FormatNodeRule<JsxOpeningFragment> for FormatJsxOpeningFragment { fn fmt_fields(&self, node: &JsxOpeningFragment, 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_formatter/src/jsx/tag/self_closing_element.rs
crates/biome_js_formatter/src/jsx/tag/self_closing_element.rs
use crate::prelude::*; use crate::jsx::tag::opening_element::AnyJsxOpeningElement; use crate::utils::jsx::is_jsx_suppressed; use biome_js_syntax::JsxSelfClosingElement; #[derive(Debug, Clone, Default)] pub struct FormatJsxSelfClosingElement; impl FormatNodeRule<JsxSelfClosingElement> for FormatJsxSelfClosingElement...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false