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_grit_formatter/src/grit/any/regex.rs
crates/biome_grit_formatter/src/grit/any/regex.rs
//! This is a generated file. Don't modify it by hand! Run 'cargo codegen formatter' to re-generate the file. use crate::prelude::*; use biome_grit_syntax::AnyGritRegex; #[derive(Debug, Clone, Default)] pub(crate) struct FormatAnyGritRegex; impl FormatRule<AnyGritRegex> for FormatAnyGritRegex { type Context = Grit...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_grit_formatter/src/grit/any/list_accessor_subject.rs
crates/biome_grit_formatter/src/grit/any/list_accessor_subject.rs
//! This is a generated file. Don't modify it by hand! Run 'cargo codegen formatter' to re-generate the file. use crate::prelude::*; use biome_grit_syntax::AnyGritListAccessorSubject; #[derive(Debug, Clone, Default)] pub(crate) struct FormatAnyGritListAccessorSubject; impl FormatRule<AnyGritListAccessorSubject> for Fo...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_grit_formatter/src/grit/any/code_snippet_source.rs
crates/biome_grit_formatter/src/grit/any/code_snippet_source.rs
//! This is a generated file. Don't modify it by hand! Run 'cargo codegen formatter' to re-generate the file. use crate::prelude::*; use biome_grit_syntax::AnyGritCodeSnippetSource; #[derive(Debug, Clone, Default)] pub(crate) struct FormatAnyGritCodeSnippetSource; impl FormatRule<AnyGritCodeSnippetSource> for FormatAn...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_grit_formatter/src/grit/any/map_accessor_subject.rs
crates/biome_grit_formatter/src/grit/any/map_accessor_subject.rs
//! This is a generated file. Don't modify it by hand! Run 'cargo codegen formatter' to re-generate the file. use crate::prelude::*; use biome_grit_syntax::AnyGritMapAccessorSubject; #[derive(Debug, Clone, Default)] pub(crate) struct FormatAnyGritMapAccessorSubject; impl FormatRule<AnyGritMapAccessorSubject> for Forma...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_grit_formatter/src/grit/any/language_name.rs
crates/biome_grit_formatter/src/grit/any/language_name.rs
//! This is a generated file. Don't modify it by hand! Run 'cargo codegen formatter' to re-generate the file. use crate::prelude::*; use biome_grit_syntax::AnyGritLanguageName; #[derive(Debug, Clone, Default)] pub(crate) struct FormatAnyGritLanguageName; impl FormatRule<AnyGritLanguageName> for FormatAnyGritLanguageNa...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_grit_formatter/src/grit/any/maybe_curly_pattern.rs
crates/biome_grit_formatter/src/grit/any/maybe_curly_pattern.rs
//! This is a generated file. Don't modify it by hand! Run 'cargo codegen formatter' to re-generate the file. use crate::prelude::*; use biome_grit_syntax::AnyGritMaybeCurlyPattern; #[derive(Debug, Clone, Default)] pub(crate) struct FormatAnyGritMaybeCurlyPattern; impl FormatRule<AnyGritMaybeCurlyPattern> for FormatAn...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_grit_formatter/tests/quick_test.rs
crates/biome_grit_formatter/tests/quick_test.rs
use biome_formatter::{IndentStyle, LineWidth}; use biome_formatter_test::check_reformat::CheckReformat; use biome_grit_formatter::context::GritFormatOptions; use biome_grit_formatter::{GritFormatLanguage, format_node}; use biome_grit_parser::parse_grit; mod language { include!("language.rs"); } #[ignore] #[test] ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_grit_formatter/tests/spec_test.rs
crates/biome_grit_formatter/tests/spec_test.rs
use biome_formatter_test::spec::{SpecSnapshot, SpecTestFile}; use biome_grit_formatter::{GritFormatLanguage, context::GritFormatOptions}; use camino::Utf8Path; mod language { include!("language.rs"); } pub fn run(spec_input_file: &str, _expected_file: &str, test_directory: &str, _file_type: &str) { let root_p...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_grit_formatter/tests/spec_tests.rs
crates/biome_grit_formatter/tests/spec_tests.rs
mod spec_test; mod formatter { mod grit_module { tests_macros::gen_tests! {"tests/specs/grit/**/*.grit", crate::spec_test::run, ""} } }
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_grit_formatter/tests/language.rs
crates/biome_grit_formatter/tests/language.rs
use biome_formatter_test::TestFormatLanguage; use biome_fs::BiomePath; use biome_grit_formatter::{GritFormatLanguage, context::GritFormatContext}; use biome_grit_parser::parse_grit; use biome_grit_syntax::GritLanguage; use biome_service::settings::ServiceLanguage; #[derive(Default)] pub struct GritTestFormatLanguage; ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics_categories/build.rs
crates/biome_diagnostics_categories/build.rs
use quote::{format_ident, quote}; use std::{env, fs, io, path::PathBuf}; macro_rules! define_categories { ( $( $name_link:literal : $link:literal, )* ; $( $name:literal , )* ) => { const CATEGORIES: &[(&str, Option<&str>)] = &[ $( ($name_link, Some($link)), )* $( ($name, None), )* ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics_categories/src/lib.rs
crates/biome_diagnostics_categories/src/lib.rs
#![deny(clippy::use_self)] use std::{ hash::{Hash, Hasher}, str::FromStr, }; /// Metadata for a diagnostic category /// /// This type cannot be instantiated outside of the `biome_diagnostics_categories` /// crate, which serves as a registry for all known diagnostic categories /// (currently this registry is f...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_diagnostics_categories/src/categories.rs
crates/biome_diagnostics_categories/src/categories.rs
// This file contains the list of all diagnostic categories for the Biome // toolchain // // The `define_categories` macro is preprocessed in the build script for the // crate in order to generate the static registry. The body of the macro // consists of a list of key-value pairs defining the categories that have an //...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_module_graph/src/diagnostics.rs
crates/biome_module_graph/src/diagnostics.rs
use crate::js_module_info::JsModuleInfoDiagnostic; use biome_diagnostics::Diagnostic; #[derive(Debug, Clone, Diagnostic)] pub enum ModuleDiagnostic { JsInfo(JsModuleInfoDiagnostic), } impl From<JsModuleInfoDiagnostic> for ModuleDiagnostic { fn from(d: JsModuleInfoDiagnostic) -> Self { Self::JsInfo(d) ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_module_graph/src/lib.rs
crates/biome_module_graph/src/lib.rs
#![deny(clippy::use_self)] mod css_module_info; mod diagnostics; mod format_module_graph; mod js_module_info; mod module_graph; pub use biome_js_type_info::ImportSymbol; pub use biome_resolver::ResolvedPath; pub use css_module_info::{CssImport, CssImports, CssModuleInfo}; pub use diagnostics::ModuleDiagnostic; pub u...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_module_graph/src/css_module_info.rs
crates/biome_module_graph/src/css_module_info.rs
mod visitor; use biome_resolver::ResolvedPath; use biome_rowan::Text; use indexmap::IndexMap; use std::collections::BTreeSet; use std::ops::{Deref, DerefMut}; use std::sync::Arc; pub(crate) use visitor::CssModuleVisitor; /// Information restricted to a single module in the [ModuleGraph]. #[derive(Clone, Debug)] pub ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_module_graph/src/js_module_info.rs
crates/biome_module_graph/src/js_module_info.rs
mod binding; mod collector; mod diagnostics; mod module_resolver; mod scope; mod utils; mod visitor; use biome_js_syntax::AnyJsImportLike; use biome_js_type_info::{BindingId, ImportSymbol, ResolvedTypeId, ScopeId, TypeData}; use biome_jsdoc_comment::JsdocComment; use biome_resolver::ResolvedPath; use biome_rowan::{Tex...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_module_graph/src/format_module_graph.rs
crates/biome_module_graph/src/format_module_graph.rs
use crate::js_module_info::{Exports, Imports, JsBindingData}; use crate::{JsExport, JsImport, JsModuleInfo, JsOwnExport, JsReexport}; use biome_formatter::prelude::*; use biome_formatter::{format_args, write}; use biome_js_type_info::FormatTypeContext; use biome_rowan::TextSize; use std::fmt::Formatter; use std::ops::D...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_module_graph/src/module_graph.rs
crates/biome_module_graph/src/module_graph.rs
//! Module graph tracking inferred information such as imports and exports and //! their types across modules. //! //! This can be used by lint rules for things such as cycle detection, and //! detecting broken imports. //! //! The module graph is instantiated and updated inside the Workspace Server. mod fs_proxy; us...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_module_graph/src/module_graph/fs_proxy.rs
crates/biome_module_graph/src/module_graph/fs_proxy.rs
use biome_package::{PackageJson, TsConfigJson}; use biome_project_layout::ProjectLayout; use biome_resolver::{FsWithResolverProxy, PathInfo, ResolveError, ResolverFsProxy}; use camino::{Utf8Path, Utf8PathBuf}; use super::ModuleGraph; pub(crate) struct ModuleGraphFsProxy<'a> { fs: &'a dyn FsWithResolverProxy, ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_module_graph/src/js_module_info/diagnostics.rs
crates/biome_module_graph/src/js_module_info/diagnostics.rs
use crate::js_module_info::utils::MAX_NUM_TYPES; use biome_console::fmt::Formatter; use biome_console::markup; use biome_diagnostics::{ Category, Diagnostic, DiagnosticTags, LogCategory, Severity, Visit, category, }; #[derive(Debug, Clone, Diagnostic)] pub enum JsModuleInfoDiagnostic { ExceededTypesLimit(Excee...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_module_graph/src/js_module_info/visitor.rs
crates/biome_module_graph/src/js_module_info/visitor.rs
use biome_js_syntax::{ AnyJsArrayBindingPatternElement, AnyJsBinding, AnyJsBindingPattern, AnyJsDeclarationClause, AnyJsExportClause, AnyJsExportDefaultDeclaration, AnyJsExpression, AnyJsImportClause, AnyJsImportLike, AnyJsObjectBindingPatternMember, AnyJsRoot, AnyTsIdentifierBinding, AnyTsModuleName, J...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_module_graph/src/js_module_info/scope.rs
crates/biome_module_graph/src/js_module_info/scope.rs
use std::{collections::VecDeque, iter::FusedIterator, sync::Arc}; use biome_js_syntax::TextRange; use biome_js_type_info::{BindingId, ScopeId, TypeReferenceQualifier}; use biome_rowan::TokenText; use rustc_hash::FxHashMap; use super::{ JsModuleInfoInner, binding::{JsBinding, JsDeclarationKind}, }; #[derive(D...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_module_graph/src/js_module_info/utils.rs
crates/biome_module_graph/src/js_module_info/utils.rs
use crate::js_module_info::JsModuleInfoDiagnostic; pub(crate) const MAX_NUM_TYPES: usize = 200_000; /// Checks the given `num_types` against a threshold and returns a diagnostic /// if the threshold is exceeded. pub(crate) fn reached_too_many_types(num_types: usize) -> Result<(), JsModuleInfoDiagnostic> { if num_...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_module_graph/src/js_module_info/collector.rs
crates/biome_module_graph/src/js_module_info/collector.rs
use std::{borrow::Cow, collections::BTreeSet, sync::Arc}; use biome_js_semantic::{SemanticEvent, SemanticEventExtractor}; use biome_js_syntax::{ AnyJsCombinedSpecifier, AnyJsDeclaration, AnyJsExportDefaultDeclaration, AnyJsExpression, AnyJsImportClause, JsAssignmentExpression, JsForVariableDeclaration, JsForma...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_module_graph/src/js_module_info/module_resolver.rs
crates/biome_module_graph/src/js_module_info/module_resolver.rs
use std::{borrow::Cow, collections::hash_map::Entry, ops::Deref, sync::Arc}; use biome_js_syntax::AnyJsExpression; use biome_js_type_info::{ GLOBAL_RESOLVER, GLOBAL_UNKNOWN_ID, ImportSymbol, MAX_FLATTEN_DEPTH, ModuleId, Resolvable, ResolvedTypeData, ResolvedTypeId, ResolverId, ScopeId, Type, TypeData, TypeId, ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_module_graph/src/js_module_info/binding.rs
crates/biome_module_graph/src/js_module_info/binding.rs
use std::sync::Arc; use biome_js_syntax::{ AnyJsDeclaration, JsImport, JsSyntaxNode, JsVariableKind, TextRange, TsTypeParameter, }; use biome_js_type_info::{BindingId, ScopeId, TypeReference}; use biome_rowan::{AstNode, Text, TextSize}; use biome_jsdoc_comment::JsdocComment; use super::{JsModuleInfoInner, scope:...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_module_graph/src/css_module_info/visitor.rs
crates/biome_module_graph/src/css_module_info/visitor.rs
use crate::css_module_info::{CssImport, CssImports, CssModuleInfo}; use crate::module_graph::ModuleGraphFsProxy; use biome_css_syntax::{AnyCssImportUrl, CssRoot}; use biome_resolver::{ResolveOptions, ResolvedPath, resolve}; use biome_rowan::{AstNode, Text, WalkEvent}; use camino::Utf8Path; use std::ops::DerefMut; pub ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_module_graph/tests/spec_tests.rs
crates/biome_module_graph/tests/spec_tests.rs
#![allow(clippy::arc_with_non_send_sync)] mod snap; use std::fs::read_link; use std::ops::Deref; use std::sync::Arc; use crate::snap::ModuleGraphSnapshot; use biome_deserialize::json::deserialize_from_json_str; use biome_fs::{BiomePath, FileSystem, MemoryFileSystem, OsFileSystem, normalize_path}; use biome_js_type_i...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_module_graph/tests/snap/mod.rs
crates/biome_module_graph/tests/snap/mod.rs
use std::collections::BTreeSet; use biome_fs::MemoryFileSystem; use biome_js_formatter::context::JsFormatOptions; use biome_js_formatter::format_node; use biome_js_parser::{JsParserOptions, parse}; use biome_js_syntax::JsFileSource; use biome_module_graph::{JsExport, JsOwnExport, ModuleGraph, ModuleInfo, ModuleResolve...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_module_graph/benches/module_graph.rs
crates/biome_module_graph/benches/module_graph.rs
use biome_fs::{BiomePath, FileSystem, MemoryFileSystem}; use biome_js_parser::JsParserOptions; use biome_js_syntax::{AnyJsRoot, JsFileSource}; use biome_module_graph::ModuleGraph; use biome_project_layout::ProjectLayout; use divan::Bencher; #[cfg(target_os = "windows")] #[global_allocator] static GLOBAL: mimalloc::MiM...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_semantic/src/lib.rs
crates/biome_js_semantic/src/lib.rs
#![deny(clippy::use_self)] mod events; mod format_semantic_model; mod semantic_model; #[cfg(test)] mod tests; pub use events::*; pub use semantic_model::*;
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_semantic/src/format_semantic_model.rs
crates/biome_js_semantic/src/format_semantic_model.rs
use biome_formatter::prelude::*; use biome_formatter::{ FormatContext, FormatOptions, IndentStyle, IndentWidth, LineEnding, LineWidth, SourceMapGeneration, TransformSourceMap, }; use biome_formatter::{format_args, write}; use biome_js_syntax::TextSize; use crate::{Binding, BindingId, Scope, ScopeId, SemanticMo...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_semantic/src/events.rs
crates/biome_js_semantic/src/events.rs
//! Events emitted by the [SemanticEventExtractor] which are then constructed into the Semantic Model use JsSyntaxKind::*; use biome_js_syntax::binding_ext::{AnyJsBindingDeclaration, AnyJsIdentifierBinding}; use biome_js_syntax::{ AnyJsIdentifierUsage, JsDirective, JsLanguage, JsSyntaxKind, JsSyntaxNode, TextRange...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_semantic/src/semantic_model.rs
crates/biome_js_semantic/src/semantic_model.rs
mod binding; mod builder; mod closure; mod globals; mod import; mod is_constant; mod model; mod reference; mod scope; #[cfg(test)] mod tests; use crate::{SemanticEvent, SemanticEventExtractor}; use biome_js_syntax::{ AnyJsExpression, AnyJsRoot, JsIdentifierAssignment, JsIdentifierBinding, JsLanguage, JsRefere...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_semantic/src/tests/infer.rs
crates/biome_js_semantic/src/tests/infer.rs
use crate::assert_semantics; assert_semantics! { ok_conditional_true_type_scope, "type A<T> = T extends string ? (/*START Scope*/number)/*END Scope*/: boolean;", ok_conditional_true_type_infer_simple, "type A<T> = T extends infer /*@ Scope */T ? (/*START Scope*/number)/*END Scope*/: boolean;", ok_condition...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_semantic/src/tests/references.rs
crates/biome_js_semantic/src/tests/references.rs
use crate::assert_semantics; // Reads assert_semantics! { ok_reference_read_global, "let a/*#A*/ = 1; let b = a/*READ A*/ + 1;", ok_reference_read_inner_scope, r#"function f(a/*#A1*/) { let b = a/*READ A1*/ + 1; console.log(b); if (true) { let a/*#A2*/ = 2; let b =...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_semantic/src/tests/functions.rs
crates/biome_js_semantic/src/tests/functions.rs
use crate::assert_semantics; // functions assert_semantics! { ok_function_declaration, "function f/*#F*/ () {}", ok_function_call, "function f/*#F*/ () {} f/*READ F*/();", ok_function_hoisted_call, "function f/*#F*/ () { g/*READ G*/(); } function g/*#G*/() {}", ok_function_inner_function, "fun...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_semantic/src/tests/mod.rs
crates/biome_js_semantic/src/tests/mod.rs
mod assertions; pub mod declarations; mod functions; mod infer; mod references; mod scopes; #[macro_export] macro_rules! assert_semantics { ($(#[$attr:meta])* $($name:ident, $code:expr,)*) => { $( #[test] pub fn $name() { $crate::tests::assertions::assert($code, stri...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_semantic/src/tests/declarations.rs
crates/biome_js_semantic/src/tests/declarations.rs
use crate::assert_semantics; // Imports assert_semantics! { ok_declaration_import, "/*START GLOBAL*/ import a/*#a*//*@GLOBAL*/ from 'a'", } // Statements assert_semantics! { ok_declaration_if, ";if(true) {/*START A*/ let b/*#b*//*@A*/ = 1; }", ok_declaration_at_for, ";for/*START A*/ (let a/*#a*//*@A*/;;) ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_semantic/src/tests/scopes.rs
crates/biome_js_semantic/src/tests/scopes.rs
use crate::assert_semantics; // Statements assert_semantics! { ok_scope_if, "if(true) {/*START A*/}/*END A*/", ok_scope_if_no_block, "if(true) ;/*NOEVENT*/;", ok_scope_if_without_block_else_with_block, "if(true) ;/*NOEVENT*/ else {/*START A*/}/*END A*/;", ok_scope_if_without_block_else_without_block, "...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_semantic/src/tests/assertions.rs
crates/biome_js_semantic/src/tests/assertions.rs
use crate::{SemanticEvent, semantic_events}; use biome_console::{ConsoleExt, EnvConsole, markup}; use biome_diagnostics::location::AsSpan; use biome_diagnostics::{ Advices, Diagnostic, DiagnosticExt, Location, LogCategory, PrintDiagnostic, Visit, }; use biome_js_parser::JsParserOptions; use biome_js_syntax::{AnyJsR...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_semantic/src/semantic_model/reference.rs
crates/biome_js_semantic/src/semantic_model/reference.rs
use biome_js_syntax::{AnyJsFunction, AnyJsIdentifierUsage, JsCallExpression}; use super::*; use std::rc::Rc; /// Provides all information regarding to a specific reference. #[derive(Debug)] pub struct Reference { pub(crate) data: Rc<SemanticModelData>, pub(crate) id: ReferenceId, } impl Reference { pub(c...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_semantic/src/semantic_model/builder.rs
crates/biome_js_semantic/src/semantic_model/builder.rs
use super::*; use biome_js_syntax::{AnyJsRoot, JsSyntaxNode, TextRange, TsConditionalType, TsTypeParameterName}; use rustc_hash::{FxHashMap, FxHashSet}; use std::collections::hash_map::Entry; /// Builds the [SemanticModel] consuming [SemanticEvent] and [JsSyntaxNode]. /// For a good example on how to use it see [seman...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_semantic/src/semantic_model/tests.rs
crates/biome_js_semantic/src/semantic_model/tests.rs
#[cfg(test)] mod test { use crate::{ BindingExtensions, CanBeImportedExported, SemanticModelOptions, SemanticScopeExtensions, semantic_model, }; use biome_js_parser::JsParserOptions; use biome_js_syntax::{ JsFileSource, JsIdentifierAssignment, JsIdentifierBinding, JsReferenceIden...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_semantic/src/semantic_model/is_constant.rs
crates/biome_js_semantic/src/semantic_model/is_constant.rs
use biome_js_syntax::{AnyJsExpression, JsSyntaxKind}; use biome_rowan::AstNode; pub fn is_constant(expr: &AnyJsExpression) -> bool { for node in expr.syntax().descendants() { if matches!(node.kind(), JsSyntaxKind::JS_REFERENCE_IDENTIFIER) { return false; } } true } #[cfg(test)]...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_semantic/src/semantic_model/globals.rs
crates/biome_js_semantic/src/semantic_model/globals.rs
use super::*; use biome_js_syntax::JsSyntaxNode; use std::rc::Rc; #[derive(Debug)] pub struct SemanticModelGlobalBindingData { pub(crate) references: Vec<SemanticModelGlobalReferenceData>, } #[derive(Debug)] pub struct SemanticModelGlobalReferenceData { pub(crate) range_start: TextSize, pub(crate) ty: Sem...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_semantic/src/semantic_model/scope.rs
crates/biome_js_semantic/src/semantic_model/scope.rs
use super::*; use biome_js_syntax::TextRange; use biome_rowan::TokenText; use rustc_hash::FxHashMap; use std::rc::Rc; #[derive(Debug)] pub(crate) struct SemanticModelScopeData { // The scope range pub(crate) range: TextRange, // The parent scope of this scope pub(crate) parent: Option<ScopeId>, // ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_semantic/src/semantic_model/closure.rs
crates/biome_js_semantic/src/semantic_model/closure.rs
use super::*; use biome_js_syntax::{ JsArrowFunctionExpression, JsConstructorClassMember, JsFunctionDeclaration, JsFunctionExpression, JsGetterClassMember, JsGetterObjectMember, JsMethodClassMember, JsMethodObjectMember, JsSetterClassMember, JsSetterObjectMember, }; use biome_rowan::{AstNode, SyntaxNodeCast...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_semantic/src/semantic_model/model.rs
crates/biome_js_semantic/src/semantic_model/model.rs
use super::*; use biome_js_syntax::{AnyJsFunction, AnyJsRoot}; #[derive(Copy, Clone, Debug, Eq, Hash, PartialEq)] pub struct BindingId(pub(crate) u32); impl BindingId { pub fn new(index: usize) -> Self { // SAFETY: We didn't handle files exceeding `u32::MAX` bytes. // Thus, it isn't possible to ex...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_semantic/src/semantic_model/binding.rs
crates/biome_js_semantic/src/semantic_model/binding.rs
use super::*; use biome_js_syntax::{TextRange, TsTypeParameterName, binding_ext::AnyJsIdentifierBinding}; /// Internal type with all the semantic data of a specific binding #[derive(Debug)] pub(crate) struct SemanticModelBindingData { pub(crate) range: TextRange, pub(crate) references: Vec<SemanticModelReferen...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_js_semantic/src/semantic_model/import.rs
crates/biome_js_semantic/src/semantic_model/import.rs
use super::*; use crate::{HasDeclarationAstNode, SemanticModel}; use biome_js_syntax::{ JsIdentifierBinding, JsLanguage, JsSyntaxKind, binding_ext::AnyJsIdentifierBinding, }; use biome_rowan::AstNode; #[inline] pub fn find_import_node(node: &JsSyntaxNode) -> Option<JsSyntaxNode> { node.ancestors().find(|ancest...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_resolver/src/errors.rs
crates/biome_resolver/src/errors.rs
use std::{fmt::Display, io}; use biome_console::{fmt, markup}; use biome_diagnostics::{Category, Diagnostic, category}; use camino::Utf8PathBuf; /// List of possible errors that may occur during resolution. #[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] pub enum ResolveError { /// Couldn't re...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_resolver/src/lib.rs
crates/biome_resolver/src/lib.rs
#![deny(clippy::use_self)] mod errors; mod node_builtins; mod resolver_fs_proxy; use std::{borrow::Cow, ops::Deref, sync::Arc}; use biome_fs::normalize_path; use biome_json_value::{JsonObject, JsonValue}; use biome_package::{PackageJson, TsConfigJson}; use camino::{Utf8Path, Utf8PathBuf}; pub use errors::*; pub use...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_resolver/src/resolver_fs_proxy.rs
crates/biome_resolver/src/resolver_fs_proxy.rs
use biome_fs::{FileSystem, FsErrorKind, PathKind, expand_symbolic_link}; use biome_package::{Manifest, PackageJson, TsConfigJson}; use camino::{Utf8Path, Utf8PathBuf}; use crate::errors::ResolveError; /// Represents the kind of filesystem entry a path points at. #[derive(Clone, Debug)] pub enum PathInfo { Directo...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_resolver/src/node_builtins.rs
crates/biome_resolver/src/node_builtins.rs
/// Sorted array of Node builtin modules /// /// Source: <https://github.com/inspect-js/is-core-module/blob/8317b311856a61935d7257ad5f31f9b0cfd13b5f/core.json#L1-L158> const BUILTIN_NODE_MODULES: &[&str] = &[ "_debug_agent", "_debugger", "_http_agent", "_http_client", "_http_common", "_http_inco...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_resolver/tests/spec_tests.rs
crates/biome_resolver/tests/spec_tests.rs
use biome_fs::OsFileSystem; use biome_package::{CompilerOptions, TsConfigJson}; use biome_resolver::*; use camino::{Utf8Path, Utf8PathBuf}; /// Returns the path to a `fixtures/` subdirectory, regardless of working dir. fn get_fixtures_path(subdir: &str) -> Utf8PathBuf { let mut path: Utf8PathBuf = std::env::curren...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_syntax/src/import_ext.rs
crates/biome_css_syntax/src/import_ext.rs
use crate::{AnyCssImportUrl, AnyCssUrlValue}; use biome_rowan::TokenText; impl AnyCssImportUrl { /// Returns the inner text of specifier: /// /// ## Examples /// /// ``` /// use biome_css_factory::make; /// use biome_css_syntax::AnyCssImportUrl; /// ``` pub fn inner_string_text(&sel...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_syntax/src/lib.rs
crates/biome_css_syntax/src/lib.rs
#![deny(clippy::use_self)] #[macro_use] mod file_source; mod generated; mod import_ext; pub mod selector_ext; pub mod stmt_ext; mod string_ext; mod syntax_node; pub use self::generated::*; pub use biome_rowan::{ SyntaxNodeText, TextLen, TextRange, TextSize, TokenAtOffset, TriviaPieceKind, WalkEvent, }; pub use fi...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_syntax/src/stmt_ext.rs
crates/biome_css_syntax/src/stmt_ext.rs
use crate::CssSyntaxToken; use crate::generated::{ CssDeclarationBlock, CssDeclarationOrAtRuleBlock, CssDeclarationOrRuleBlock, CssFontFeatureValuesBlock, CssKeyframesBlock, CssPageAtRuleBlock, CssRuleBlock, }; use biome_rowan::{AstNodeList, SyntaxResult, declare_node_union}; declare_node_union! { pub CssB...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_syntax/src/syntax_node.rs
crates/biome_css_syntax/src/syntax_node.rs
//! This module defines the Concrete Syntax Tree used by Biome. //! //! The tree is entirely lossless, whitespace, comments, and errors are preserved. //! It also provides traversal methods including parent, children, and siblings of nodes. //! //! This is a simple wrapper around the `rowan` crate which does most of th...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_syntax/src/file_source.rs
crates/biome_css_syntax/src/file_source.rs
use biome_rowan::FileSourceError; use biome_string_case::StrLikeExtension; use camino::Utf8Path; #[cfg_attr(feature = "schema", derive(schemars::JsonSchema))] #[derive( Debug, Clone, Default, Copy, Eq, PartialEq, Hash, serde::Serialize, serde::Deserialize, )] #[serde(rename_all = "camelCase")] pub struct CssFileSo...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_syntax/src/string_ext.rs
crates/biome_css_syntax/src/string_ext.rs
use crate::{CssString, inner_string_text}; use biome_rowan::{SyntaxResult, TokenText}; impl CssString { pub fn inner_string_text(&self) -> SyntaxResult<TokenText> { Ok(inner_string_text(&self.value_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_syntax/src/selector_ext.rs
crates/biome_css_syntax/src/selector_ext.rs
use crate::{CssComplexSelector, CssCompoundSelector}; impl CssComplexSelector { /// /// Computes the nesting level pub fn nesting_level(&self) -> usize { let iterator = CssComplexSelectorIterator::new(self.clone()); iterator.count() } } pub struct CssComplexSelectorIterator { next:...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_syntax/src/generated.rs
crates/biome_css_syntax/src/generated.rs
#[rustfmt::skip] pub(super) mod nodes; #[rustfmt::skip] pub(super) mod nodes_mut; #[rustfmt::skip] pub mod macros; #[macro_use] pub mod kind; pub use kind::*; pub use nodes::*;
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_syntax/src/generated/nodes_mut.rs
crates/biome_css_syntax/src/generated/nodes_mut.rs
//! Generated file, do not edit by hand, see `xtask/codegen` use crate::{CssSyntaxToken as SyntaxToken, generated::nodes::*}; use biome_rowan::AstNode; use std::iter::once; impl CssAtRule { pub fn with_at_token(self, element: SyntaxToken) -> Self { Self::unwrap_cast( self.syntax ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_syntax/src/generated/kind.rs
crates/biome_css_syntax/src/generated/kind.rs
//! Generated file, do not edit by hand, see `xtask/codegen` #![allow(bad_style, missing_docs, unreachable_pub)] #[doc = r" The kind of syntax node, e.g. `IDENT`, `FUNCTION_KW`, or `FOR_STMT`."] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)] #[repr(u16)] pub enum CssSyntaxKind { #[doc(hidden)]...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_syntax/src/generated/macros.rs
crates/biome_css_syntax/src/generated/macros.rs
//! Generated file, do not edit by hand, see `xtask/codegen` #[doc = r" Reconstruct an AstNode from a SyntaxNode"] #[doc = r""] #[doc = r" This macros performs a match over the [kind](biome_rowan::SyntaxNode::kind)"] #[doc = r" of the provided [biome_rowan::SyntaxNode] and constructs the appropriate"] #[doc = r" AstNo...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_css_syntax/src/generated/nodes.rs
crates/biome_css_syntax/src/generated/nodes.rs
//! Generated file, do not edit by hand, see `xtask/codegen` #![allow(dead_code)] #![allow(unused)] use crate::{ CssLanguage as Language, CssSyntaxElement as SyntaxElement, CssSyntaxElementChildren as SyntaxElementChildren, CssSyntaxKind::{self as SyntaxKind, *}, CssSyntaxList as SyntaxList, CssSyntaxN...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_service/src/settings.rs
crates/biome_service/src/settings.rs
use crate::workspace::{DocumentFileSource, FeatureKind}; use crate::{WorkspaceError, is_dir}; use biome_analyze::{AnalyzerOptions, AnalyzerRules}; use biome_configuration::analyzer::assist::{Actions, AssistConfiguration, AssistEnabled}; use biome_configuration::analyzer::{LinterEnabled, RuleDomains}; use biome_configur...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_service/src/workspace.rs
crates/biome_service/src/workspace.rs
//! The [Workspace] is the main entry point for high-level clients (the Biome //! CLI and Language Server) into the various language-specific services of the //! Biome toolchain (parser, formatter, analyzer ...) //! //! # Documents //! //! A [Workspace] instance operates on a set of open documents managed by one //! or...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_service/src/diagnostics.rs
crates/biome_service/src/diagnostics.rs
use crate::workspace::{CheckFileSizeResult, DocumentFileSource}; use biome_analyze::RuleError; use biome_configuration::diagnostics::{ CantResolve, ConfigurationDiagnostic, EditorConfigDiagnostic, }; use biome_configuration::{BiomeDiagnostic, CantLoadExtendFile}; use biome_console::fmt::Bytes; use biome_console::ma...
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/lib.rs
crates/biome_service/src/lib.rs
#![deny(clippy::use_self)] pub mod configuration; pub mod diagnostics; pub mod documentation; pub mod file_handlers; pub mod projects; pub mod settings; pub mod workspace; #[cfg(feature = "schema")] pub mod workspace_types; mod scanner; mod utils; #[cfg(test)] mod test_utils; use camino::Utf8Path; use std::ops::De...
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.rs
crates/biome_service/src/scanner.rs
//! Scanner for crawling the file system and indexing documents within projects. //! //! In addition to scanning and indexing, the scanner also has a //! [`watcher`](watcher::Watcher) that can watch scanned folders to keep the //! index in sync with the filesystem. mod watcher; mod workspace_bridges; #[cfg(test)] mod...
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/configuration.rs
crates/biome_service/src/configuration.rs
use crate::WorkspaceError; use crate::settings::Settings; use crate::workspace::ScanKind; use biome_analyze::{ AnalyzerRules, Queryable, RegistryVisitor, Rule, RuleDomain, RuleFilter, RuleGroup, }; use biome_configuration::analyzer::{AnalyzerSelector, RuleDomainValue}; use biome_configuration::diagnostics::{ Ca...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_service/src/scanner.tests.rs
crates/biome_service/src/scanner.tests.rs
use biome_configuration::Configuration; use biome_deserialize::json::deserialize_from_json_str; use biome_fs::{BiomePath, FileSystem, OsFileSystem}; use biome_json_parser::JsonParserOptions; use camino::Utf8PathBuf; use crate::Workspace; use crate::scanner::WorkspaceScannerBridge; use crate::test_utils::setup_workspac...
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/test_utils.rs
crates/biome_service/src/test_utils.rs
use std::sync::Arc; use biome_fs::{BiomePath, FileSystem}; use crossbeam::channel::{Receiver, unbounded}; use tokio::sync::watch; use crate::projects::ProjectKey; use crate::workspace::{OpenProjectParams, OpenProjectResult, ServiceNotification}; use crate::{WatcherInstruction, Workspace, WorkspaceServer}; /// Conven...
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/workspace_types.rs
crates/biome_service/src/workspace_types.rs
//! Utility functions to help with generating bindings for the [Workspace] API use std::collections::VecDeque; use biome_js_syntax::{AnyJsDeclaration, AnyTsTupleTypeElement}; use rustc_hash::FxHashSet; use schemars::{JsonSchema, Schema, SchemaGenerator, generate::SchemaSettings}; use serde_json::Value; use crate::{W...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_service/src/projects.rs
crates/biome_service/src/projects.rs
use crate::WorkspaceError; use crate::file_handlers::Capabilities; use crate::settings::Settings; use crate::workspace::{ DocumentFileSource, FeatureName, FeaturesSupported, FileFeaturesResult, IgnoreKind, }; use biome_fs::{ConfigName, FileSystem}; use camino::{Utf8Path, Utf8PathBuf}; use papaya::HashMap; use rustc...
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/workspace.tests.rs
crates/biome_service/src/workspace.tests.rs
use std::collections::BTreeMap; use std::num::NonZeroU64; use std::str::FromStr; use std::sync::Arc; use biome_analyze::RuleCategories; use biome_configuration::analyzer::{RuleGroup, RuleSelector}; use biome_configuration::{ Configuration, FilesConfiguration, OverrideGlobs, OverridePattern, Overrides, }; 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_service/src/settings.tests.rs
crates/biome_service/src/settings.tests.rs
use crate::settings::{LanguageSettings, ServiceLanguage, Settings, to_json_language_settings}; use crate::workspace::DocumentFileSource; use biome_analyze::RuleFilter; use biome_configuration::analyzer::{GroupPlainConfiguration, Nursery, SeverityOrGroup}; use biome_configuration::javascript::JsxRuntime; use biome_confi...
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/workspace/document.rs
crates/biome_service/src/workspace/document.rs
use crate::diagnostics::FileTooLarge; use crate::file_handlers::FormatEmbedNode; use crate::settings::ServiceLanguage; use crate::workspace::DocumentFileSource; use biome_css_syntax::{CssLanguage, CssRoot}; use biome_diagnostics::Error; use biome_diagnostics::serde::Diagnostic as SerdeDiagnostic; use biome_js_syntax::J...
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/workspace/client.rs
crates/biome_service/src/workspace/client.rs
use super::{ ChangeFileParams, ChangeFileResult, CloseFileParams, FileExitsParams, FixFileParams, FixFileResult, FormatFileParams, FormatOnTypeParams, FormatRangeParams, GetControlFlowGraphParams, GetFormatterIRParams, GetModuleGraphParams, GetModuleGraphResult, GetSemanticModelParams, GetSyntaxTreePara...
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/workspace/server.rs
crates/biome_service/src/workspace/server.rs
use std::panic::RefUnwindSafe; use std::sync::atomic::{AtomicUsize, Ordering}; use std::sync::{Arc, Mutex}; use super::{document::Document, *}; use crate::Watcher; use crate::configuration::{LoadedConfiguration, read_config}; use crate::diagnostics::{FileTooLarge, NoIgnoreFileFound, VcsDiagnostic}; use crate::file_han...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_service/src/workspace/server.tests.rs
crates/biome_service/src/workspace/server.tests.rs
use biome_configuration::{ FormatterConfiguration, JsConfiguration, javascript::{JsFormatterConfiguration, JsParserConfiguration}, }; use biome_formatter::{IndentStyle, LineWidth}; use biome_fs::MemoryFileSystem; use biome_rowan::TextSize; use crate::test_utils::setup_workspace_and_open_project; use super::*;...
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/file_handlers/ignore.rs
crates/biome_service/src/file_handlers/ignore.rs
use crate::file_handlers::ExtensionHandler; #[derive(Debug, Default, PartialEq, Eq)] pub struct IgnoreFileHandler; impl ExtensionHandler for IgnoreFileHandler {}
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/file_handlers/css.rs
crates/biome_service/src/file_handlers/css.rs
use super::{ AnalyzerVisitorBuilder, CodeActionsParams, EnabledForPath, ExtensionHandler, FixAllParams, LintParams, LintResults, ParseResult, ProcessFixAll, ProcessLint, SearchCapabilities, search, }; use crate::WorkspaceError; use crate::configuration::to_analyzer_rules; use crate::file_handlers::DebugCapabili...
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/file_handlers/javascript.rs
crates/biome_service/src/file_handlers/javascript.rs
use super::{ AnalyzerCapabilities, AnalyzerVisitorBuilder, CodeActionsParams, DebugCapabilities, DiagnosticsAndActionsParams, EnabledForPath, ExtensionHandler, FormatterCapabilities, LintParams, LintResults, ParseResult, ParserCapabilities, ProcessDiagnosticsAndActions, ProcessFixAll, ProcessLint, Searc...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_service/src/file_handlers/html.rs
crates/biome_service/src/file_handlers/html.rs
use super::{ AnalyzerCapabilities, AnalyzerVisitorBuilder, Capabilities, CodeActionsParams, DebugCapabilities, DocumentFileSource, EnabledForPath, ExtensionHandler, FixAllParams, FormatEmbedNode, FormatterCapabilities, LintParams, LintResults, ParseEmbedResult, ParseResult, ParserCapabilities, ProcessFi...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_service/src/file_handlers/unknown.rs
crates/biome_service/src/file_handlers/unknown.rs
use super::ExtensionHandler; #[derive(Debug, Default, PartialEq, Eq)] pub(crate) struct UnknownFileHandler {} impl ExtensionHandler for UnknownFileHandler {}
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/file_handlers/grit.rs
crates/biome_service/src/file_handlers/grit.rs
use super::{ AnalyzerCapabilities, Capabilities, DebugCapabilities, DocumentFileSource, EnabledForPath, ExtensionHandler, FixAllParams, FormatterCapabilities, LintParams, LintResults, ParseResult, ParserCapabilities, SearchCapabilities, }; use crate::settings::{OverrideSettings, check_feature_activity, chec...
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/file_handlers/svelte.rs
crates/biome_service/src/file_handlers/svelte.rs
use super::{ParsedLangAndSetup, SearchCapabilities, parse_lang_and_setup_from_script_opening_tag}; use crate::WorkspaceError; use crate::file_handlers::{ AnalyzerCapabilities, Capabilities, CodeActionsParams, DebugCapabilities, EnabledForPath, ExtensionHandler, FixAllParams, FormatterCapabilities, LintParams, L...
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/file_handlers/astro.rs
crates/biome_service/src/file_handlers/astro.rs
use crate::WorkspaceError; use crate::file_handlers::{ AnalyzerCapabilities, Capabilities, CodeActionsParams, DebugCapabilities, EnabledForPath, ExtensionHandler, FixAllParams, FormatterCapabilities, LintParams, LintResults, ParseResult, ParserCapabilities, javascript, }; use crate::settings::Settings; use ...
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/file_handlers/json.rs
crates/biome_service/src/file_handlers/json.rs
use super::{ AnalyzerVisitorBuilder, CodeActionsParams, DocumentFileSource, EnabledForPath, ExtensionHandler, ParseResult, ProcessFixAll, ProcessLint, SearchCapabilities, }; use crate::configuration::to_analyzer_rules; use crate::file_handlers::DebugCapabilities; use crate::file_handlers::{ AnalyzerCapabili...
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/file_handlers/mod.rs
crates/biome_service/src/file_handlers/mod.rs
use self::{ css::CssFileHandler, javascript::JsFileHandler, json::JsonFileHandler, unknown::UnknownFileHandler, }; use crate::WorkspaceError; use crate::diagnostics::{QueryDiagnostic, SearchError}; pub use crate::file_handlers::astro::AstroFileHandler; use crate::file_handlers::graphql::GraphqlFileHandler; use ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
true
biomejs/biome
https://github.com/biomejs/biome/blob/499594b74475be0ae81ce50858e76c9c97b8c48f/crates/biome_service/src/file_handlers/vue.rs
crates/biome_service/src/file_handlers/vue.rs
use super::{ParsedLangAndSetup, SearchCapabilities, parse_lang_and_setup_from_script_opening_tag}; use crate::WorkspaceError; use crate::file_handlers::{ AnalyzerCapabilities, Capabilities, CodeActionsParams, DebugCapabilities, EnabledForPath, ExtensionHandler, FixAllParams, FormatterCapabilities, LintParams, L...
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/file_handlers/graphql.rs
crates/biome_service/src/file_handlers/graphql.rs
use super::{ AnalyzerVisitorBuilder, CodeActionsParams, DocumentFileSource, EnabledForPath, ExtensionHandler, FixAllParams, LintParams, LintResults, ParseResult, ProcessFixAll, ProcessLint, SearchCapabilities, }; use crate::WorkspaceError; use crate::configuration::to_analyzer_rules; use crate::file_handler...
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/utils/mod.rs
crates/biome_service/src/utils/mod.rs
pub mod growth_guard;
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/utils/growth_guard.rs
crates/biome_service/src/utils/growth_guard.rs
const RATIO_Q: u32 = 100; // fixed-point 2 decimals const RATIO_GROWTH: u32 = 150; // 1.5x growth increase const RATIO_ACCEL: u32 = 180; // 1.8x delta increase const STREAK_LIMIT: u8 = 10; /// A guard that ensures a value does not grow too quickly. /// /// Used to prevent runaway growth of files when applying fixes. p...
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_watcher_bridge.tests.rs
crates/biome_service/src/scanner/workspace_watcher_bridge.tests.rs
//! Tests for the methods of [`WorkspaceWatcherBridge`]. //! //! These tests mainly verify that watcher instructions get sent, and that //! watcher requests for indexing are respected. //! //! No real watcher is instantiated in these tests. use std::collections::BTreeMap; use biome_fs::{BiomePath, MemoryFileSystem}; ...
rust
Apache-2.0
499594b74475be0ae81ce50858e76c9c97b8c48f
2026-01-04T15:39:05.365085Z
false