Struct deno_ast::MultiThreadedComments [−][src]
pub struct MultiThreadedComments { /* fields omitted */ }
Expand description
An implementation of swc’s Comments
that implements Sync
to support being used in multi-threaded code. This implementation
is immutable and should you need mutability you may create a copy
by converting it to an swc SingleThreadedComments
.
When using this, you will want to use the
deno_ast::swc::common::comments::Comments
trait.
Implementations
Creates a new MultiThreadedComments
from an swc SingleThreadedComments
.
Gets a clone of the underlying data as SingleThreadedComments
.
This may be useful for getting a mutable data structure for use when transpiling.
Gets a reference to the leading comment map.
Gets a reference to the trailing comment map.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MultiThreadedComments
impl Send for MultiThreadedComments
impl Sync for MultiThreadedComments
impl Unpin for MultiThreadedComments
impl UnwindSafe for MultiThreadedComments
Blanket Implementations
Mutably borrows from an owned value. Read more