pub struct ParseResult<'arena, 'src> {
pub program: Program<'arena, 'src>,
pub comments: Vec<Comment<'src>>,
pub errors: Vec<ParseError>,
}Expand description
The result of parsing a PHP source string.
Fields§
§program: Program<'arena, 'src>The parsed AST. Always produced, even when errors are present.
comments: Vec<Comment<'src>>All comments found in the source, in source order. Comments are not attached to AST nodes; callers can map them by span.
errors: Vec<ParseError>Parse errors and diagnostics. Empty on a successful parse.
Auto Trait Implementations§
impl<'arena, 'src> Freeze for ParseResult<'arena, 'src>
impl<'arena, 'src> !RefUnwindSafe for ParseResult<'arena, 'src>
impl<'arena, 'src> !Send for ParseResult<'arena, 'src>
impl<'arena, 'src> !Sync for ParseResult<'arena, 'src>
impl<'arena, 'src> Unpin for ParseResult<'arena, 'src>
impl<'arena, 'src> UnsafeUnpin for ParseResult<'arena, 'src>
impl<'arena, 'src> !UnwindSafe for ParseResult<'arena, 'src>
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