File tree 1 file changed +12
-1
lines changed 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,21 @@ pub trait ParseCallbacks: fmt::Debug + UnwindSafe {
35
35
None
36
36
}
37
37
38
- /// This will be run on every string macro. The callback can not influence the further
38
+ /// This will be run on every string macro. The callback cannot influence the further
39
39
/// treatment of the macro, but may use the value to generate additional code or configuration.
40
40
fn str_macro ( & self , _name : & str , _value : & [ u8 ] ) { }
41
41
42
+ /// This will be run on every function-like macro. The callback cannot
43
+ /// influence the further treatment of the macro, but may use the value to
44
+ /// generate additional code or configuration.
45
+ ///
46
+ /// The first parameter represents the name and argument list (including the
47
+ /// parentheses) of the function-like macro. The second parameter represents
48
+ /// the expansion of the macro. It is not guaranteed that the whitespace of
49
+ /// the original is preserved, but it is guaranteed that tokenization will
50
+ /// not be changed.
51
+ fn func_macro ( & self , _name : & str , _value : & str ) { }
52
+
42
53
/// This function should return whether, given an enum variant
43
54
/// name, and value, this enum variant will forcibly be a constant.
44
55
fn enum_variant_behavior (
You can’t perform that action at this time.
0 commit comments