MCPcopy Create free account
hub / github.com/AmrDeveloper/GQL / register_diffs_function_signatures

Function register_diffs_function_signatures

src/gitql/functions/diffs.rs:48–112  ·  view source on GitHub ↗
(map: &mut HashMap<&'static str, Signature>)

Source from the content-addressed store, hash-verified

46
47#[inline(always)]
48pub(crate) fn register_diffs_function_signatures(map: &mut HashMap<&'static str, Signature>) {
49 map.insert(
50 "diff_content",
51 Signature::with_return(Box::new(TextType)).add_parameter(Box::new(DiffChangesType)),
52 );
53
54 map.insert(
55 "diff_added_content",
56 Signature::with_return(Box::new(TextType)).add_parameter(Box::new(DiffChangesType)),
57 );
58
59 map.insert(
60 "diff_deleted_content",
61 Signature::with_return(Box::new(TextType)).add_parameter(Box::new(DiffChangesType)),
62 );
63
64 map.insert(
65 "diff_modified_content",
66 Signature::with_return(Box::new(TextType)).add_parameter(Box::new(DiffChangesType)),
67 );
68
69 map.insert(
70 "diff_content_contains",
71 Signature::with_return(Box::new(BoolType))
72 .add_parameter(Box::new(DiffChangesType))
73 .add_parameter(Box::new(TextType)),
74 );
75
76 map.insert(
77 "diff_added_content_contains",
78 Signature::with_return(Box::new(BoolType))
79 .add_parameter(Box::new(DiffChangesType))
80 .add_parameter(Box::new(TextType)),
81 );
82
83 map.insert(
84 "diff_deleted_content_contains",
85 Signature::with_return(Box::new(BoolType))
86 .add_parameter(Box::new(DiffChangesType))
87 .add_parameter(Box::new(TextType)),
88 );
89
90 map.insert(
91 "diff_modified_content_contains",
92 Signature::with_return(Box::new(BoolType))
93 .add_parameter(Box::new(DiffChangesType))
94 .add_parameter(Box::new(TextType)),
95 );
96
97 map.insert(
98 "diff_changed_files",
99 Signature::with_return(Box::new(ArrayType::new(Box::new(TextType))))
100 .add_parameter(Box::new(DiffChangesType)),
101 );
102
103 map.insert(
104 "diff_files_count",
105 Signature::with_return(Box::new(IntType)).add_parameter(Box::new(DiffChangesType)),

Callers 1

gitql_std_signaturesFunction · 0.85

Calls 1

add_parameterMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…