File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ use std::time::Duration;
13
13
use anyhow:: anyhow;
14
14
use anyhow:: bail;
15
15
use anyhow:: Result ;
16
+ use harp:: call:: r_expr_quote;
16
17
use harp:: exec:: RFunction ;
17
18
use harp:: exec:: RFunctionExt ;
18
19
use harp:: external_ptr:: ExternalPointer ;
@@ -711,16 +712,10 @@ fn recurse_call_arguments_default(
711
712
712
713
struct TreeSitterCall < ' a > {
713
714
// A call of the form <fun>(list(0L, <ptr>), foo = list(1L, <ptr>))
714
- call : RObject ,
715
+ pub call : RObject ,
715
716
node_phantom : PhantomData < & ' a Node < ' a > > ,
716
717
}
717
718
718
- impl < ' a > From < & TreeSitterCall < ' a > > for RObject {
719
- fn from ( value : & TreeSitterCall < ' a > ) -> Self {
720
- value. call . clone ( )
721
- }
722
- }
723
-
724
719
impl < ' a > TreeSitterCall < ' a > {
725
720
pub unsafe fn new (
726
721
node : Node < ' a > ,
@@ -800,7 +795,7 @@ fn recurse_call_arguments_custom(
800
795
let call = TreeSitterCall :: new ( node, function, context) ?;
801
796
802
797
let custom_diagnostics = RFunction :: from ( diagnostic_function)
803
- . add ( & call)
798
+ . add ( r_expr_quote ( call. call ) )
804
799
. add ( ExternalPointer :: new ( context. contents ) )
805
800
. call ( ) ?;
806
801
You can’t perform that action at this time.
0 commit comments