diff --git a/Cargo.lock b/Cargo.lock index 1ff0e0dfe598..6bc3012b843d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -586,20 +586,10 @@ name = "biome_grit_formatter" version = "0.0.0" dependencies = [ "biome_formatter", - "biome_formatter_test", - "biome_grit_factory", - "biome_grit_parser", "biome_grit_syntax", - "biome_parser", "biome_rowan", - "biome_service", - "countme", - "iai", - "quickcheck", - "quickcheck_macros", "serde", "serde_json", - "tests_macros", ] [[package]] diff --git a/crates/biome_grit_formatter/Cargo.toml b/crates/biome_grit_formatter/Cargo.toml index e75a5e99f567..6d79810951d0 100644 --- a/crates/biome_grit_formatter/Cargo.toml +++ b/crates/biome_grit_formatter/Cargo.toml @@ -18,18 +18,9 @@ biome_grit_syntax = { workspace = true } biome_rowan = { workspace = true } [dev-dependencies] -biome_formatter_test = { path = "../biome_formatter_test" } -biome_grit_factory = { path = "../biome_grit_factory" } -biome_grit_parser = { path = "../biome_grit_parser" } -biome_parser = { path = "../biome_parser" } -biome_service = { path = "../biome_service" } -countme = { workspace = true, features = ["enable"] } -iai = "0.1.1" -quickcheck = { workspace = true } -quickcheck_macros = { workspace = true } -serde = { workspace = true, features = ["derive"] } -serde_json = { workspace = true } -tests_macros = { path = "../tests_macros" } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } + # cargo-workspaces metadata [package.metadata.workspaces] independent = true diff --git a/crates/biome_grit_formatter/src/comments.rs b/crates/biome_grit_formatter/src/comments.rs index 3980222dc2d6..6e72b0684c94 100644 --- a/crates/biome_grit_formatter/src/comments.rs +++ b/crates/biome_grit_formatter/src/comments.rs @@ -22,7 +22,7 @@ impl CommentStyle for GritCommentStyle { } fn get_comment_kind( - comment: &biome_rowan::SyntaxTriviaPieceComments, + _comment: &biome_rowan::SyntaxTriviaPieceComments, ) -> biome_formatter::comments::CommentKind { todo!() } diff --git a/crates/biome_grit_formatter/src/context.rs b/crates/biome_grit_formatter/src/context.rs index abc872667575..b4a8e093459a 100644 --- a/crates/biome_grit_formatter/src/context.rs +++ b/crates/biome_grit_formatter/src/context.rs @@ -6,6 +6,7 @@ use biome_formatter::{ use biome_grit_syntax::GritLanguage; use std::rc::Rc; +#[allow(dead_code)] #[derive(Debug, Clone)] pub struct GritFormatContext { comments: Rc, diff --git a/crates/biome_grit_formatter/src/lib.rs b/crates/biome_grit_formatter/src/lib.rs index 26cdfc18d89b..c935554e575c 100644 --- a/crates/biome_grit_formatter/src/lib.rs +++ b/crates/biome_grit_formatter/src/lib.rs @@ -83,6 +83,7 @@ where } } +#[allow(dead_code)] #[derive(Debug, Clone, Default)] pub struct GritFormatLanguage { options: GritFormatOptions, @@ -124,8 +125,8 @@ impl FormatLanguage for GritFormatLanguage { fn create_context( self, - root: &biome_rowan::SyntaxNode, - source_map: Option, + _root: &biome_rowan::SyntaxNode, + _source_map: Option, ) -> Self::Context { todo!() } @@ -187,6 +188,7 @@ where /// Used to convert this object into an object that can be formatted. /// /// The difference to [AsFormat] is that this trait takes ownership of `self`. +#[allow(dead_code)] pub(crate) trait IntoFormat { type Format: biome_formatter::Format; @@ -219,6 +221,7 @@ where } /// Formatting specific [Iterator] extensions +#[allow(dead_code)] pub(crate) trait FormattedIterExt { /// Converts every item to an object that knows how to format it. fn formatted(self) -> FormattedIter @@ -235,6 +238,7 @@ pub(crate) trait FormattedIterExt { impl FormattedIterExt for I where I: std::iter::Iterator {} +#[allow(dead_code)] pub(crate) struct FormattedIter where Iter: Iterator, diff --git a/crates/biome_unicode_table/src/tables.rs b/crates/biome_unicode_table/src/tables.rs index 2521478eca81..2016f15b83d8 100644 --- a/crates/biome_unicode_table/src/tables.rs +++ b/crates/biome_unicode_table/src/tables.rs @@ -71,7 +71,7 @@ pub mod derived_property { ('ࡠ', 'ࡪ'), ('ࡰ', 'ࢇ'), ('ࢉ', 'ࢎ'), - ('\u{898}', '\u{8e1}'), + ('\u{897}', '\u{8e1}'), ('\u{8e3}', '\u{963}'), ('०', '९'), ('ॱ', 'ঃ'), @@ -294,7 +294,7 @@ pub mod derived_property { ('ᰀ', '\u{1c37}'), ('᱀', '᱉'), ('ᱍ', 'ᱽ'), - ('ᲀ', 'ᲈ'), + ('ᲀ', '\u{1c8a}'), ('Ა', 'Ჺ'), ('Ჽ', 'Ჿ'), ('\u{1cd0}', '\u{1cd2}'), @@ -378,10 +378,10 @@ pub mod derived_property { ('ꙿ', '\u{a6f1}'), ('ꜗ', 'ꜟ'), ('Ꜣ', 'ꞈ'), - ('Ꞌ', 'ꟊ'), + ('Ꞌ', '\u{a7cd}'), ('Ꟑ', 'ꟑ'), ('ꟓ', 'ꟓ'), - ('ꟕ', 'ꟙ'), + ('ꟕ', '\u{a7dc}'), ('ꟲ', 'ꠧ'), ('\u{a82c}', '\u{a82c}'), ('ꡀ', 'ꡳ'), @@ -479,6 +479,7 @@ pub mod derived_property { ('𐖣', '𐖱'), ('𐖳', '𐖹'), ('𐖻', '𐖼'), + ('\u{105c0}', '\u{105f3}'), ('𐘀', '𐜶'), ('𐝀', '𐝕'), ('𐝠', '𐝧'), @@ -519,10 +520,14 @@ pub mod derived_property { ('𐳀', '𐳲'), ('𐴀', '\u{10d27}'), ('𐴰', '𐴹'), + ('\u{10d40}', '\u{10d65}'), + ('\u{10d69}', '\u{10d6d}'), + ('\u{10d6f}', '\u{10d85}'), ('𐺀', '𐺩'), ('\u{10eab}', '\u{10eac}'), ('𐺰', '𐺱'), - ('\u{10efd}', '𐼜'), + ('\u{10ec2}', '\u{10ec4}'), + ('\u{10efc}', '𐼜'), ('𐼧', '𐼧'), ('𐼰', '\u{10f50}'), ('𐽰', '\u{10f85}'), @@ -568,6 +573,16 @@ pub mod derived_property { ('𑍝', '𑍣'), ('\u{11366}', '\u{1136c}'), ('\u{11370}', '\u{11374}'), + ('\u{11380}', '\u{11389}'), + ('\u{1138b}', '\u{1138b}'), + ('\u{1138e}', '\u{1138e}'), + ('\u{11390}', '\u{113b5}'), + ('\u{113b7}', '\u{113c0}'), + ('\u{113c2}', '\u{113c2}'), + ('\u{113c5}', '\u{113c5}'), + ('\u{113c7}', '\u{113ca}'), + ('\u{113cc}', '\u{113d3}'), + ('\u{113e1}', '\u{113e2}'), ('𑐀', '𑑊'), ('𑑐', '𑑙'), ('\u{1145e}', '𑑡'), @@ -582,6 +597,7 @@ pub mod derived_property { ('𑙐', '𑙙'), ('𑚀', '𑚸'), ('𑛀', '𑛉'), + ('\u{116d0}', '\u{116e3}'), ('𑜀', '𑜚'), ('\u{1171d}', '\u{1172b}'), ('𑜰', '𑜹'), @@ -605,6 +621,8 @@ pub mod derived_property { ('𑩐', '\u{11a99}'), ('𑪝', '𑪝'), ('𑪰', '𑫸'), + ('\u{11bc0}', '\u{11be0}'), + ('\u{11bf0}', '\u{11bf9}'), ('𑰀', '𑰈'), ('𑰊', '\u{11c36}'), ('\u{11c38}', '𑱀'), @@ -629,7 +647,7 @@ pub mod derived_property { ('\u{11f00}', '𑼐'), ('𑼒', '\u{11f3a}'), ('𑼾', '\u{11f42}'), - ('𑽐', '𑽙'), + ('𑽐', '\u{11f5a}'), ('𑾰', '𑾰'), ('𒀀', '𒎙'), ('𒐀', '𒑮'), @@ -637,7 +655,9 @@ pub mod derived_property { ('𒾐', '𒿰'), ('𓀀', '𓐯'), ('\u{13440}', '\u{13455}'), + ('\u{13460}', '\u{143fa}'), ('𔐀', '𔙆'), + ('\u{16100}', '\u{16139}'), ('𖠀', '𖨸'), ('𖩀', '𖩞'), ('𖩠', '𖩩'), @@ -650,6 +670,8 @@ pub mod derived_property { ('𖭐', '𖭙'), ('𖭣', '𖭷'), ('𖭽', '𖮏'), + ('\u{16d40}', '\u{16d6c}'), + ('\u{16d70}', '\u{16d79}'), ('𖹀', '𖹿'), ('𖼀', '𖽊'), ('\u{16f4f}', '𖾇'), @@ -659,7 +681,7 @@ pub mod derived_property { ('𖿰', '𖿱'), ('𗀀', '𘟷'), ('𘠀', '𘳕'), - ('𘴀', '𘴈'), + ('\u{18cff}', '𘴈'), ('𚿰', '𚿳'), ('𚿵', '𚿻'), ('𚿽', '𚿾'), @@ -674,6 +696,7 @@ pub mod derived_property { ('𛲀', '𛲈'), ('𛲐', '𛲙'), ('\u{1bc9d}', '\u{1bc9e}'), + ('\u{1ccf0}', '\u{1ccf9}'), ('\u{1cf00}', '\u{1cf2d}'), ('\u{1cf30}', '\u{1cf46}'), ('\u{1d165}', '\u{1d169}'), @@ -735,6 +758,7 @@ pub mod derived_property { ('𞊐', '\u{1e2ae}'), ('𞋀', '𞋹'), ('𞓐', '𞓹'), + ('\u{1e5d0}', '\u{1e5fa}'), ('𞟠', '𞟦'), ('𞟨', '𞟫'), ('𞟭', '𞟮'), @@ -1016,7 +1040,7 @@ pub mod derived_property { ('ᰀ', 'ᰣ'), ('ᱍ', 'ᱏ'), ('ᱚ', 'ᱽ'), - ('ᲀ', 'ᲈ'), + ('ᲀ', '\u{1c8a}'), ('Ა', 'Ჺ'), ('Ჽ', 'Ჿ'), ('ᳩ', 'ᳬ'), @@ -1099,10 +1123,10 @@ pub mod derived_property { ('ꚠ', 'ꛯ'), ('ꜗ', 'ꜟ'), ('Ꜣ', 'ꞈ'), - ('Ꞌ', 'ꟊ'), + ('Ꞌ', '\u{a7cd}'), ('Ꟑ', 'ꟑ'), ('ꟓ', 'ꟓ'), - ('ꟕ', 'ꟙ'), + ('ꟕ', '\u{a7dc}'), ('ꟲ', 'ꠁ'), ('ꠃ', 'ꠅ'), ('ꠇ', 'ꠊ'), @@ -1200,6 +1224,7 @@ pub mod derived_property { ('𐖣', '𐖱'), ('𐖳', '𐖹'), ('𐖻', '𐖼'), + ('\u{105c0}', '\u{105f3}'), ('𐘀', '𐜶'), ('𐝀', '𐝕'), ('𐝠', '𐝧'), @@ -1236,8 +1261,11 @@ pub mod derived_property { ('𐲀', '𐲲'), ('𐳀', '𐳲'), ('𐴀', '𐴣'), + ('\u{10d4a}', '\u{10d65}'), + ('\u{10d6f}', '\u{10d85}'), ('𐺀', '𐺩'), ('𐺰', '𐺱'), + ('\u{10ec2}', '\u{10ec4}'), ('𐼀', '𐼜'), ('𐼧', '𐼧'), ('𐼰', '𐽅'), @@ -1276,6 +1304,13 @@ pub mod derived_property { ('𑌽', '𑌽'), ('𑍐', '𑍐'), ('𑍝', '𑍡'), + ('\u{11380}', '\u{11389}'), + ('\u{1138b}', '\u{1138b}'), + ('\u{1138e}', '\u{1138e}'), + ('\u{11390}', '\u{113b5}'), + ('\u{113b7}', '\u{113b7}'), + ('\u{113d1}', '\u{113d1}'), + ('\u{113d3}', '\u{113d3}'), ('𑐀', '𑐴'), ('𑑇', '𑑊'), ('𑑟', '𑑡'), @@ -1310,6 +1345,7 @@ pub mod derived_property { ('𑩜', '𑪉'), ('𑪝', '𑪝'), ('𑪰', '𑫸'), + ('\u{11bc0}', '\u{11be0}'), ('𑰀', '𑰈'), ('𑰊', '𑰮'), ('𑱀', '𑱀'), @@ -1333,7 +1369,9 @@ pub mod derived_property { ('𒾐', '𒿰'), ('𓀀', '𓐯'), ('𓑁', '𓑆'), + ('\u{13460}', '\u{143fa}'), ('𔐀', '𔙆'), + ('\u{16100}', '\u{1611d}'), ('𖠀', '𖨸'), ('𖩀', '𖩞'), ('𖩰', '𖪾'), @@ -1342,6 +1380,7 @@ pub mod derived_property { ('𖭀', '𖭃'), ('𖭣', '𖭷'), ('𖭽', '𖮏'), + ('\u{16d40}', '\u{16d6c}'), ('𖹀', '𖹿'), ('𖼀', '𖽊'), ('𖽐', '𖽐'), @@ -1350,7 +1389,7 @@ pub mod derived_property { ('𖿣', '𖿣'), ('𗀀', '𘟷'), ('𘠀', '𘳕'), - ('𘴀', '𘴈'), + ('\u{18cff}', '𘴈'), ('𚿰', '𚿳'), ('𚿵', '𚿻'), ('𚿽', '𚿾'), @@ -1403,6 +1442,8 @@ pub mod derived_property { ('𞊐', '𞊭'), ('𞋀', '𞋫'), ('𞓐', '𞓫'), + ('\u{1e5d0}', '\u{1e5ed}'), + ('\u{1e5f0}', '\u{1e5f0}'), ('𞟠', '𞟦'), ('𞟨', '𞟫'), ('𞟭', '𞟮'),