Trait swc_common::comments::CommentsExt
source · pub trait CommentsExt: Comments {
// Provided methods
fn with_leading<F, Ret>(&self, pos: BytePos, op: F) -> Ret
where F: FnOnce(&[Comment]) -> Ret { ... }
fn with_trailing<F, Ret>(&self, pos: BytePos, op: F) -> Ret
where F: FnOnce(&[Comment]) -> Ret { ... }
}
👎Deprecated since 0.13.5: helper methods are merged into Comments itself
Provided Methods§
sourcefn with_leading<F, Ret>(&self, pos: BytePos, op: F) -> Retwhere
F: FnOnce(&[Comment]) -> Ret,
fn with_leading<F, Ret>(&self, pos: BytePos, op: F) -> Retwhere F: FnOnce(&[Comment]) -> Ret,
👎Deprecated since 0.13.5: helper methods are merged into Comments itself
sourcefn with_trailing<F, Ret>(&self, pos: BytePos, op: F) -> Retwhere
F: FnOnce(&[Comment]) -> Ret,
fn with_trailing<F, Ret>(&self, pos: BytePos, op: F) -> Retwhere F: FnOnce(&[Comment]) -> Ret,
👎Deprecated since 0.13.5: helper methods are merged into Comments itself