[−][src]Struct dprint_swc_ecma_ast_view::Class
Fields
parent: Node<'a>
inner: &'a Class
decorators: Vec<&'a Decorator<'a>>
body: Vec<ClassMember<'a>>
super_class: Option<Expr<'a>>
type_params: Option<&'a TsTypeParamDecl<'a>>
super_type_params: Option<&'a TsTypeParamInstantiation<'a>>
implements: Vec<&'a TsExprWithTypeArgs<'a>>
Typescript extension.
Implementations
impl<'a> Class<'a>
[src]
pub fn is_abstract(&self) -> bool
[src]
Trait Implementations
impl<'a> CastableNode<'a> for Class<'a>
[src]
impl<'a> From<&'_ Class<'a>> for Node<'a>
[src]
impl<'a> NodeTrait<'a> for &'a Class<'a>
[src]
pub fn parent(&self) -> Option<Node<'a>>
[src]
pub fn children(&self) -> Vec<Node<'a>>
[src]
pub fn into_node(&self) -> Node<'a>
[src]
pub fn kind(&self) -> NodeKind
[src]
pub fn ancestors(&self) -> AncestorIterator<'a>ⓘNotable traits for AncestorIterator<'a>
impl<'a> Iterator for AncestorIterator<'a> type Item = Node<'a>;
[src]
Notable traits for AncestorIterator<'a>
impl<'a> Iterator for AncestorIterator<'a> type Item = Node<'a>;
pub fn start_line(&self) -> usize
[src]
pub fn end_line(&self) -> usize
[src]
pub fn start_column(&self) -> usize
[src]
pub fn end_column(&self) -> usize
[src]
pub fn width(&self) -> usize
[src]
pub fn child_index(&self) -> usize
[src]
pub fn previous_sibling(&self) -> Option<Node<'a>>
[src]
pub fn previous_siblings(&self) -> Vec<Node<'a>>
[src]
pub fn next_sibling(&self) -> Option<Node<'a>>
[src]
pub fn next_siblings(&self) -> Vec<Node<'a>>
[src]
pub fn tokens(&self) -> &'a [TokenAndSpan]
[src]
pub fn children_with_tokens(&self) -> Vec<NodeOrToken<'a>>
[src]
pub fn children_with_tokens_fast(
&self,
module: &Module<'a>
) -> Vec<NodeOrToken<'a>>
[src]
&self,
module: &Module<'a>
) -> Vec<NodeOrToken<'a>>
pub fn leading_comments(&self) -> CommentsIterator<'a>ⓘNotable traits for CommentsIterator<'a>
impl<'a> Iterator for CommentsIterator<'a> type Item = &'a Comment;
[src]
Notable traits for CommentsIterator<'a>
impl<'a> Iterator for CommentsIterator<'a> type Item = &'a Comment;
pub fn trailing_comments(&self) -> CommentsIterator<'a>ⓘNotable traits for CommentsIterator<'a>
impl<'a> Iterator for CommentsIterator<'a> type Item = &'a Comment;
[src]
Notable traits for CommentsIterator<'a>
impl<'a> Iterator for CommentsIterator<'a> type Item = &'a Comment;
pub fn module(&self) -> &Module<'a>
[src]
pub fn text(&self) -> &'a str
[src]
pub fn previous_token(&self) -> Option<&'a TokenAndSpan>
[src]
pub fn next_token(&self) -> Option<&'a TokenAndSpan>
[src]
pub fn previous_tokens(&self) -> &'a [TokenAndSpan]
[src]
pub fn next_tokens(&self) -> &'a [TokenAndSpan]
[src]
impl<'a> Spanned for Class<'a>
[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Class<'a>
[src]
impl<'a> !Send for Class<'a>
[src]
impl<'a> !Sync for Class<'a>
[src]
impl<'a> Unpin for Class<'a>
[src]
impl<'a> !UnwindSafe for Class<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Node for T where
T: Any + ?Sized,
T: Any + ?Sized,
impl<T> Send for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Sync for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,