pub(crate) struct TtTreeSink<'a> {
pub(crate) buf: String,
pub(crate) cursor: Cursor<'a>,
pub(crate) text_pos: TextSize,
pub(crate) inner: SyntaxTreeBuilder,
pub(crate) token_map: SpanMap,
}Fields§
§buf: String§cursor: Cursor<'a>§text_pos: TextSize§inner: SyntaxTreeBuilder§token_map: SpanMapImplementations§
Source§impl<'a> TtTreeSink<'a>
impl<'a> TtTreeSink<'a>
Source§impl TtTreeSink<'_>
impl TtTreeSink<'_>
Sourcepub(crate) fn float_split(&mut self, has_pseudo_dot: bool)
pub(crate) fn float_split(&mut self, has_pseudo_dot: bool)
Parses a float literal as if it was a one to two name ref nodes with a dot inbetween. This occurs when a float literal is used as a field access.
pub(crate) fn token(&mut self, kind: SyntaxKind, n_tokens: u8)
pub(crate) fn start_node(&mut self, kind: SyntaxKind)
pub(crate) fn finish_node(&mut self)
pub(crate) fn error(&mut self, error: String)
pub(crate) fn merge_spans(a: Span, b: Span) -> Span
Auto Trait Implementations§
impl<'a> Freeze for TtTreeSink<'a>
impl<'a> !RefUnwindSafe for TtTreeSink<'a>
impl<'a> Send for TtTreeSink<'a>
impl<'a> Sync for TtTreeSink<'a>
impl<'a> Unpin for TtTreeSink<'a>
impl<'a> !UnwindSafe for TtTreeSink<'a>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more