File tree Expand file tree Collapse file tree 5 files changed +517
-5
lines changed Expand file tree Collapse file tree 5 files changed +517
-5
lines changed Original file line number Diff line number Diff line change @@ -276,8 +276,6 @@ pub trait Segment: Any + DynEq + DynClone + DynHash + Debug + CloneSegment {
276
276
no_recursive_seg_type : Option < & str > ,
277
277
allow_self : bool ,
278
278
) -> Vec < ErasedSegment > {
279
- let is_debug = seg_types == & [ "object_reference" ] ;
280
-
281
279
let mut acc = Vec :: new ( ) ;
282
280
let seg_types_set: AHashSet < & str > = AHashSet :: from_iter ( seg_types. iter ( ) . copied ( ) ) ;
283
281
Original file line number Diff line number Diff line change @@ -2879,6 +2879,10 @@ impl NodeTrait for SelectStatementSegment {
2879
2879
)
2880
2880
. into ( )
2881
2881
}
2882
+
2883
+ fn class_types ( ) -> AHashSet < String > {
2884
+ [ "select_statement" . into ( ) ] . into_iter ( ) . collect ( )
2885
+ }
2882
2886
}
2883
2887
2884
2888
pub struct SelectClauseModifierSegment ;
@@ -5312,6 +5316,10 @@ impl NodeTrait for WithCompoundStatementSegment {
5312
5316
] )
5313
5317
. to_matchable ( )
5314
5318
}
5319
+
5320
+ fn class_types ( ) -> AHashSet < String > {
5321
+ [ "with_compound_statement" . into ( ) ] . into_iter ( ) . collect ( )
5322
+ }
5315
5323
}
5316
5324
5317
5325
pub struct CTEDefinitionSegment ;
@@ -5328,6 +5336,10 @@ impl NodeTrait for CTEDefinitionSegment {
5328
5336
] )
5329
5337
. to_matchable ( )
5330
5338
}
5339
+
5340
+ fn class_types ( ) -> AHashSet < String > {
5341
+ [ "common_table_expression" ] . map ( ToOwned :: to_owned) . into_iter ( ) . collect ( )
5342
+ }
5331
5343
}
5332
5344
5333
5345
pub struct CTEColumnList ;
@@ -5652,6 +5664,10 @@ impl NodeTrait for TableReferenceSegment {
5652
5664
fn match_grammar ( ) -> Box < dyn Matchable > {
5653
5665
Ref :: new ( "ObjectReferenceSegment" ) . to_matchable ( )
5654
5666
}
5667
+
5668
+ fn class_types ( ) -> AHashSet < String > {
5669
+ [ "table_reference" . into ( ) ] . into_iter ( ) . collect ( )
5670
+ }
5655
5671
}
5656
5672
5657
5673
pub struct SchemaReferenceSegment ;
Original file line number Diff line number Diff line change 1
1
pub mod ST01 ;
2
2
pub mod ST02 ;
3
+ pub mod ST03 ;
You can’t perform that action at this time.
0 commit comments