@@ -21,21 +21,7 @@ use core::iter;
2121use crate :: tokenizer:: Span ;
2222
2323use super :: {
24- dcl:: SecondaryRoles , AccessExpr , AlterColumnOperation , AlterIndexOperation ,
25- AlterTableOperation , Array , Assignment , AssignmentTarget , CloseCursor , ClusteredIndex ,
26- ColumnDef , ColumnOption , ColumnOptionDef , ConflictTarget , ConnectBy , ConstraintCharacteristics ,
27- CopySource , CreateIndex , CreateTable , CreateTableOptions , Cte , Delete , DoUpdate ,
28- ExceptSelectItem , ExcludeSelectItem , Expr , ExprWithAlias , Fetch , FromTable , Function ,
29- FunctionArg , FunctionArgExpr , FunctionArgumentClause , FunctionArgumentList , FunctionArguments ,
30- GroupByExpr , HavingBound , IlikeSelectItem , Insert , Interpolate , InterpolateExpr , Join ,
31- JoinConstraint , JoinOperator , JsonPath , JsonPathElem , LateralView , MatchRecognizePattern ,
32- Measure , NamedWindowDefinition , ObjectName , ObjectNamePart , Offset , OnConflict ,
33- OnConflictAction , OnInsert , OrderBy , OrderByExpr , Partition , PivotValueSource ,
34- ProjectionSelect , Query , ReferentialAction , RenameSelectItem , ReplaceSelectElement ,
35- ReplaceSelectItem , Select , SelectInto , SelectItem , SetExpr , SqlOption , Statement , Subscript ,
36- SymbolDefinition , TableAlias , TableAliasColumnDef , TableConstraint , TableFactor , TableObject ,
37- TableOptionsClustered , TableWithJoins , UpdateTableFromKind , Use , Value , Values , ViewColumnDef ,
38- WildcardAdditionalOptions , With , WithFill ,
24+ dcl:: SecondaryRoles , value:: ValueWrapper , AccessExpr , AlterColumnOperation , AlterIndexOperation , AlterTableOperation , Array , Assignment , AssignmentTarget , CloseCursor , ClusteredIndex , ColumnDef , ColumnOption , ColumnOptionDef , ConflictTarget , ConnectBy , ConstraintCharacteristics , CopySource , CreateIndex , CreateTable , CreateTableOptions , Cte , Delete , DoUpdate , ExceptSelectItem , ExcludeSelectItem , Expr , ExprWithAlias , Fetch , FromTable , Function , FunctionArg , FunctionArgExpr , FunctionArgumentClause , FunctionArgumentList , FunctionArguments , GroupByExpr , HavingBound , IlikeSelectItem , Insert , Interpolate , InterpolateExpr , Join , JoinConstraint , JoinOperator , JsonPath , JsonPathElem , LateralView , MatchRecognizePattern , Measure , NamedWindowDefinition , ObjectName , ObjectNamePart , Offset , OnConflict , OnConflictAction , OnInsert , OrderBy , OrderByExpr , Partition , PivotValueSource , ProjectionSelect , Query , ReferentialAction , RenameSelectItem , ReplaceSelectElement , ReplaceSelectItem , Select , SelectInto , SelectItem , SetExpr , SqlOption , Statement , Subscript , SymbolDefinition , TableAlias , TableAliasColumnDef , TableConstraint , TableFactor , TableObject , TableOptionsClustered , TableWithJoins , UpdateTableFromKind , Use , Value , Values , ViewColumnDef , WildcardAdditionalOptions , With , WithFill
3925} ;
4026
4127/// Given an iterator of spans, return the [Span::union] of all spans.
@@ -1974,10 +1960,14 @@ impl Spanned for TableAliasColumnDef {
19741960 }
19751961}
19761962
1977- /// # missing span
1978- ///
1979- /// The span of a `Value` is currently not implemented, as doing so
1980- /// requires a breaking changes, which may be done in a future release.
1963+
1964+ impl Spanned for ValueWrapper {
1965+ fn span ( & self ) -> Span {
1966+ self . span
1967+ }
1968+ }
1969+
1970+ /// The span is stored in the `ValueWrapper` struct
19811971impl Spanned for Value {
19821972 fn span ( & self ) -> Span {
19831973 Span :: empty ( ) // # todo: Value needs to store spans before this is possible
0 commit comments