@@ -746,7 +746,7 @@ fn parse_mssql_json_object() {
746746 assert ! ( matches!(
747747 args[ 0 ] ,
748748 FunctionArg :: ExprNamed {
749- name: Expr :: Value ( ( Value :: SingleQuotedString ( _) ) . with_empty_span ( ) ) ,
749+ name: Expr :: Value ( ValueWithSpan { value : Value :: SingleQuotedString ( _) , span : _ } ) ,
750750 arg: FunctionArgExpr :: Expr ( Expr :: Function ( _) ) ,
751751 operator: FunctionArgOperator :: Colon
752752 }
@@ -762,7 +762,7 @@ fn parse_mssql_json_object() {
762762 assert ! ( matches!(
763763 args[ 2 ] ,
764764 FunctionArg :: ExprNamed {
765- name: Expr :: Value ( ( Value :: SingleQuotedString ( _) ) . with_empty_span ( ) ) ,
765+ name: Expr :: Value ( ValueWithSpan { value : Value :: SingleQuotedString ( _) , span : _ } ) ,
766766 arg: FunctionArgExpr :: Expr ( Expr :: Subquery ( _) ) ,
767767 operator: FunctionArgOperator :: Colon
768768 }
@@ -793,23 +793,23 @@ fn parse_mssql_json_object() {
793793 assert ! ( matches!(
794794 args[ 0 ] ,
795795 FunctionArg :: ExprNamed {
796- name: Expr :: Value ( ( Value :: SingleQuotedString ( _) ) . with_empty_span ( ) ) ,
796+ name: Expr :: Value ( ValueWithSpan { value : Value :: SingleQuotedString ( _) , span : _ } ) ,
797797 arg: FunctionArgExpr :: Expr ( Expr :: CompoundIdentifier ( _) ) ,
798798 operator: FunctionArgOperator :: Colon
799799 }
800800 ) ) ;
801801 assert ! ( matches!(
802802 args[ 1 ] ,
803803 FunctionArg :: ExprNamed {
804- name: Expr :: Value ( ( Value :: SingleQuotedString ( _) ) . with_empty_span ( ) ) ,
804+ name: Expr :: Value ( ValueWithSpan { value : Value :: SingleQuotedString ( _) , span : _ } ) ,
805805 arg: FunctionArgExpr :: Expr ( Expr :: CompoundIdentifier ( _) ) ,
806806 operator: FunctionArgOperator :: Colon
807807 }
808808 ) ) ;
809809 assert ! ( matches!(
810810 args[ 2 ] ,
811811 FunctionArg :: ExprNamed {
812- name: Expr :: Value ( ( Value :: SingleQuotedString ( _) ) . with_empty_span ( ) ) ,
812+ name: Expr :: Value ( ValueWithSpan { value : Value :: SingleQuotedString ( _) , span : _ } ) ,
813813 arg: FunctionArgExpr :: Expr ( Expr :: CompoundIdentifier ( _) ) ,
814814 operator: FunctionArgOperator :: Colon
815815 }
0 commit comments