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 |
|---|---|---|---|---|---|---|---|---|
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_console/tests/markup/closing_element_mismatch.rs | crates/rome_console/tests/markup/closing_element_mismatch.rs | fn main() {
rome_console::markup! {
<Emphasis></Error>
}
}
| rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_console/tests/markup/open_element_missing_prop_value.rs | crates/rome_console/tests/markup/open_element_missing_prop_value.rs | fn main() {
rome_console::markup! {
<Emphasis property />
}
}
| rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_console/tests/markup/open_element_unfinished_7.rs | crates/rome_console/tests/markup/open_element_unfinished_7.rs | fn main() {
rome_console::markup! {
<Emphasis prop=""
}
}
| rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_console/tests/markup/invalid_punct.rs | crates/rome_console/tests/markup/invalid_punct.rs | fn main() {
rome_console::markup! {
!
}
}
| rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_console/tests/markup/open_element_unfinished_1.rs | crates/rome_console/tests/markup/open_element_unfinished_1.rs | fn main() {
rome_console::markup! {
<
}
}
| rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_console/tests/markup/closing_element_standalone.rs | crates/rome_console/tests/markup/closing_element_standalone.rs | fn main() {
rome_console::markup! {
</Emphasis>
}
}
| rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_unicode_table/src/bytes.rs | crates/rome_js_unicode_table/src/bytes.rs | use Dispatch::*;
/// Every handler a byte coming in could be mapped to
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
#[repr(u8)]
pub enum Dispatch {
/// Error token
ERR,
/// Whitespace
WHS,
/// Exclamation
EXL,
/// Single `'` or Double quote `"`
QOT,
/// ASCII identifier, o... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_unicode_table/src/lib.rs | crates/rome_js_unicode_table/src/lib.rs | use crate::bytes::DISPATCHER;
use crate::tables::derived_property::{ID_Continue, ID_Start};
mod bytes;
mod tables;
pub use crate::bytes::Dispatch;
/// Tests if `c` is a valid start of an identifier
#[inline]
pub fn is_id_start(c: char) -> bool {
c == '_' || c == '$' || ID_Start(c)
}
/// Tests if `c` is a valid ... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_unicode_table/src/tables.rs | crates/rome_js_unicode_table/src/tables.rs | //! Generated file, do not edit by hand, see `xtask/codegen`
#![doc = r" Autogenerated file, do not edit by hand."]
#![doc = r" Run `cargo codegen unicode` and recommit this file when Unicode support has changed."]
#![allow(missing_docs, non_upper_case_globals, non_snake_case)]
fn bsearch_range_table(c: char, r: &[(ch... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | true |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_flags/src/lib.rs | crates/rome_flags/src/lib.rs | //! A simple implementation of feature flags.
/// Returns `true` if this is an unstable build of Rome
pub const fn is_unstable() -> bool {
option_env!("ROME_VERSION").is_none()
}
| rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_json_parser/src/prelude.rs | crates/rome_json_parser/src/prelude.rs | pub(crate) use crate::JsonParser;
pub use rome_json_syntax::T;
pub use rome_parser::prelude::*;
| rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_json_parser/src/lib.rs | crates/rome_json_parser/src/lib.rs | //! Extremely fast, lossless, and error tolerant JSON Parser.
use crate::parser::JsonParser;
use crate::syntax::parse_root;
pub use parser::JsonParserOptions;
use rome_json_factory::JsonSyntaxFactory;
use rome_json_syntax::{JsonLanguage, JsonRoot, JsonSyntaxNode};
pub use rome_parser::prelude::*;
use rome_parser::tree... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_json_parser/src/token_source.rs | crates/rome_json_parser/src/token_source.rs | use crate::lexer::{Lexer, Token};
use crate::JsonParserOptions;
use rome_json_syntax::JsonSyntaxKind::{EOF, TOMBSTONE};
use rome_json_syntax::{JsonSyntaxKind, TextRange};
use rome_parser::diagnostic::ParseDiagnostic;
use rome_parser::prelude::TokenSource;
use rome_parser::token_source::Trivia;
use rome_rowan::TriviaPie... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_json_parser/src/parser.rs | crates/rome_json_parser/src/parser.rs | use crate::token_source::JsonTokenSource;
use rome_json_syntax::JsonSyntaxKind;
use rome_parser::diagnostic::merge_diagnostics;
use rome_parser::event::Event;
use rome_parser::prelude::*;
use rome_parser::token_source::Trivia;
use rome_parser::ParserContext;
pub(crate) struct JsonParser<'source> {
context: ParserC... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_json_parser/src/syntax.rs | crates/rome_json_parser/src/syntax.rs | use crate::prelude::*;
use rome_json_syntax::JsonSyntaxKind;
use rome_json_syntax::JsonSyntaxKind::*;
use rome_parser::diagnostic::{expected_any, expected_node};
use rome_parser::parse_recovery::ParseRecovery;
use rome_parser::parsed_syntax::ParsedSyntax::Absent;
use rome_parser::prelude::ParsedSyntax::Present;
use rom... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_json_parser/src/lexer/tests.rs | crates/rome_json_parser/src/lexer/tests.rs | #![cfg(test)]
#![allow(unused_mut, unused_variables, unused_assignments)]
use super::{Lexer, TextSize};
use quickcheck_macros::quickcheck;
use rome_json_syntax::JsonSyntaxKind::{self, EOF};
use std::sync::mpsc::channel;
use std::thread;
use std::time::Duration;
// Assert the result of lexing a piece of source code,
/... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_json_parser/src/lexer/mod.rs | crates/rome_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 rome_js_unicode_table::{is_id_continue, is_id_start, lookup_byte, Dispatch::*};
use rome_json_syntax::{JsonSyntaxKind, JsonSyntaxKind::*, TextLen, TextRange, TextSize, T};... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_json_parser/tests/spec_test.rs | crates/rome_json_parser/tests/spec_test.rs | use rome_console::fmt::{Formatter, Termcolor};
use rome_console::markup;
use rome_diagnostics::display::PrintDiagnostic;
use rome_diagnostics::termcolor;
use rome_diagnostics::DiagnosticExt;
use rome_json_parser::{parse_json, JsonParserOptions};
use rome_rowan::SyntaxKind;
use std::fmt::Write;
use std::fs;
use std::pat... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_json_parser/tests/spec_tests.rs | crates/rome_json_parser/tests/spec_tests.rs | #![allow(non_snake_case)]
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! {"... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_control_flow/src/builder.rs | crates/rome_control_flow/src/builder.rs | use rome_rowan::{Language, SyntaxElement, SyntaxNode};
use crate::{
BasicBlock, ControlFlowGraph, ExceptionHandler, ExceptionHandlerKind, Instruction,
InstructionKind,
};
/// Identifier for a block in a [ControlFlowGraph]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
pub struct BlockId {
index: u32,
... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_control_flow/src/lib.rs | crates/rome_control_flow/src/lib.rs | #![deny(rustdoc::broken_intra_doc_links)]
use std::{
collections::HashMap,
fmt::{self, Display, Formatter},
};
use rome_rowan::{Language, SyntaxElement, SyntaxNode};
pub mod builder;
use crate::builder::BlockId;
/// The [ControlFlowGraph] is an auxiliary data structure to the syntax tree,
/// representing ... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/tests_macros/src/lib.rs | crates/tests_macros/src/lib.rs | use case::CaseExt;
use globwalk::{GlobWalker, GlobWalkerBuilder};
use proc_macro::TokenStream;
use proc_macro2::Span;
use proc_macro_error::*;
use quote::*;
use std::{
collections::HashMap,
ffi::OsStr,
path::{Component, Path, PathBuf},
};
use syn::parse::ParseStream;
struct Arguments {
pattern: syn::Ex... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_factory/src/lib.rs | crates/rome_js_factory/src/lib.rs | use rome_js_syntax::JsLanguage;
use rome_rowan::TreeBuilder;
mod generated;
pub use crate::generated::JsSyntaxFactory;
pub mod make;
// Re-exported for tests
#[doc(hidden)]
pub use rome_js_syntax as syntax;
pub type JsSyntaxTreeBuilder = TreeBuilder<'static, JsLanguage, JsSyntaxFactory>;
| rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_factory/src/make.rs | crates/rome_js_factory/src/make.rs | use std::fmt::Display;
use rome_js_syntax::{JsSyntaxKind, JsSyntaxToken, TriviaPieceKind};
use rome_rowan::TriviaPiece;
pub use crate::generated::node_factory::*;
/// Create a new identifier token with no attached trivia
pub fn ident(text: &str) -> JsSyntaxToken {
JsSyntaxToken::new_detached(JsSyntaxKind::IDENT,... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_factory/src/generated.rs | crates/rome_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 | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_factory/src/generated/syntax_factory.rs | crates/rome_js_factory/src/generated/syntax_factory.rs | //! Generated file, do not edit by hand, see `xtask/codegen`
use rome_js_syntax::{JsSyntaxKind, JsSyntaxKind::*, T, *};
use rome_rowan::{AstNode, ParsedChildren, RawNodeSlots, RawSyntaxNode, SyntaxFactory, SyntaxKind};
#[derive(Debug)]
pub struct JsSyntaxFactory;
impl SyntaxFactory for JsSyntaxFactory {
type Kind ... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | true |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_factory/src/generated/node_factory.rs | crates/rome_js_factory/src/generated/node_factory.rs | //! Generated file, do not edit by hand, see `xtask/codegen`
#![allow(clippy::redundant_closure)]
#![allow(clippy::too_many_arguments)]
use rome_js_syntax::{
JsSyntaxElement as SyntaxElement, JsSyntaxNode as SyntaxNode, JsSyntaxToken as SyntaxToken, *,
};
use rome_rowan::AstNode;
pub fn js_accessor_modifier(modifi... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | true |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_suppression/src/lib.rs | crates/rome_suppression/src/lib.rs | use rome_diagnostics::{Category, Diagnostic};
use rome_rowan::{TextRange, TextSize};
/// Single instance of a suppression comment, with the following syntax:
///
/// `// rome-ignore { <category> { (<value>) }? }+: <reason>`
///
/// The category broadly describes what feature is being suppressed (formatting,
/// lintin... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_css_parser/src/prelude.rs | crates/rome_css_parser/src/prelude.rs | pub use rome_css_syntax::T;
pub use rome_parser::prelude::*;
| rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_css_parser/src/lib.rs | crates/rome_css_parser/src/lib.rs | //! Extremely fast, lossless, and error tolerant CSS Parser.
use crate::parser::CssParser;
use crate::syntax::parse_root;
pub use parser::CssParserOptions;
use rome_css_factory::CssSyntaxFactory;
use rome_css_syntax::{CssLanguage, CssRoot, CssSyntaxNode};
pub use rome_parser::prelude::*;
use rome_parser::tree_sink::L... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_css_parser/src/token_source.rs | crates/rome_css_parser/src/token_source.rs | use crate::lexer::{Lexer, Token};
use crate::CssParserOptions;
use rome_css_syntax::CssSyntaxKind::{EOF, TOMBSTONE};
use rome_css_syntax::{CssSyntaxKind, TextRange};
use rome_parser::diagnostic::ParseDiagnostic;
use rome_parser::prelude::TokenSource;
use rome_parser::token_source::Trivia;
use rome_rowan::TriviaPieceKin... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_css_parser/src/parser.rs | crates/rome_css_parser/src/parser.rs | use crate::token_source::CssTokenSource;
use rome_css_syntax::CssSyntaxKind;
use rome_parser::diagnostic::merge_diagnostics;
use rome_parser::event::Event;
use rome_parser::prelude::*;
use rome_parser::token_source::Trivia;
use rome_parser::ParserContext;
pub(crate) struct CssParser<'source> {
context: ParserConte... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_css_parser/src/syntax.rs | crates/rome_css_parser/src/syntax.rs | use crate::parser::CssParser;
use rome_css_syntax::CssSyntaxKind::*;
use rome_parser::Parser;
pub(crate) fn parse_root(p: &mut CssParser) {
let m = p.start();
let rules = p.start();
rules.complete(p, CSS_RULE_LIST);
m.complete(p, CSS_ROOT);
}
| rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_css_parser/src/lexer/tests.rs | crates/rome_css_parser/src/lexer/tests.rs | #![cfg(test)]
#![allow(unused_mut, unused_variables, unused_assignments)]
use super::{Lexer, TextSize};
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 are fully lossle... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_css_parser/src/lexer/mod.rs | crates/rome_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 rome_css_syntax::{CssSyntaxKind, CssSyntaxKind::*, TextLen, TextRange, TextSize, T};
use rome_js_unicode_table::{is_id_continue, is_id_start, loo... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_css_parser/tests/spec_test.rs | crates/rome_css_parser/tests/spec_test.rs | use rome_console::fmt::{Formatter, Termcolor};
use rome_console::markup;
use rome_css_parser::{parse_css, CssParserOptions};
use rome_diagnostics::display::PrintDiagnostic;
use rome_diagnostics::termcolor;
use rome_diagnostics::DiagnosticExt;
use rome_rowan::SyntaxKind;
use std::fmt::Write;
use std::fs;
use std::path::... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_css_parser/tests/spec_tests.rs | crates/rome_css_parser/tests/spec_tests.rs | #![allow(non_snake_case)]
mod spec_test;
mod ok {
//! Tests that must pass according to the CSS specification
tests_macros::gen_tests! {"tests/css_test_suite/ok/*.css", crate::spec_test::run, "ok"}
}
| rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_json_factory/src/lib.rs | crates/rome_json_factory/src/lib.rs | pub use crate::generated::JsonSyntaxFactory;
use rome_json_syntax::JsonLanguage;
use rome_rowan::TreeBuilder;
mod generated;
// Re-exported for tests
#[doc(hidden)]
pub use rome_json_syntax as syntax;
pub type JsonSyntaxTreeBuilder = TreeBuilder<'static, JsonLanguage, JsonSyntaxFactory>;
pub use generated::node_fac... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_json_factory/src/generated.rs | crates/rome_json_factory/src/generated.rs | #[rustfmt::skip]
pub(super) mod syntax_factory;
#[rustfmt::skip]
pub mod node_factory;
pub use syntax_factory::JsonSyntaxFactory;
| rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_json_factory/src/generated/syntax_factory.rs | crates/rome_json_factory/src/generated/syntax_factory.rs | //! Generated file, do not edit by hand, see `xtask/codegen`
use rome_json_syntax::{JsonSyntaxKind, JsonSyntaxKind::*, T, *};
use rome_rowan::{AstNode, ParsedChildren, RawNodeSlots, RawSyntaxNode, SyntaxFactory, SyntaxKind};
#[derive(Debug)]
pub struct JsonSyntaxFactory;
impl SyntaxFactory for JsonSyntaxFactory {
... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_json_factory/src/generated/node_factory.rs | crates/rome_json_factory/src/generated/node_factory.rs | //! Generated file, do not edit by hand, see `xtask/codegen`
#![allow(clippy::redundant_closure)]
#![allow(clippy::too_many_arguments)]
use rome_json_syntax::{
JsonSyntaxElement as SyntaxElement, JsonSyntaxNode as SyntaxNode,
JsonSyntaxToken as SyntaxToken, *,
};
use rome_rowan::AstNode;
pub fn json_array_valu... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_deserialize/src/diagnostics.rs | crates/rome_deserialize/src/diagnostics.rs | use rome_console::fmt::Display;
use rome_console::{markup, MarkupBuf};
use rome_diagnostics::location::AsSpan;
use rome_diagnostics::{Advices, Diagnostic, LogCategory, MessageAndDescription, Severity, Visit};
use rome_rowan::{SyntaxError, TextRange};
use serde::{Deserialize, Serialize};
/// Diagnostic emitted during t... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_deserialize/src/visitor.rs | crates/rome_deserialize/src/visitor.rs | use crate::DeserializationDiagnostic;
use rome_rowan::{Language, SyntaxNode};
/// Generic trait to implement when resolving the configuration from a generic language
pub trait VisitNode<L: Language>: Sized {
/// Called when visiting the key of a member
fn visit_member_name(
&mut self,
_node: &S... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_deserialize/src/lib.rs | crates/rome_deserialize/src/lib.rs | mod diagnostics;
mod visitor;
pub mod json;
pub mod string_set;
pub use diagnostics::{DeserializationAdvice, DeserializationDiagnostic};
use rome_diagnostics::Error;
pub use string_set::{deserialize_string_set, serialize_string_set, StringSet};
pub use visitor::VisitNode;
/// A small type to interrogate the result o... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_deserialize/src/json.rs | crates/rome_deserialize/src/json.rs | use crate::{DeserializationDiagnostic, Deserialized, VisitNode};
use indexmap::IndexSet;
use rome_console::markup;
use rome_diagnostics::{DiagnosticExt, Error};
use rome_json_parser::{parse_json, JsonParserOptions};
use rome_json_syntax::{
AnyJsonValue, JsonArrayValue, JsonBooleanValue, JsonLanguage, JsonMemberName... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_deserialize/src/string_set.rs | crates/rome_deserialize/src/string_set.rs | use indexmap::IndexSet;
use serde::de::{SeqAccess, Visitor};
use serde::ser::SerializeSeq;
use serde::{Deserialize, Serialize};
use std::marker::PhantomData;
use std::str::FromStr;
#[derive(Default, Debug, Deserialize, Serialize, Clone, Eq, PartialEq)]
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
#[se... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_test_utils/src/lib.rs | crates/rome_test_utils/src/lib.rs | use json_comments::StripComments;
use rome_analyze::{AnalyzerAction, AnalyzerOptions};
use rome_console::fmt::{Formatter, Termcolor};
use rome_console::markup;
use rome_diagnostics::termcolor::Buffer;
use rome_diagnostics::{DiagnosticExt, Error, PrintDiagnostic};
use rome_json_parser::{JsonParserOptions, ParseDiagnosti... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/syntax_rewriter.rs | crates/rome_js_formatter/src/syntax_rewriter.rs | use crate::comments::is_type_comment;
use crate::parentheses::AnyJsParenthesized;
use rome_formatter::{TransformSourceMap, TransformSourceMapBuilder};
use rome_js_syntax::{
AnyJsAssignment, AnyJsExpression, AnyTsType, JsLanguage, JsLogicalExpression, JsSyntaxKind,
JsSyntaxNode,
};
use rome_rowan::syntax::Syntax... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/prelude.rs | crates/rome_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::{
comments::JsComments, AsFormat as _, FormatNodeRule, FormattedIterExt, JsFormatContext,
JsFormatter,
};
pub use rome_formatter::prelude::*;
pub use rome_form... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/lib.rs | crates/rome_js_formatter/src/lib.rs | //! Rome'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`.
//!
//! `rome` has an automatic code generation that creates ... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/comments.rs | crates/rome_js_formatter/src/comments.rs | use crate::prelude::*;
use crate::utils::AnyJsConditional;
use rome_diagnostics_categories::category;
use rome_formatter::comments::is_doc_comment;
use rome_formatter::{
comments::{
CommentKind, CommentPlacement, CommentStyle, CommentTextPosition, Comments,
DecoratedComment, SourceComment,
},
... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | true |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/cst.rs | crates/rome_js_formatter/src/cst.rs | use crate::prelude::*;
use rome_formatter::{FormatOwnedWithRule, FormatRefWithRule};
use crate::{AsFormat, IntoFormat, JsFormatContext};
use rome_js_syntax::{map_syntax_node, JsSyntaxNode};
#[derive(Debug, Copy, Clone, Default)]
pub struct FormatJsSyntaxNode;
impl rome_formatter::FormatRule<JsSyntaxNode> for FormatJ... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/parentheses.rs | crates/rome_js_formatter/src/parentheses.rs | //! JavaScript supports parenthesizing expressions, assignments, and TypeScript types.
//! Parenthesizing an expression can be desired to change the precedence of an expression or to ease
//! readability.
//!
//! Rome is opinionated about which parentheses to keep or where to insert parentheses.
//! It removes parenthe... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | true |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/format.rs | crates/rome_js_formatter/src/format.rs | //! Generated file, do not edit by hand, see `xtask/codegen`
use crate::{Format, FormatElement, FormatNode, Formatter};
use rome_formatter::FormatResult;
impl Format for rome_js_syntax::JsScript {
fn format(&self, formatter: &Formatter) -> FormatResult<FormatElement> {
self.format_node(formatter)
}
}
i... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | true |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/context.rs | crates/rome_js_formatter/src/context.rs | use crate::comments::{FormatJsLeadingComment, JsCommentStyle, JsComments};
use crate::context::trailing_comma::TrailingComma;
use rome_deserialize::json::with_only_known_variants;
use rome_deserialize::{DeserializationDiagnostic, VisitNode};
use rome_formatter::printer::PrinterOptions;
use rome_formatter::token::string... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/separated.rs | crates/rome_js_formatter/src/separated.rs | use crate::prelude::*;
use crate::{AsFormat, FormatJsSyntaxToken};
use rome_formatter::separated::{FormatSeparatedElementRule, FormatSeparatedIter};
use rome_formatter::FormatRefWithRule;
use rome_js_syntax::{JsLanguage, JsSyntaxToken};
use rome_rowan::{AstNode, AstSeparatedList, AstSeparatedListElementsIterator};
use ... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/generated.rs | crates/rome_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.
use crate::{
AsFormat, FormatBogusNodeRule, FormatNodeRule, IntoFormat, JsFormatContext, JsFormatter,
};
use rome_formatter::{FormatOwnedWithRule, FormatRefWithRule, FormatResult, FormatRule};
impl FormatR... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | true |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/mod.rs | crates/rome_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 | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/lists/child_list.rs | crates/rome_js_formatter/src/jsx/lists/child_list.rs | use crate::prelude::*;
use crate::utils::jsx::{
is_meaningful_jsx_text, is_whitespace_jsx_expression, jsx_split_children, JsxChild,
JsxChildrenIterator, JsxRawSpace, JsxSpace,
};
use crate::JsFormatter;
use rome_formatter::format_element::tag::{GroupMode, Tag};
use rome_formatter::{format_args, write, CstFormat... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/lists/attribute_list.rs | crates/rome_js_formatter/src/jsx/lists/attribute_list.rs | use crate::prelude::*;
use rome_js_syntax::JsxAttributeList;
#[derive(Debug, Clone, Default)]
pub struct FormatJsxAttributeList;
impl FormatRule<JsxAttributeList> for FormatJsxAttributeList {
type Context = JsFormatContext;
fn fmt(&self, node: &JsxAttributeList, f: &mut JsFormatter) -> FormatResult<()> {
... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/lists/mod.rs | crates/rome_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 | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/auxiliary/reference_identifier.rs | crates/rome_js_formatter/src/jsx/auxiliary/reference_identifier.rs | use crate::prelude::*;
use rome_formatter::write;
use rome_js_syntax::JsxReferenceIdentifier;
#[derive(Debug, Clone, Default)]
pub struct FormatJsxReferenceIdentifier;
impl FormatNodeRule<JsxReferenceIdentifier> for FormatJsxReferenceIdentifier {
fn fmt_fields(&self, node: &JsxReferenceIdentifier, f: &mut JsForm... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/auxiliary/string.rs | crates/rome_js_formatter/src/jsx/auxiliary/string.rs | use crate::prelude::*;
use crate::utils::{FormatLiteralStringToken, StringLiteralParentKind};
use rome_formatter::write;
use rome_js_syntax::JsxString;
#[derive(Debug, Clone, Default)]
pub struct FormatJsxString;
impl FormatNodeRule<JsxString> for FormatJsxString {
fn fmt_fields(&self, node: &JsxString, f: &mut ... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/auxiliary/expression_child.rs | crates/rome_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 crate::utils::AnyJsBinaryLikeExpression;
use rome_formatter::{CstFormatContext, FormatResult};
use rome_js_syntax::{AnyJsExpression, JsxExpressionChild, JsxExpressio... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/auxiliary/text.rs | crates/rome_js_formatter/src/jsx/auxiliary/text.rs | use crate::prelude::*;
use rome_formatter::FormatResult;
use rome_js_syntax::JsxText;
#[derive(Debug, Clone, Default)]
pub struct FormatJsxText;
impl FormatNodeRule<JsxText> for FormatJsxText {
fn fmt_fields(&self, node: &JsxText, f: &mut JsFormatter) -> FormatResult<()> {
// Formatting a [JsxText] on it... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/auxiliary/mod.rs | crates/rome_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 | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/auxiliary/namespace_name.rs | crates/rome_js_formatter/src/jsx/auxiliary/namespace_name.rs | use crate::prelude::*;
use rome_formatter::write;
use rome_js_syntax::{JsxNamespaceName, JsxNamespaceNameFields};
#[derive(Debug, Clone, Default)]
pub struct FormatJsxNamespaceName;
impl FormatNodeRule<JsxNamespaceName> for FormatJsxNamespaceName {
fn fmt_fields(&self, node: &JsxNamespaceName, f: &mut JsFormatte... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/auxiliary/name.rs | crates/rome_js_formatter/src/jsx/auxiliary/name.rs | use crate::prelude::*;
use rome_formatter::write;
use rome_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 { v... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/auxiliary/spread_child.rs | crates/rome_js_formatter/src/jsx/auxiliary/spread_child.rs | use crate::prelude::*;
use rome_formatter::write;
use rome_js_syntax::{JsxSpreadChild, JsxSpreadChildFields};
#[derive(Debug, Clone, Default)]
pub struct FormatJsxSpreadChild;
impl FormatNodeRule<JsxSpreadChild> for FormatJsxSpreadChild {
fn fmt_fields(&self, node: &JsxSpreadChild, f: &mut JsFormatter) -> Format... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/expressions/tag_expression.rs | crates/rome_js_formatter/src/jsx/expressions/tag_expression.rs | use crate::parentheses::{is_callee, is_tag, NeedsParentheses};
use crate::prelude::*;
use crate::utils::jsx::{get_wrap_state, WrapState};
use rome_formatter::{format_args, write};
use rome_js_syntax::{
JsArrowFunctionExpression, JsBinaryExpression, JsBinaryOperator, JsCallArgumentList,
JsCallExpression, JsSynta... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/expressions/mod.rs | crates/rome_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 | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/tag/element.rs | crates/rome_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 rome_formatter::{format_args, write, CstFormatContext, FormatResult, FormatRuleWithOptions};
use rome_js_syntax::{
AnyJsE... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/tag/closing_fragment.rs | crates/rome_js_formatter/src/jsx/tag/closing_fragment.rs | use crate::prelude::*;
use rome_formatter::write;
use rome_js_syntax::{JsxClosingFragment, JsxClosingFragmentFields};
#[derive(Debug, Clone, Default)]
pub struct FormatJsxClosingFragment;
impl FormatNodeRule<JsxClosingFragment> for FormatJsxClosingFragment {
fn fmt_fields(&self, node: &JsxClosingFragment, f: &mu... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/tag/closing_element.rs | crates/rome_js_formatter/src/jsx/tag/closing_element.rs | use crate::prelude::*;
use rome_formatter::write;
use rome_js_syntax::{JsxClosingElement, JsxClosingElementFields};
#[derive(Debug, Clone, Default)]
pub struct FormatJsxClosingElement;
impl FormatNodeRule<JsxClosingElement> for FormatJsxClosingElement {
fn fmt_fields(&self, node: &JsxClosingElement, f: &mut JsFo... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/tag/fragment.rs | crates/rome_js_formatter/src/jsx/tag/fragment.rs | use crate::prelude::*;
use crate::jsx::tag::element::AnyJsxTagWithChildren;
use crate::utils::jsx::is_jsx_suppressed;
use rome_formatter::write;
use rome_js_syntax::JsxFragment;
#[derive(Debug, Clone, Default)]
pub struct FormatJsxFragment;
impl FormatNodeRule<JsxFragment> for FormatJsxFragment {
fn fmt_fields(&... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/tag/opening_element.rs | crates/rome_js_formatter/src/jsx/tag/opening_element.rs | use crate::prelude::*;
use rome_formatter::{write, CstFormatContext};
use rome_js_syntax::{
AnyJsxAttribute, AnyJsxAttributeValue, AnyJsxElementName, JsSyntaxToken, JsxAttributeList,
JsxOpeningElement, JsxSelfClosingElement, JsxString, TsTypeArguments,
};
use rome_rowan::{declare_node_union, SyntaxResult};
#[... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/tag/mod.rs | crates/rome_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 | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/tag/opening_fragment.rs | crates/rome_js_formatter/src/jsx/tag/opening_fragment.rs | use crate::prelude::*;
use rome_formatter::write;
use rome_js_syntax::{JsxOpeningFragment, JsxOpeningFragmentFields};
#[derive(Debug, Clone, Default)]
pub struct FormatJsxOpeningFragment;
impl FormatNodeRule<JsxOpeningFragment> for FormatJsxOpeningFragment {
fn fmt_fields(&self, node: &JsxOpeningFragment, f: &mu... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/tag/self_closing_element.rs | crates/rome_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 rome_js_syntax::JsxSelfClosingElement;
#[derive(Debug, Clone, Default)]
pub struct FormatJsxSelfClosingElement;
impl FormatNodeRule<JsxSelfClosingElement> for FormatJsxSelfClosingElement ... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/any/attribute.rs | crates/rome_js_formatter/src/jsx/any/attribute.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 rome_js_syntax::AnyJsxAttribute;
#[derive(Debug, Clone, Default)]
pub(crate) struct FormatAnyJsxAttribute;
impl FormatRule<AnyJsxAttribute> for FormatAnyJsxAttribute {
type Conte... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/any/mod.rs | crates/rome_js_formatter/src/jsx/any/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;
pub(crate) mod attribute_name;
pub(crate) mod attribute_value;
pub(crate) mod child;
pub(crate) mod element_name;
pub(crate) mod name;
pub(crate) mod object_name;
pub(crate) mod tag;
| rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/any/child.rs | crates/rome_js_formatter/src/jsx/any/child.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 rome_js_syntax::AnyJsxChild;
#[derive(Debug, Clone, Default)]
pub(crate) struct FormatAnyJsxChild;
impl FormatRule<AnyJsxChild> for FormatAnyJsxChild {
type Context = JsFormatCon... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/any/element_name.rs | crates/rome_js_formatter/src/jsx/any/element_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 rome_js_syntax::AnyJsxElementName;
#[derive(Debug, Clone, Default)]
pub(crate) struct FormatAnyJsxElementName;
impl FormatRule<AnyJsxElementName> for FormatAnyJsxElementName {
ty... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/any/attribute_name.rs | crates/rome_js_formatter/src/jsx/any/attribute_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 rome_js_syntax::AnyJsxAttributeName;
#[derive(Debug, Clone, Default)]
pub(crate) struct FormatAnyJsxAttributeName;
impl FormatRule<AnyJsxAttributeName> for FormatAnyJsxAttributeName ... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/any/attribute_value.rs | crates/rome_js_formatter/src/jsx/any/attribute_value.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 rome_js_syntax::AnyJsxAttributeValue;
#[derive(Debug, Clone, Default)]
pub(crate) struct FormatAnyJsxAttributeValue;
impl FormatRule<AnyJsxAttributeValue> for FormatAnyJsxAttributeVa... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/any/name.rs | crates/rome_js_formatter/src/jsx/any/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 rome_js_syntax::AnyJsxName;
#[derive(Debug, Clone, Default)]
pub(crate) struct FormatAnyJsxName;
impl FormatRule<AnyJsxName> for FormatAnyJsxName {
type Context = JsFormatContext... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/any/object_name.rs | crates/rome_js_formatter/src/jsx/any/object_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 rome_js_syntax::AnyJsxObjectName;
#[derive(Debug, Clone, Default)]
pub(crate) struct FormatAnyJsxObjectName;
impl FormatRule<AnyJsxObjectName> for FormatAnyJsxObjectName {
type C... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/any/tag.rs | crates/rome_js_formatter/src/jsx/any/tag.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 rome_js_syntax::AnyJsxTag;
#[derive(Debug, Clone, Default)]
pub(crate) struct FormatAnyJsxTag;
impl FormatRule<AnyJsxTag> for FormatAnyJsxTag {
type Context = JsFormatContext;
... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/objects/member_name.rs | crates/rome_js_formatter/src/jsx/objects/member_name.rs | use crate::prelude::*;
use rome_formatter::write;
use rome_js_syntax::{JsxMemberName, JsxMemberNameFields};
#[derive(Debug, Clone, Default)]
pub struct FormatJsxMemberName;
impl FormatNodeRule<JsxMemberName> for FormatJsxMemberName {
fn fmt_fields(&self, node: &JsxMemberName, f: &mut JsFormatter) -> FormatResult... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/objects/mod.rs | crates/rome_js_formatter/src/jsx/objects/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 member_name;
| rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/attribute/attribute.rs | crates/rome_js_formatter/src/jsx/attribute/attribute.rs | use crate::prelude::*;
use rome_formatter::write;
use rome_js_syntax::{JsxAttribute, JsxAttributeFields};
#[derive(Debug, Clone, Default)]
pub struct FormatJsxAttribute;
impl FormatNodeRule<JsxAttribute> for FormatJsxAttribute {
fn fmt_fields(&self, node: &JsxAttribute, f: &mut JsFormatter) -> FormatResult<()> {... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/attribute/expression_attribute_value.rs | crates/rome_js_formatter/src/jsx/attribute/expression_attribute_value.rs | use crate::prelude::*;
use rome_formatter::{format_args, write, CstFormatContext};
use rome_js_syntax::{
AnyJsExpression, AnyJsxTag, JsxExpressionAttributeValue, JsxExpressionAttributeValueFields,
};
#[derive(Debug, Clone, Default)]
pub struct FormatJsxExpressionAttributeValue;
impl FormatNodeRule<JsxExpressionA... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/attribute/mod.rs | crates/rome_js_formatter/src/jsx/attribute/mod.rs | //! This is a generated file. Don't modify it by hand! Run 'cargo codegen formatter' to re-generate the file.
#[allow(clippy::module_inception)]
pub(crate) mod attribute;
pub(crate) mod attribute_initializer_clause;
pub(crate) mod expression_attribute_value;
pub(crate) mod spread_attribute;
| rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/attribute/spread_attribute.rs | crates/rome_js_formatter/src/jsx/attribute/spread_attribute.rs | use crate::prelude::*;
use rome_formatter::write;
use rome_js_syntax::{JsxSpreadAttribute, JsxSpreadAttributeFields};
#[derive(Debug, Clone, Default)]
pub struct FormatJsxSpreadAttribute;
impl FormatNodeRule<JsxSpreadAttribute> for FormatJsxSpreadAttribute {
fn fmt_fields(&self, node: &JsxSpreadAttribute, f: &mu... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/jsx/attribute/attribute_initializer_clause.rs | crates/rome_js_formatter/src/jsx/attribute/attribute_initializer_clause.rs | use crate::prelude::*;
use rome_formatter::write;
use rome_js_syntax::{JsxAttributeInitializerClause, JsxAttributeInitializerClauseFields};
#[derive(Debug, Clone, Default)]
pub struct FormatJsxAttributeInitializerClause;
impl FormatNodeRule<JsxAttributeInitializerClause> for FormatJsxAttributeInitializerClause {
... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/utils/array.rs | crates/rome_js_formatter/src/utils/array.rs | use crate::prelude::*;
use crate::AsFormat;
use crate::context::trailing_comma::FormatTrailingComma;
use rome_formatter::write;
use rome_js_syntax::{
AnyJsArrayAssignmentPatternElement, AnyJsArrayBindingPatternElement, AnyJsArrayElement,
JsLanguage,
};
use rome_rowan::{AstNode, AstSeparatedList};
/// Utility ... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/utils/object.rs | crates/rome_js_formatter/src/utils/object.rs | use crate::prelude::*;
use crate::utils::FormatLiteralStringToken;
use crate::utils::StringLiteralParentKind;
use rome_formatter::write;
use rome_js_syntax::JsSyntaxKind::JS_STRING_LITERAL;
use rome_js_syntax::{AnyJsClassMemberName, AnyJsObjectMemberName};
use rome_rowan::{declare_node_union, AstNode};
use unicode_widt... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/utils/assignment_like.rs | crates/rome_js_formatter/src/utils/assignment_like.rs | use crate::js::auxiliary::initializer_clause::FormatJsInitializerClauseOptions;
use crate::js::expressions::arrow_function_expression::FormatJsArrowFunctionExpressionOptions;
use crate::prelude::*;
use crate::utils::member_chain::is_member_call_chain;
use crate::utils::object::write_member_name;
use crate::utils::AnyJs... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | true |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/utils/object_like.rs | crates/rome_js_formatter/src/utils/object_like.rs | use crate::prelude::*;
use crate::JsFormatContext;
use rome_formatter::write;
use rome_formatter::{Format, FormatResult};
use rome_js_syntax::{JsObjectExpression, JsSyntaxToken, TsObjectType};
use rome_rowan::{declare_node_union, AstNode, AstNodeList, AstSeparatedList, SyntaxResult};
declare_node_union! {
pub (cra... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
rome/tools | https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_formatter/src/utils/test_each_template.rs | crates/rome_js_formatter/src/utils/test_each_template.rs | use crate::js::auxiliary::template_element::TemplateElementOptions;
use crate::js::lists::template_element_list::{TemplateElementIndention, TemplateElementLayout};
use crate::prelude::*;
use rome_formatter::printer::Printer;
use rome_formatter::{
format_args, write, CstFormatContext, FormatOptions, RemoveSoftLinesB... | rust | MIT | 392d188a49d70e495f13b1bb08cd7d9c43690f9b | 2026-01-04T15:38:12.578592Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.