pub struct SemanticWhitespaceAwarePsiBuilder {
pub psi: PsiBuilder,
/* private fields */
}Fields§
§psi: PsiBuilderImplementations§
Source§impl SemanticWhitespaceAwarePsiBuilder
impl SemanticWhitespaceAwarePsiBuilder
pub fn push_layer(&mut self, layer: Layer) -> usize
pub fn pop_layer(&mut self)
Sourcepub fn for_by_clause_stack_size(&self, index: usize) -> i32
pub fn for_by_clause_stack_size(&self, index: usize) -> i32
getStackSize() of the ForByClause layer at index.
pub fn eof(&mut self) -> bool
Sourcepub fn get_token_type(&mut self) -> Option<SyntaxKind>
pub fn get_token_type(&mut self) -> Option<SyntaxKind>
Inlined into every at: with no layers (the common case) it is the memo check.
pub fn get_token_text(&mut self) -> Option<&str>
pub fn look_ahead(&mut self, steps: i32) -> Option<SyntaxKind>
Source§impl SemanticWhitespaceAwarePsiBuilder
impl SemanticWhitespaceAwarePsiBuilder
pub fn new(psi: PsiBuilder) -> Self
pub fn is_whitespace_or_comment(&self, kind: SyntaxKind) -> bool
pub fn newline_before_current_token(&mut self) -> bool
pub fn disable_newlines(&mut self)
pub fn enable_newlines(&mut self)
pub fn restore_newlines_state(&mut self)
pub fn restore_joining_complex_tokens_state(&mut self)
pub fn enable_joining_complex_tokens(&mut self)
pub fn disable_joining_complex_tokens(&mut self)
pub fn advance_lexer(&mut self)
pub fn mark(&mut self) -> Marker
pub fn error(&mut self, message: &str)
pub fn raw_lookup(&self, steps: i32) -> Option<SyntaxKind>
pub fn raw_token_type_start(&self, steps: i32) -> i32
pub fn raw_token_index(&self) -> i32
pub fn get_current_offset(&mut self) -> i32
pub fn remap_current_token(&mut self, kind: SyntaxKind)
pub fn get_original_text(&self) -> &str
Trait Implementations§
Source§impl MarkerHost for SemanticWhitespaceAwarePsiBuilder
impl MarkerHost for SemanticWhitespaceAwarePsiBuilder
fn psi_builder(&mut self) -> &mut PsiBuilder
Auto Trait Implementations§
impl Freeze for SemanticWhitespaceAwarePsiBuilder
impl RefUnwindSafe for SemanticWhitespaceAwarePsiBuilder
impl Send for SemanticWhitespaceAwarePsiBuilder
impl Sync for SemanticWhitespaceAwarePsiBuilder
impl Unpin for SemanticWhitespaceAwarePsiBuilder
impl UnsafeUnpin for SemanticWhitespaceAwarePsiBuilder
impl UnwindSafe for SemanticWhitespaceAwarePsiBuilder
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