Skip to main content

PascalLanguage

Struct PascalLanguage 

Source
pub struct PascalLanguage {}

Implementations§

Source§

impl PascalLanguage

Source

pub fn new() -> Self

Trait Implementations§

Source§

impl Builder<PascalLanguage> for PascalBuilder

Source§

fn build<'s, S: Source + ?Sized>( &self, _text: &S, _edits: &[TextEdit], _cache: &'s mut impl BuilderCache<PascalLanguage>, ) -> BuildOutput<PascalLanguage>

Builds the structure from the source text.
Source§

impl Debug for PascalLanguage

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for PascalLanguage

Source§

fn default() -> PascalLanguage

Returns the “default value” for a type. Read more
Source§

impl HoverProvider<PascalLanguage> for PascalHoverProvider

Source§

fn hover( &self, node: &RedNode<'_, PascalLanguage>, _range: Range<usize>, ) -> Option<Hover>

Returns hover information at the given range.
Source§

impl Language for PascalLanguage

Source§

const NAME: &'static str = "pascal"

The name of the language (e.g., “rust”, “sql”).
Source§

const CATEGORY: LanguageCategory = LanguageCategory::Programming

The category of the language.
Source§

type TokenType = PascalSyntaxKind

The token type used to represent different token and node types in the language. Read more
Source§

type ElementType = PascalSyntaxKind

The element type used to represent composite structures in the parsed tree. Read more
Source§

type TypedRoot = PascalRoot

The root type for the parsed tree that represents the top-level structure of the language. Read more
Source§

impl Lexer<PascalLanguage> for PascalLexer<'_>

Source§

fn lex<'a, S: Source + ?Sized>( &self, source: &'a S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<PascalLanguage>, ) -> LexOutput<PascalLanguage>

Tokenizes the given source text into a sequence of tokens. Read more
Source§

impl Parser<PascalLanguage> for PascalParser

Source§

fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<PascalLanguage>, ) -> ParseOutput<'a, PascalLanguage>

The core parsing entry point. Read more

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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.