pub trait CommentCallback {
// Required methods
fn on_comment(
&mut self,
comment: &Comment,
file_id: FileId,
is_target: bool,
);
fn into_any(self: Box<Self>) -> Box<dyn Any>;
}Expand description
コメント読み込み時のコールバックトレイト
Preprocessor がコメントを読み込んだときに呼び出される。 apidoc の収集など、コメント内容に基づく処理に使用する。
Required Methods§
Sourcefn on_comment(&mut self, comment: &Comment, file_id: FileId, is_target: bool)
fn on_comment(&mut self, comment: &Comment, file_id: FileId, is_target: bool)
コメントが読み込まれたときに呼ばれる
comment: コメント内容file_id: ファイルIDis_target: このファイルが解析対象(samples/wrapper.h からの include)かどうか