Struct makepad_live_compiler::live_parser::LiveParser
source · [−]pub struct LiveParser<'a> {
pub token_index: usize,
pub file_id: LiveFileId,
pub live_type_info_counter: usize,
pub live_type_infos: &'a [LiveTypeInfo],
pub tokens_with_span: Cloned<Iter<'a, TokenWithSpan>>,
pub token_with_span: TokenWithSpan,
pub end: TextPos,
}
Fields
token_index: usize
file_id: LiveFileId
live_type_info_counter: usize
live_type_infos: &'a [LiveTypeInfo]
tokens_with_span: Cloned<Iter<'a, TokenWithSpan>>
token_with_span: TokenWithSpan
end: TextPos
Implementations
sourceimpl<'a> LiveParser<'a>
impl<'a> LiveParser<'a>
pub fn new(
tokens: &'a [TokenWithSpan],
live_type_infos: &'a [LiveTypeInfo],
file_id: LiveFileId
) -> Self
sourceimpl<'a> LiveParser<'a>
impl<'a> LiveParser<'a>
pub fn expect_prop_type(&mut self) -> Result<LivePropType, LiveError>
pub fn accept_optional_delim(&mut self)
pub fn parse_live_document(&mut self) -> Result<LiveOriginal, LiveError>
Auto Trait Implementations
impl<'a> RefUnwindSafe for LiveParser<'a>
impl<'a> Send for LiveParser<'a>
impl<'a> Sync for LiveParser<'a>
impl<'a> Unpin for LiveParser<'a>
impl<'a> UnwindSafe for LiveParser<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more