Skip to main content

collect_must_mut_pointer_params

Function collect_must_mut_pointer_params 

Source
pub fn collect_must_mut_pointer_params(
    parse_result: &ParseResult,
    params: &[MacroParam],
    callee_const_params: &HashMap<InternedStr, HashSet<usize>>,
) -> HashSet<InternedStr>
Expand description

マクロ本体を走査し、&mut param や代入先として使用されるパラメータを検出する ポインタパラメータが *mut である必要があるかを判定する。 callee_const_params: 呼び出し先マクロで *const に確定したパラメータ情報 key = マクロ名(InternedStr), value = const パラメータの引数位置集合