Skip to main content

SemanticWhitespaceAwarePsiBuilder

Struct SemanticWhitespaceAwarePsiBuilder 

Source
pub struct SemanticWhitespaceAwarePsiBuilder {
    pub psi: PsiBuilder,
    /* private fields */
}

Fields§

§psi: PsiBuilder

Implementations§

Source§

impl SemanticWhitespaceAwarePsiBuilder

Source

pub fn push_layer(&mut self, layer: Layer) -> usize

Source

pub fn pop_layer(&mut self)

Source

pub fn for_by_clause_stack_size(&self, index: usize) -> i32

getStackSize() of the ForByClause layer at index.

Source

pub fn eof(&mut self) -> bool

Source

pub fn get_token_type(&mut self) -> Option<SyntaxKind>

Inlined into every at: with no layers (the common case) it is the memo check.

Source

pub fn get_token_text(&mut self) -> Option<&str>

Source

pub fn look_ahead(&mut self, steps: i32) -> Option<SyntaxKind>

Source§

impl SemanticWhitespaceAwarePsiBuilder

Source

pub fn new(psi: PsiBuilder) -> Self

Source

pub fn is_whitespace_or_comment(&self, kind: SyntaxKind) -> bool

Source

pub fn newline_before_current_token(&mut self) -> bool

Source

pub fn disable_newlines(&mut self)

Source

pub fn enable_newlines(&mut self)

Source

pub fn restore_newlines_state(&mut self)

Source

pub fn restore_joining_complex_tokens_state(&mut self)

Source

pub fn enable_joining_complex_tokens(&mut self)

Source

pub fn disable_joining_complex_tokens(&mut self)

Source

pub fn advance_lexer(&mut self)

Source

pub fn mark(&mut self) -> Marker

Source

pub fn error(&mut self, message: &str)

Source

pub fn raw_lookup(&self, steps: i32) -> Option<SyntaxKind>

Source

pub fn raw_token_type_start(&self, steps: i32) -> i32

Source

pub fn raw_token_index(&self) -> i32

Source

pub fn get_current_offset(&mut self) -> i32

Source

pub fn remap_current_token(&mut self, kind: SyntaxKind)

Source

pub fn get_original_text(&self) -> &str

Trait Implementations§

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.