Trait swc_common::comments::CommentsExt[][src]

pub trait CommentsExt: Comments {
    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
, { ... } }

Provided methods

fn with_leading<F, Ret>(&self, pos: BytePos, op: F) -> Ret where
    F: FnOnce(&[Comment]) -> Ret, 
[src]

fn with_trailing<F, Ret>(&self, pos: BytePos, op: F) -> Ret where
    F: FnOnce(&[Comment]) -> Ret, 
[src]

Loading content...

Implementors

impl<C> CommentsExt for C where
    C: Comments
[src]

Loading content...