pub struct NodesTester {
pub nodes: Vec<SyntaxNode>,
/* private fields */
}
Fields§
§nodes: Vec<SyntaxNode>
Implementations§
Source§impl NodesTester
impl NodesTester
pub fn new(nodes: Vec<SyntaxNode>) -> Self
pub fn with_path(self, path: Vec<SyntaxKind>) -> Self
pub fn assert_next(&mut self, kind: SyntaxKind, text: &str) -> &mut Self
pub fn assert_next_warning(&mut self, warning: ErrorCode) -> &mut Self
pub fn move_to_end(&mut self)
pub fn assert_next_error(&mut self, error: ErrorCode) -> &mut Self
pub fn assert_next_children( &mut self, kind: SyntaxKind, test_children: impl FnOnce(&mut Self), ) -> &mut Self
pub fn assert_end(&self)
Auto Trait Implementations§
impl Freeze for NodesTester
impl RefUnwindSafe for NodesTester
impl Send for NodesTester
impl Sync for NodesTester
impl Unpin for NodesTester
impl UnwindSafe for NodesTester
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more