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_js_analyze/src/analyzers/correctness/no_string_case_mismatch.rs
crates/rome_js_analyze/src/analyzers/correctness/no_string_case_mismatch.rs
use rome_analyze::context::RuleContext; use rome_analyze::{declare_rule, ActionCategory, Ast, Rule, RuleDiagnostic}; use rome_console::markup; use rome_diagnostics::Applicability; use rome_js_factory::make; use rome_js_syntax::*; use rome_rowan::{declare_node_union, AstNode, AstSeparatedList, BatchMutationExt}; use cr...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/analyzers/correctness/no_invalid_constructor_super.rs
crates/rome_js_analyze/src/analyzers/correctness/no_invalid_constructor_super.rs
use rome_analyze::context::RuleContext; use rome_analyze::{declare_rule, Ast, Rule, RuleDiagnostic}; use rome_console::{markup, MarkupBuf}; use rome_js_syntax::{ AnyJsClass, AnyJsExpression, JsAssignmentOperator, JsConstructorClassMember, JsLogicalOperator, }; use rome_rowan::{AstNode, AstNodeList, TextRange}; dec...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/analyzers/correctness/no_unused_labels.rs
crates/rome_js_analyze/src/analyzers/correctness/no_unused_labels.rs
use rome_analyze::context::RuleContext; use rome_analyze::{ declare_rule, ActionCategory, AddVisitor, Phases, QueryMatch, Queryable, Rule, RuleDiagnostic, ServiceBag, Visitor, VisitorContext, }; use rome_console::markup; use rome_diagnostics::Applicability; use rome_js_syntax::{ JsBreakStatement, JsContinue...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/analyzers/correctness/no_unreachable_super.rs
crates/rome_js_analyze/src/analyzers/correctness/no_unreachable_super.rs
use std::{collections::VecDeque, iter, slice}; use roaring::bitmap::RoaringBitmap; use rome_analyze::{context::RuleContext, declare_rule, Rule, RuleDiagnostic}; use rome_console::markup; use rome_control_flow::InstructionKind; use rome_js_syntax::{ AnyJsClass, AnyJsExpression, JsConstructorClassMember, JsSuperExpr...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/analyzers/correctness/no_unsafe_finally.rs
crates/rome_js_analyze/src/analyzers/correctness/no_unsafe_finally.rs
use rome_analyze::context::RuleContext; use rome_analyze::{declare_rule, Ast, Rule, RuleDiagnostic}; use rome_console::markup; use rome_js_syntax::*; use rome_rowan::{declare_node_union, AstNode}; declare_rule! { /// Disallow control flow statements in finally blocks. /// /// JavaScript suspends the contro...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/analyzers/correctness/use_yield.rs
crates/rome_js_analyze/src/analyzers/correctness/use_yield.rs
use rome_analyze::context::RuleContext; use rome_analyze::{ declare_rule, AddVisitor, Phases, QueryMatch, Queryable, Rule, RuleDiagnostic, ServiceBag, Visitor, VisitorContext, }; use rome_console::markup; use rome_js_syntax::{AnyFunctionLike, JsLanguage, JsYieldExpression, TextRange, WalkEvent}; use rome_rowan:...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/analyzers/correctness/no_setter_return.rs
crates/rome_js_analyze/src/analyzers/correctness/no_setter_return.rs
use rome_analyze::context::RuleContext; use rome_analyze::{declare_rule, Ast, Rule, RuleDiagnostic}; use rome_console::markup; use rome_js_syntax::{JsReturnStatement, JsSetterClassMember, JsSetterObjectMember}; use rome_rowan::{declare_node_union, AstNode}; use crate::control_flow::AnyJsControlFlowRoot; declare_rule!...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/analyzers/correctness/use_valid_for_direction.rs
crates/rome_js_analyze/src/analyzers/correctness/use_valid_for_direction.rs
use rome_analyze::{context::RuleContext, declare_rule, Ast, Rule, RuleDiagnostic}; use rome_console::markup; use rome_js_syntax::{ AnyJsExpression, JsAssignmentOperator, JsBinaryOperator, JsForStatement, JsIdentifierAssignment, JsIdentifierExpression, JsPostUpdateOperator, JsUnaryOperator, TextRange, }; de...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/analyzers/correctness/no_constructor_return.rs
crates/rome_js_analyze/src/analyzers/correctness/no_constructor_return.rs
use rome_analyze::context::RuleContext; use rome_analyze::{declare_rule, Ast, Rule, RuleDiagnostic}; use rome_console::markup; use rome_js_syntax::{JsConstructorClassMember, JsReturnStatement}; use rome_rowan::AstNode; use crate::control_flow::AnyJsControlFlowRoot; declare_rule! { /// Disallow returning a value f...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/analyzers/correctness/no_precision_loss.rs
crates/rome_js_analyze/src/analyzers/correctness/no_precision_loss.rs
use std::num::IntErrorKind; use std::ops::RangeInclusive; use rome_analyze::context::RuleContext; use rome_analyze::{declare_rule, Ast, Rule, RuleDiagnostic}; use rome_console::markup; use rome_js_syntax::numbers::split_into_radix_and_number; use rome_js_syntax::JsNumberLiteralExpression; use rome_rowan::AstNode; de...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/analyzers/correctness/no_inner_declarations.rs
crates/rome_js_analyze/src/analyzers/correctness/no_inner_declarations.rs
use rome_analyze::{context::RuleContext, declare_rule, Ast, Rule, RuleDiagnostic}; use rome_console::markup; use rome_js_syntax::{AnyJsDeclaration, JsFileSource, JsStatementList, JsSyntaxKind}; use rome_rowan::AstNode; use crate::control_flow::AnyJsControlFlowRoot; declare_rule! { /// Disallow `function` and `var...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/analyzers/correctness/no_void_type_return.rs
crates/rome_js_analyze/src/analyzers/correctness/no_void_type_return.rs
use rome_analyze::context::RuleContext; use rome_analyze::{declare_rule, Ast, Rule, RuleDiagnostic}; use rome_console::markup; use rome_js_syntax::{ AnyTsReturnType, JsArrowFunctionExpression, JsFunctionDeclaration, JsFunctionExportDefaultDeclaration, JsFunctionExpression, JsGetterClassMember, JsGetterObjec...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/analyzers/correctness/no_unreachable.rs
crates/rome_js_analyze/src/analyzers/correctness/no_unreachable.rs
use std::{cmp::Ordering, collections::VecDeque, num::NonZeroU32, vec::IntoIter}; use roaring::bitmap::RoaringBitmap; use rome_analyze::{context::RuleContext, declare_rule, Rule, RuleDiagnostic}; use rome_control_flow::{ builder::BlockId, ExceptionHandler, ExceptionHandlerKind, Instruction, InstructionKind, }; use ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
true
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/analyzers/correctness/no_empty_pattern.rs
crates/rome_js_analyze/src/analyzers/correctness/no_empty_pattern.rs
use rome_analyze::{context::RuleContext, declare_rule, Ast, Rule, RuleDiagnostic}; use rome_console::markup; use rome_js_syntax::{JsArrayBindingPattern, JsObjectBindingPattern}; use rome_rowan::{declare_node_union, AstNode, AstSeparatedList}; declare_rule! { /// Disallows empty destructuring patterns. /// ## E...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/analyzers/correctness/no_switch_declarations.rs
crates/rome_js_analyze/src/analyzers/correctness/no_switch_declarations.rs
use rome_analyze::context::RuleContext; use rome_analyze::{declare_rule, ActionCategory, Ast, Rule, RuleDiagnostic}; use rome_console::markup; use rome_diagnostics::Applicability; use rome_js_factory::make; use rome_js_syntax::{ AnyJsDeclaration, AnyJsStatement, AnyJsSwitchClause, JsSyntaxNode, JsVariableStatement,...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/analyzers/correctness/no_unnecessary_continue.rs
crates/rome_js_analyze/src/analyzers/correctness/no_unnecessary_continue.rs
use rome_analyze::{context::RuleContext, declare_rule, ActionCategory, Ast, Rule, RuleDiagnostic}; use rome_console::markup; use rome_diagnostics::Applicability; use rome_js_syntax::{JsContinueStatement, JsLabeledStatement, JsSyntaxKind, JsSyntaxNode}; use rome_rowan::{AstNode, BatchMutationExt}; use crate::{utils, Js...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/analyzers/correctness/no_unsafe_optional_chaining.rs
crates/rome_js_analyze/src/analyzers/correctness/no_unsafe_optional_chaining.rs
use rome_analyze::{context::RuleContext, declare_rule, Ast, Rule, RuleDiagnostic}; use rome_console::markup; use rome_js_syntax::{ AnyJsAssignmentPattern, AnyJsBindingPattern, AnyJsExpression, JsAssignmentExpression, JsAssignmentWithDefault, JsAwaitExpression, JsCallExpression, JsComputedMemberExpression, J...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/analyzers/nursery/no_static_only_class.rs
crates/rome_js_analyze/src/analyzers/nursery/no_static_only_class.rs
use rome_analyze::{context::RuleContext, declare_rule, Ast, Rule, RuleDiagnostic}; use rome_console::markup; use rome_js_syntax::{ AnyJsClass, AnyJsClassMember, JsGetterClassMember, JsMethodClassMember, JsPropertyClassMember, JsSetterClassMember, TsGetterSignatureClassMember, TsIndexSignatureClassMember, Ts...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/analyzers/nursery/no_nonoctal_decimal_escape.rs
crates/rome_js_analyze/src/analyzers/nursery/no_nonoctal_decimal_escape.rs
use crate::JsRuleAction; use rome_analyze::{context::RuleContext, declare_rule, ActionCategory, Ast, Rule, RuleDiagnostic}; use rome_console::markup; use rome_diagnostics::Applicability; use rome_js_factory::make; use rome_js_syntax::JsStringLiteralExpression; use rome_rowan::{AstNode, BatchMutationExt, TextRange}; use...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/analyzers/nursery/use_grouped_type_import.rs
crates/rome_js_analyze/src/analyzers/nursery/use_grouped_type_import.rs
use crate::JsRuleAction; use rome_analyze::{context::RuleContext, declare_rule, ActionCategory, Ast, Rule, RuleDiagnostic}; use rome_console::markup; use rome_diagnostics::Applicability; use rome_js_factory::make; use rome_js_syntax::{ AnyJsNamedImport, AnyJsNamedImportSpecifier, JsImportNamedClause, TriviaPieceKin...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/analyzers/nursery/no_fallthrough_switch_clause.rs
crates/rome_js_analyze/src/analyzers/nursery/no_fallthrough_switch_clause.rs
use rome_rowan::{AstNode, AstNodeList}; use rome_analyze::{context::RuleContext, declare_rule, Ast, Rule, RuleDiagnostic}; use rome_console::markup; use rome_js_syntax::{ AnyJsStatement, AnyJsSwitchClause, JsBlockStatement, JsStatementList, JsSwitchStatement, }; declare_rule! { /// Disallow fallthrough of `sw...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/analyzers/nursery/no_confusing_arrow.rs
crates/rome_js_analyze/src/analyzers/nursery/no_confusing_arrow.rs
use rome_analyze::{context::RuleContext, declare_rule, Ast, Rule, RuleDiagnostic}; use rome_console::markup; use rome_js_syntax::JsArrowFunctionExpression; declare_rule! { /// Disallow arrow functions where they could be confused with comparisons. /// /// Arrow functions (`=>`) are similar in syntax to som...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/analyzers/nursery/use_literal_enum_members.rs
crates/rome_js_analyze/src/analyzers/nursery/use_literal_enum_members.rs
use rome_analyze::{context::RuleContext, declare_rule, Ast, Rule, RuleDiagnostic}; use rome_console::markup; use rome_js_syntax::{ AnyJsExpression, AnyJsLiteralExpression, AnyJsMemberExpression, JsUnaryOperator, TsEnumDeclaration, }; use rome_rowan::{AstNode, TextRange}; use rustc_hash::FxHashSet; declare_rule...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/analyzers/nursery/no_self_assign.rs
crates/rome_js_analyze/src/analyzers/nursery/no_self_assign.rs
use rome_analyze::{context::RuleContext, declare_rule, Ast, Rule, RuleDiagnostic}; use rome_console::markup; use rome_js_syntax::{ inner_string_text, AnyJsArrayAssignmentPatternElement, AnyJsArrayElement, AnyJsAssignment, AnyJsAssignmentPattern, AnyJsExpression, AnyJsLiteralExpression, AnyJsName, AnyJsObjec...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/analyzers/nursery/use_import_restrictions.rs
crates/rome_js_analyze/src/analyzers/nursery/use_import_restrictions.rs
use rome_analyze::{context::RuleContext, declare_rule, Ast, Rule, RuleDiagnostic}; use rome_console::markup; use rome_js_syntax::JsModuleSource; use rome_rowan::{AstNode, TokenText}; const INDEX_BASENAMES: &[&str] = &["index", "mod"]; const SOURCE_EXTENSIONS: &[&str] = &["js", "ts", "cjs", "cts", "mjs", "mts", "jsx",...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/analyzers/nursery/use_arrow_function.rs
crates/rome_js_analyze/src/analyzers/nursery/use_arrow_function.rs
use crate::JsRuleAction; use rome_analyze::{ context::RuleContext, declare_rule, ActionCategory, AddVisitor, Phases, QueryMatch, Queryable, Rule, RuleDiagnostic, ServiceBag, Visitor, VisitorContext, }; use rome_console::markup; use rome_diagnostics::Applicability; use rome_js_factory::make; use rome_js_syntax::...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/analyzers/nursery/no_void.rs
crates/rome_js_analyze/src/analyzers/nursery/no_void.rs
use rome_analyze::{context::RuleContext, declare_rule, Ast, Rule, RuleDiagnostic}; use rome_console::markup; use rome_js_syntax::JsUnaryExpression; use rome_rowan::AstNode; declare_rule! { /// Disallow the use of `void` operators, which is not a familiar operator. /// /// > The `void` operator is often use...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/analyzers/nursery/no_excessive_complexity.rs
crates/rome_js_analyze/src/analyzers/nursery/no_excessive_complexity.rs
use bpaf::Bpaf; use rome_analyze::{ context::RuleContext, declare_rule, AddVisitor, Phases, QueryMatch, Queryable, Rule, RuleDiagnostic, ServiceBag, Visitor, VisitorContext, }; use rome_console::markup; use rome_deserialize::{ json::{has_only_known_keys, VisitJsonNode}, DeserializationDiagnostic, VisitN...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/analyzers/nursery/no_useless_empty_export.rs
crates/rome_js_analyze/src/analyzers/nursery/no_useless_empty_export.rs
use rome_analyze::{context::RuleContext, declare_rule, ActionCategory, Ast, Rule, RuleDiagnostic}; use rome_console::markup; use rome_diagnostics::Applicability; use rome_js_syntax::{AnyJsModuleItem, JsExport, JsModuleItemList, JsSyntaxToken}; use rome_rowan::{AstNode, AstSeparatedList, BatchMutationExt}; use crate::J...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/analyzers/nursery/no_control_characters_in_regex.rs
crates/rome_js_analyze/src/analyzers/nursery/no_control_characters_in_regex.rs
use crate::utils::escape_string; use rome_analyze::{context::RuleContext, declare_rule, Ast, Rule, RuleDiagnostic}; use rome_console::markup; use rome_js_syntax::{ AnyJsExpression, JsCallArguments, JsCallExpression, JsNewExpression, JsRegexLiteralExpression, JsStringLiteralExpression, }; use rome_rowan::{declar...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/aria_analyzers/a11y.rs
crates/rome_js_analyze/src/aria_analyzers/a11y.rs
//! Generated file, do not edit by hand, see `xtask/codegen` use rome_analyze::declare_group; pub(crate) mod no_noninteractive_element_to_interactive_role; pub(crate) mod use_aria_props_for_role; pub(crate) mod use_valid_aria_props; pub(crate) mod use_valid_lang; declare_group! { pub (crate) A11y { name ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/aria_analyzers/nursery.rs
crates/rome_js_analyze/src/aria_analyzers/nursery.rs
//! Generated file, do not edit by hand, see `xtask/codegen` use rome_analyze::declare_group; pub(crate) mod no_aria_unsupported_elements; pub(crate) mod no_noninteractive_tabindex; pub(crate) mod no_redundant_roles; pub(crate) mod use_aria_prop_types; declare_group! { pub (crate) Nursery { name : "nurse...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/aria_analyzers/a11y/no_noninteractive_element_to_interactive_role.rs
crates/rome_js_analyze/src/aria_analyzers/a11y/no_noninteractive_element_to_interactive_role.rs
use crate::aria_services::Aria; use rome_analyze::context::RuleContext; use rome_analyze::{declare_rule, Rule, RuleDiagnostic}; use rome_console::markup; use rome_js_syntax::jsx_ext::AnyJsxElement; use rome_rowan::{AstNode, TextRange}; declare_rule! { /// Enforce that interactive ARIA roles are not assigned to non...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/aria_analyzers/a11y/use_valid_aria_props.rs
crates/rome_js_analyze/src/aria_analyzers/a11y/use_valid_aria_props.rs
use crate::aria_services::Aria; use rome_analyze::context::RuleContext; use rome_analyze::{declare_rule, Rule, RuleDiagnostic}; use rome_console::markup; use rome_js_syntax::jsx_ext::AnyJsxElement; use rome_rowan::{AstNode, AstNodeList, TextRange}; declare_rule! { /// Ensures that ARIA properties `aria-*` are all ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/aria_analyzers/a11y/use_valid_lang.rs
crates/rome_js_analyze/src/aria_analyzers/a11y/use_valid_lang.rs
use crate::aria_services::Aria; use rome_analyze::context::RuleContext; use rome_analyze::{declare_rule, Rule, RuleDiagnostic}; use rome_console::markup; use rome_js_syntax::jsx_ext::AnyJsxElement; use rome_rowan::{AstNode, TextRange}; declare_rule! { /// Ensure that the attribute passed to the `lang` attribute is ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/aria_analyzers/a11y/use_aria_props_for_role.rs
crates/rome_js_analyze/src/aria_analyzers/a11y/use_aria_props_for_role.rs
use crate::aria_services::Aria; use rome_analyze::context::RuleContext; use rome_analyze::{declare_rule, Rule, RuleDiagnostic}; use rome_console::markup; use rome_js_syntax::jsx_ext::AnyJsxElement; use rome_js_syntax::JsxAttribute; use rome_rowan::AstNode; declare_rule! { /// Enforce that elements with ARIA roles ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/aria_analyzers/nursery/no_noninteractive_tabindex.rs
crates/rome_js_analyze/src/aria_analyzers/nursery/no_noninteractive_tabindex.rs
use crate::aria_services::Aria; use rome_analyze::{context::RuleContext, declare_rule, Rule, RuleDiagnostic}; use rome_aria::AriaRoles; use rome_console::markup; use rome_js_syntax::{ jsx_ext::AnyJsxElement, AnyJsxAttributeValue, JsNumberLiteralExpression, JsStringLiteralExpression, JsUnaryExpression, TextRange...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/aria_analyzers/nursery/use_aria_prop_types.rs
crates/rome_js_analyze/src/aria_analyzers/nursery/use_aria_prop_types.rs
use crate::aria_services::Aria; use rome_analyze::context::RuleContext; use rome_analyze::{declare_rule, Rule, RuleDiagnostic}; use rome_aria::AriaPropertyTypeEnum; use rome_console::markup; use rome_js_syntax::{JsSyntaxToken, JsxAttribute, TextRange}; use rome_rowan::AstNode; use std::slice::Iter; declare_rule! { ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/aria_analyzers/nursery/no_redundant_roles.rs
crates/rome_js_analyze/src/aria_analyzers/nursery/no_redundant_roles.rs
use crate::{aria_services::Aria, JsRuleAction}; use rome_analyze::{context::RuleContext, declare_rule, ActionCategory, Rule, RuleDiagnostic}; use rome_aria::{roles::AriaRoleDefinition, AriaRoles}; use rome_console::markup; use rome_diagnostics::Applicability; use rome_js_syntax::{ jsx_ext::AnyJsxElement, AnyJsxAttr...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/aria_analyzers/nursery/no_aria_unsupported_elements.rs
crates/rome_js_analyze/src/aria_analyzers/nursery/no_aria_unsupported_elements.rs
use crate::aria_services::Aria; use rome_analyze::{context::RuleContext, declare_rule, Rule, RuleDiagnostic}; use rome_console::markup; use rome_js_syntax::jsx_ext::AnyJsxElement; use rome_rowan::{AstNode, AstNodeList}; declare_rule! { /// Enforce that elements that do not support ARIA roles, states, and propertie...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/assists/correctness.rs
crates/rome_js_analyze/src/assists/correctness.rs
//! Generated file, do not edit by hand, see `xtask/codegen` use rome_analyze::declare_group; pub(crate) mod flip_bin_exp; pub(crate) mod inline_variable; pub(crate) mod organize_imports; declare_group! { pub (crate) Correctness { name : "correctness" , rules : [ self :: flip_bin_exp ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/assists/correctness/flip_bin_exp.rs
crates/rome_js_analyze/src/assists/correctness/flip_bin_exp.rs
use rome_analyze::{context::RuleContext, declare_rule, ActionCategory, Ast, RefactorKind, Rule}; use rome_console::markup; use rome_diagnostics::Applicability; use rome_js_factory::make; use rome_js_syntax::{ JsBinaryExpression, JsBinaryExpressionFields, JsBinaryOperator, JsSyntaxKind, T, }; use rome_rowan::BatchMu...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/assists/correctness/organize_imports.rs
crates/rome_js_analyze/src/assists/correctness/organize_imports.rs
use std::{ cell::Cell, cmp::Ordering, collections::{btree_map::Entry, BTreeMap}, iter, mem::take, }; use rome_analyze::{ context::RuleContext, declare_rule, ActionCategory, Ast, Rule, SourceActionKind, }; use rome_console::markup; use rome_diagnostics::Applicability; use rome_js_factory::make; ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/assists/correctness/inline_variable.rs
crates/rome_js_analyze/src/assists/correctness/inline_variable.rs
use rome_analyze::{context::RuleContext, declare_rule, ActionCategory, RefactorKind, Rule}; use rome_console::markup; use rome_diagnostics::Applicability; use rome_js_semantic::{Reference, ReferencesExtensions}; use rome_js_syntax::{ AnyJsBinding, AnyJsBindingPattern, AnyJsExpression, JsIdentifierExpression, Js...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/globals/node.rs
crates/rome_js_analyze/src/globals/node.rs
pub const BUILTIN: [&str; 29] = [ "AbortController", "AbortSignal", "Buffer", "DOMException", "Event", "EventTarget", "Intl", "MessageChannel", "MessageEvent", "MessagePort", "TextDecoder", "TextEncoder", "URL", "URLSearchParams", "atob", "btoa", "clea...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/globals/typescript.rs
crates/rome_js_analyze/src/globals/typescript.rs
pub const TYPESCRIPT_BUILTIN: [&str; 140] = [ "AggregateErrorConstructor", "ArrayBufferConstructor", "ArrayBufferLike", "ArrayBufferTypes", "ArrayBufferView", "ArrayConstructor", "ArrayLike", "AsyncDisposable", "AsyncDisposableStack", "AsyncDisposableStackConstructor", "Async...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/globals/browser.rs
crates/rome_js_analyze/src/globals/browser.rs
pub const BROWSER: [&str; 706] = [ "AbortController", "AbortSignal", "AnalyserNode", "Animation", "AnimationEffectReadOnly", "AnimationEffectTiming", "AnimationEffectTimingReadOnly", "AnimationEvent", "AnimationPlaybackEvent", "AnimationTimeline", "ApplicationCache", "App...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/globals/runtime.rs
crates/rome_js_analyze/src/globals/runtime.rs
pub const BUILTIN: [&str; 66] = [ "AggregateError", "Array", "ArrayBuffer", "Atomics", "BigInt", "BigInt64Array", "BigUint64Array", "Boolean", "DataView", "Date", "Error", "EvalError", "FinalizationRegistry", "Float32Array", "Float64Array", "Function", ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/globals/mod.rs
crates/rome_js_analyze/src/globals/mod.rs
//! This module tracks all globals variables //! //! The data in this module is a port of: `<https://github.com/sindresorhus/globals/blob/main/globals.json>` pub mod browser; pub mod node; pub mod runtime; pub mod typescript;
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/utils/case.rs
crates/rome_js_analyze/src/utils/case.rs
/// Represents the [Case] of a string. /// /// Note that some cases are superset of others. /// For example, `Case::Camel` includes `Case::Lower`. /// See [Case::is_compatible_with] for more details. #[derive(Debug, Default, Copy, Clone, Eq, PartialEq, Hash)] pub enum Case { /// Unknown case #[default] Unkn...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/utils/tests.rs
crates/rome_js_analyze/src/utils/tests.rs
use super::rename::*; use crate::utils::batch::JsBatchMutation; use rome_js_parser::JsParserOptions; use rome_js_semantic::{semantic_model, SemanticModelOptions}; use rome_js_syntax::JsSyntaxNode; use rome_js_syntax::{ AnyJsObjectMember, JsFileSource, JsFormalParameter, JsIdentifierBinding, JsLanguage, JsVariab...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/utils/rename.rs
crates/rome_js_analyze/src/utils/rename.rs
use rome_console::fmt::Formatter; use rome_console::markup; use rome_diagnostics::{Diagnostic, Location, Severity}; use rome_js_semantic::{ReferencesExtensions, SemanticModel}; use rome_js_syntax::{ binding_ext::AnyJsIdentifierBinding, JsIdentifierAssignment, JsIdentifierBinding, JsLanguage, JsReferenceIdentifi...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/utils/batch.rs
crates/rome_js_analyze/src/utils/batch.rs
use rome_js_factory::make::jsx_child_list; use rome_js_syntax::{ AnyJsConstructorParameter, AnyJsFormalParameter, AnyJsObjectMember, AnyJsParameter, AnyJsxChild, JsConstructorParameterList, JsFormalParameter, JsLanguage, JsObjectMemberList, JsParameterList, JsSyntaxKind, JsSyntaxNode, JsVariableDeclaration,...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/utils/escape.rs
crates/rome_js_analyze/src/utils/escape.rs
/// Utility function to escape strings. /// /// This function iterates over characters of strings and adds an escape character if needed. /// If there are already odd number of escape characters before the character needs to be escaped, /// the escape character is not added. /// /// **sample case** /// /// | needs_esca...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/syntax/nursery.rs
crates/rome_js_analyze/src/syntax/nursery.rs
//! Generated file, do not edit by hand, see `xtask/codegen` use rome_analyze::declare_group; pub(crate) mod no_duplicate_private_class_members; pub(crate) mod no_super_without_extends; declare_group! { pub (crate) Nursery { name : "nursery" , rules : [ self :: no_duplicate_private_cl...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/syntax/nursery/no_super_without_extends.rs
crates/rome_js_analyze/src/syntax/nursery/no_super_without_extends.rs
use rome_analyze::context::RuleContext; use rome_analyze::{declare_rule, Ast, Rule, RuleDiagnostic}; use rome_console::markup; use rome_diagnostics::category; use rome_js_syntax::{JsClassDeclaration, JsSuperExpression}; use rome_rowan::AstNode; declare_rule! { /// Catch a `SyntaxError` when writing calling `super(...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/syntax/nursery/no_duplicate_private_class_members.rs
crates/rome_js_analyze/src/syntax/nursery/no_duplicate_private_class_members.rs
use std::collections::{HashMap, HashSet}; use rome_analyze::{context::RuleContext, declare_rule, Ast, Rule, RuleDiagnostic}; use rome_diagnostics::category; use rome_js_syntax::{AnyJsClassMember, JsClassMemberList, TextRange}; use rome_rowan::AstNode; declare_rule! { /// Catch a `SyntaxError` when defining dupli...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/control_flow/visitor.rs
crates/rome_js_analyze/src/control_flow/visitor.rs
use std::any::TypeId; use rome_analyze::{merge_node_visitors, Visitor, VisitorContext}; use rome_js_syntax::{ AnyJsFunction, JsConstructorClassMember, JsGetterClassMember, JsGetterObjectMember, JsLanguage, JsMethodClassMember, JsMethodObjectMember, JsModule, JsScript, JsSetterClassMember, JsSetterObjectMem...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/control_flow/nodes.rs
crates/rome_js_analyze/src/control_flow/nodes.rs
mod block; mod break_stmt; mod continue_stmt; mod do_while; mod for_in; mod for_of; mod for_stmt; mod if_stmt; mod return_stmt; mod statement; mod switch_stmt; mod throw_stmt; mod try_catch; mod variable; mod while_stmt; pub(super) use block::*; pub(super) use break_stmt::*; pub(super) use continue_stmt::*; pub(super)...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/control_flow/nodes/switch_stmt.rs
crates/rome_js_analyze/src/control_flow/nodes/switch_stmt.rs
use rome_control_flow::builder::BlockId; use rome_js_syntax::{AnyJsSwitchClause, JsLabeledStatement, JsSwitchStatement, JsSyntaxToken}; use rome_rowan::{AstNode, SyntaxResult}; use crate::control_flow::{ visitor::{NodeVisitor, StatementStack}, FunctionBuilder, }; pub(in crate::control_flow) struct SwitchVisit...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/control_flow/nodes/variable.rs
crates/rome_js_analyze/src/control_flow/nodes/variable.rs
use rome_js_syntax::JsVariableStatement; use rome_rowan::{AstNode, SyntaxResult}; use crate::control_flow::{ visitor::{NodeVisitor, StatementStack}, FunctionBuilder, }; pub(in crate::control_flow) struct VariableVisitor; impl NodeVisitor for VariableVisitor { type Node = JsVariableStatement; fn ente...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/control_flow/nodes/break_stmt.rs
crates/rome_js_analyze/src/control_flow/nodes/break_stmt.rs
use std::any::TypeId; use rome_js_syntax::JsBreakStatement; use rome_rowan::{AstNode, SyntaxError, SyntaxResult}; use crate::control_flow::{ nodes::{ BlockVisitor, DoWhileVisitor, ForInVisitor, ForOfVisitor, ForVisitor, SwitchVisitor, WhileVisitor, }, visitor::{FunctionVisitor, NodeVisitor...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/control_flow/nodes/throw_stmt.rs
crates/rome_js_analyze/src/control_flow/nodes/throw_stmt.rs
use rome_js_syntax::JsThrowStatement; use rome_rowan::{AstNode, SyntaxResult}; use crate::control_flow::{ visitor::{NodeVisitor, StatementStack}, FunctionBuilder, }; pub(in crate::control_flow) struct ThrowVisitor; impl NodeVisitor for ThrowVisitor { type Node = JsThrowStatement; fn enter( n...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/control_flow/nodes/for_stmt.rs
crates/rome_js_analyze/src/control_flow/nodes/for_stmt.rs
use rome_control_flow::builder::BlockId; use rome_js_syntax::{JsForStatement, JsLabeledStatement, JsSyntaxToken}; use rome_rowan::{AstNode, SyntaxResult}; use crate::control_flow::{ visitor::{NodeVisitor, StatementStack}, FunctionBuilder, }; pub(in crate::control_flow) struct ForVisitor { // `label`, `con...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/control_flow/nodes/if_stmt.rs
crates/rome_js_analyze/src/control_flow/nodes/if_stmt.rs
use rome_control_flow::builder::BlockId; use rome_js_syntax::{JsElseClause, JsIfStatement}; use rome_rowan::{AstNode, SyntaxResult}; use crate::control_flow::{ visitor::{NodeVisitor, StatementStack}, FunctionBuilder, }; pub(in crate::control_flow) struct IfVisitor { /// Saved position of the control flow ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/control_flow/nodes/block.rs
crates/rome_js_analyze/src/control_flow/nodes/block.rs
use rome_control_flow::builder::BlockId; use rome_js_syntax::{JsBlockStatement, JsLabeledStatement, JsSyntaxToken}; use rome_rowan::{AstNode, SyntaxResult}; use crate::control_flow::{ visitor::{NodeVisitor, StatementStack}, FunctionBuilder, }; pub(in crate::control_flow) struct BlockVisitor { /// If this ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/control_flow/nodes/do_while.rs
crates/rome_js_analyze/src/control_flow/nodes/do_while.rs
use rome_control_flow::builder::BlockId; use rome_js_syntax::{JsDoWhileStatement, JsLabeledStatement, JsSyntaxToken}; use rome_rowan::{AstNode, SyntaxResult}; use crate::control_flow::{ visitor::{NodeVisitor, StatementStack}, FunctionBuilder, }; pub(in crate::control_flow) struct DoWhileVisitor { // `labe...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/control_flow/nodes/try_catch.rs
crates/rome_js_analyze/src/control_flow/nodes/try_catch.rs
use rome_control_flow::{builder::BlockId, ExceptionHandlerKind}; use rome_js_syntax::{JsCatchClause, JsFinallyClause, JsTryFinallyStatement, JsTryStatement}; use rome_rowan::{declare_node_union, SyntaxResult}; use crate::control_flow::{ visitor::{NodeVisitor, StatementStack}, FunctionBuilder, }; declare_node_...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/control_flow/nodes/statement.rs
crates/rome_js_analyze/src/control_flow/nodes/statement.rs
use rome_js_syntax::{JsDebuggerStatement, JsEmptyStatement, JsExpressionStatement}; use rome_rowan::{declare_node_union, AstNode, SyntaxResult}; use crate::control_flow::{ visitor::{NodeVisitor, StatementStack}, FunctionBuilder, }; declare_node_union! { pub(in crate::control_flow) JsSimpleStatement = JsDe...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/control_flow/nodes/while_stmt.rs
crates/rome_js_analyze/src/control_flow/nodes/while_stmt.rs
use rome_control_flow::builder::BlockId; use rome_js_syntax::{JsLabeledStatement, JsSyntaxToken, JsWhileStatement}; use rome_rowan::{AstNode, SyntaxResult}; use crate::control_flow::{ visitor::{NodeVisitor, StatementStack}, FunctionBuilder, }; pub(in crate::control_flow) struct WhileVisitor { // `label`, ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/control_flow/nodes/return_stmt.rs
crates/rome_js_analyze/src/control_flow/nodes/return_stmt.rs
use rome_js_syntax::JsReturnStatement; use rome_rowan::{AstNode, SyntaxResult}; use crate::control_flow::{ visitor::{NodeVisitor, StatementStack}, FunctionBuilder, }; pub(in crate::control_flow) struct ReturnVisitor; impl NodeVisitor for ReturnVisitor { type Node = JsReturnStatement; fn enter( ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/control_flow/nodes/continue_stmt.rs
crates/rome_js_analyze/src/control_flow/nodes/continue_stmt.rs
use std::any::TypeId; use rome_js_syntax::JsContinueStatement; use rome_rowan::{AstNode, SyntaxError, SyntaxResult}; use crate::control_flow::{ nodes::{DoWhileVisitor, ForInVisitor, ForOfVisitor, ForVisitor, WhileVisitor}, visitor::{FunctionVisitor, NodeVisitor, StatementStack, VisitorAdapter}, FunctionBu...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/control_flow/nodes/for_in.rs
crates/rome_js_analyze/src/control_flow/nodes/for_in.rs
use rome_control_flow::builder::BlockId; use rome_js_syntax::{JsForInStatement, JsLabeledStatement, JsSyntaxToken}; use rome_rowan::{AstNode, SyntaxResult}; use crate::control_flow::{ visitor::{NodeVisitor, StatementStack}, FunctionBuilder, }; pub(in crate::control_flow) struct ForInVisitor { // `label`, ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/control_flow/nodes/for_of.rs
crates/rome_js_analyze/src/control_flow/nodes/for_of.rs
use rome_control_flow::builder::BlockId; use rome_js_syntax::{JsForOfStatement, JsLabeledStatement, JsSyntaxToken}; use rome_rowan::{AstNode, SyntaxResult}; use crate::control_flow::{ visitor::{NodeVisitor, StatementStack}, FunctionBuilder, }; pub(in crate::control_flow) struct ForOfVisitor { // `label`, ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/src/react/hooks.rs
crates/rome_js_analyze/src/react/hooks.rs
use crate::react::{is_react_call_api, ReactLibrary}; use std::collections::{HashMap, HashSet}; use rome_js_semantic::{Capture, Closure, ClosureExtensions, SemanticModel}; use rome_js_syntax::{ binding_ext::AnyJsIdentifierBinding, static_value::StaticValue, AnyJsExpression, AnyJsMemberExpression, JsArrayBinding...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_analyze/tests/spec_tests.rs
crates/rome_js_analyze/tests/spec_tests.rs
use rome_analyze::{AnalysisFilter, AnalyzerAction, ControlFlow, Never, RuleFilter}; use rome_diagnostics::advice::CodeSuggestionAdvice; use rome_diagnostics::{DiagnosticExt, Severity}; use rome_js_parser::{parse, JsParserOptions}; use rome_js_syntax::{JsFileSource, JsLanguage}; use rome_rowan::AstNode; use rome_test_ut...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_analyze/src/diagnostics.rs
crates/rome_analyze/src/diagnostics.rs
use rome_console::MarkupBuf; use rome_diagnostics::{ advice::CodeSuggestionAdvice, category, Advices, Category, Diagnostic, DiagnosticExt, DiagnosticTags, Error, Location, Severity, Visit, }; use rome_rowan::TextRange; use std::fmt::{Debug, Display, Formatter}; use crate::rule::RuleDiagnostic; /// Small wrapp...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_analyze/src/visitor.rs
crates/rome_analyze/src/visitor.rs
use crate::{ matcher::{MatchQueryParams, Query}, registry::{NodeLanguage, Phases}, AnalyzerOptions, LanguageRoot, QueryMatch, QueryMatcher, ServiceBag, SignalEntry, SuppressionCommentEmitter, }; use rome_rowan::{AstNode, Language, SyntaxNode, TextRange, WalkEvent}; use std::collections::BinaryHeap; ///...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_analyze/src/services.rs
crates/rome_analyze/src/services.rs
use crate::{RuleKey, TextRange}; use rome_diagnostics::{Diagnostic, LineIndexBuf, Resource, Result, SourceCode}; use std::{ any::{Any, TypeId}, collections::HashMap, }; #[derive(Debug, Diagnostic)] #[diagnostic(category = "internalError/io", tags(INTERNAL))] pub struct MissingServicesDiagnostic { #[message...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_analyze/src/lib.rs
crates/rome_analyze/src/lib.rs
#![deny(rustdoc::broken_intra_doc_links)] #![doc = include_str!("../CONTRIBUTING.md")] use std::cmp::Ordering; use std::collections::{BTreeMap, BinaryHeap}; use std::fmt::{Debug, Display, Formatter}; use std::ops; mod categories; pub mod context; mod diagnostics; mod matcher; pub mod options; mod query; mod registry;...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_analyze/src/categories.rs
crates/rome_analyze/src/categories.rs
use std::borrow::Cow; use bitflags::bitflags; #[derive(Copy, Clone, Debug, Eq, PartialEq)] #[cfg_attr( feature = "serde", derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema) )] pub enum RuleCategory { /// This rule checks the syntax according to the language specification /// and emits ...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_analyze/src/syntax.rs
crates/rome_analyze/src/syntax.rs
use rome_rowan::{AstNode, Language, SyntaxNode, WalkEvent}; use crate::{ registry::NodeLanguage, AddVisitor, Phases, QueryKey, QueryMatch, Queryable, ServiceBag, Visitor, VisitorContext, }; /// Query type usable by lint rules to match on specific [AstNode] types #[derive(Clone)] pub struct Ast<N>(pub N); imp...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_analyze/src/registry.rs
crates/rome_analyze/src/registry.rs
use crate::{ context::RuleContext, matcher::{GroupKey, MatchQueryParams}, query::{QueryKey, Queryable}, signals::RuleSignal, AddVisitor, AnalysisFilter, GroupCategory, QueryMatcher, Rule, RuleGroup, RuleKey, RuleMetadata, ServiceBag, SignalEntry, Visitor, }; use rome_diagnostics::Error; use rome...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_analyze/src/options.rs
crates/rome_analyze/src/options.rs
use crate::{Rule, RuleKey}; use std::any::{Any, TypeId}; use std::collections::HashMap; use std::fmt::Debug; use std::path::PathBuf; /// A convenient new type data structure to store the options that belong to a rule #[derive(Debug)] pub struct RuleOptions((TypeId, Box<dyn Any>)); impl RuleOptions { /// It return...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_analyze/src/query.rs
crates/rome_analyze/src/query.rs
use std::any::TypeId; use rome_rowan::{Language, SyntaxKindSet, TextRange}; use crate::{registry::Phase, services::FromServices, Phases, ServiceBag, Visitor}; /// Trait implemented for types that lint rules can query in order to emit diagnostics or code actions. pub trait Queryable: Sized { type Input: QueryMatc...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_analyze/src/matcher.rs
crates/rome_analyze/src/matcher.rs
use crate::{ AnalyzerOptions, AnalyzerSignal, Phases, QueryMatch, Rule, RuleFilter, RuleGroup, ServiceBag, SuppressionCommentEmitter, }; use rome_rowan::{Language, TextRange}; use std::{ any::{Any, TypeId}, cmp::Ordering, collections::BinaryHeap, }; /// The [QueryMatcher] trait is responsible of ru...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_analyze/src/context.rs
crates/rome_analyze/src/context.rs
use crate::{registry::RuleRoot, FromServices, Queryable, Rule, RuleKey, ServiceBag}; use rome_diagnostics::{Error, Result}; use std::ops::Deref; use std::path::Path; type RuleQueryResult<R> = <<R as Rule>::Query as Queryable>::Output; type RuleServiceBag<R> = <<R as Rule>::Query as Queryable>::Services; pub struct Ru...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_analyze/src/rule.rs
crates/rome_analyze/src/rule.rs
use crate::categories::{ActionCategory, RuleCategory}; use crate::context::RuleContext; use crate::registry::{RegistryVisitor, RuleLanguage, RuleSuppressions}; use crate::{ Phase, Phases, Queryable, SuppressionCommentEmitter, SuppressionCommentEmitterPayload, }; use rome_console::fmt::Display; use rome_console::{ma...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_analyze/src/signals.rs
crates/rome_analyze/src/signals.rs
use crate::categories::SUPPRESSION_ACTION_CATEGORY; use crate::{ categories::ActionCategory, context::RuleContext, registry::{RuleLanguage, RuleRoot}, rule::Rule, AnalyzerDiagnostic, AnalyzerOptions, Queryable, RuleGroup, ServiceBag, SuppressionCommentEmitter, }; use rome_console::MarkupBuf; use...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_syntax/src/binding_ext.rs
crates/rome_js_syntax/src/binding_ext.rs
use crate::{ JsArrowFunctionExpression, JsBogusNamedImportSpecifier, JsBogusParameter, JsCatchDeclaration, JsClassDeclaration, JsClassExportDefaultDeclaration, JsClassExpression, JsConstructorClassMember, JsConstructorParameterList, JsConstructorParameters, JsDefaultImportSpecifier, JsFormalParameter, J...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_syntax/src/import_ext.rs
crates/rome_js_syntax/src/import_ext.rs
use crate::{inner_string_text, AnyJsImportClause, JsImport, JsModuleSource}; use rome_rowan::{SyntaxResult, TokenText}; impl JsImport { /// It checks if the source of an import against the string `source_to_check` /// /// ## Examples /// /// ``` /// use rome_js_factory::make::{js_reference_iden...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_syntax/src/lib.rs
crates/rome_js_syntax/src/lib.rs
//! A crate for generated Syntax node definitions and utility macros. //! Both rome_js_lexer and rome_js_parser rely on these definitions, therefore //! they are wrapped in this crate to prevent cyclic dependencies #[macro_use] mod generated; pub mod binding_ext; pub mod directive_ext; pub mod expr_ext; pub mod file_s...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_syntax/src/function_ext.rs
crates/rome_js_syntax/src/function_ext.rs
use crate::{ AnyJsFunction, AnyJsFunctionBody, JsMethodClassMember, JsMethodObjectMember, JsStatementList, JsSyntaxToken, }; use rome_rowan::{declare_node_union, AstNode, SyntaxResult, TextRange}; declare_node_union! { pub AnyFunctionLike = AnyJsFunction | JsMethodObjectMember | JsMethodClassMember } impl...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_syntax/src/suppression.rs
crates/rome_js_syntax/src/suppression.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_js_syntax/src/modifier_ext.rs
crates/rome_js_syntax/src/modifier_ext.rs
use crate::{ AnyJsMethodModifier, AnyJsPropertyModifier, AnyTsIndexSignatureModifier, AnyTsMethodSignatureModifier, AnyTsPropertyParameterModifier, AnyTsPropertySignatureModifier, JsSyntaxKind, TsAccessibilityModifier, }; /// Helpful data structure to make the order modifiers predictable inside the formatt...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_syntax/src/stmt_ext.rs
crates/rome_js_syntax/src/stmt_ext.rs
//! Extended AST node definitions for statements which are unique and special enough to generate code for manually use crate::{ AnyJsArrayAssignmentPatternElement, AnyJsAssignmentPattern, AnyJsSwitchClause, JsForVariableDeclaration, JsStatementList, JsSyntaxToken as SyntaxToken, JsVariableDeclaration, TsMo...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_syntax/src/syntax_node.rs
crates/rome_js_syntax/src/syntax_node.rs
//! This module defines the Concrete Syntax Tree used by Rome. //! //! 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 the...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_syntax/src/directive_ext.rs
crates/rome_js_syntax/src/directive_ext.rs
use rome_rowan::{SyntaxResult, TokenText}; use crate::{inner_string_text, JsDirective}; impl JsDirective { /// Get the inner text of a string not including the quotes /// /// ## Examples /// /// ``` /// use rome_js_factory::syntax::{JsDirective, JsSyntaxKind::*}; /// use rome_js_factory::J...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_syntax/src/jsx_ext.rs
crates/rome_js_syntax/src/jsx_ext.rs
use std::collections::HashSet; use crate::{ inner_string_text, static_value::StaticValue, AnyJsxAttribute, AnyJsxAttributeName, AnyJsxAttributeValue, AnyJsxChild, AnyJsxElementName, JsSyntaxToken, JsxAttribute, JsxAttributeList, JsxElement, JsxName, JsxOpeningElement, JsxSelfClosingElement, JsxString, }; u...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false
rome/tools
https://github.com/rome/tools/blob/392d188a49d70e495f13b1bb08cd7d9c43690f9b/crates/rome_js_syntax/src/file_source.rs
crates/rome_js_syntax/src/file_source.rs
use crate::JsLanguage; use rome_rowan::{FileSource, FileSourceError}; use std::path::Path; /// Enum of the different ECMAScript standard versions. /// The versions are ordered in increasing order; The newest version comes last. /// /// Defaults to the latest stable ECMAScript standard. #[derive(Debug, Copy, Clone, Eq,...
rust
MIT
392d188a49d70e495f13b1bb08cd7d9c43690f9b
2026-01-04T15:38:12.578592Z
false