pub struct DelphiLanguage {
pub strict_syntax: bool,
pub unicode_strings: bool,
}Expand description
Language definition for Delphi programming language
Fields§
§strict_syntax: boolWhether to enable strict syntax checking
unicode_strings: boolWhether to support Unicode strings
Trait Implementations§
Source§impl Builder<DelphiLanguage> for DelphiBuilder
impl Builder<DelphiLanguage> for DelphiBuilder
Source§fn build<'a, S: Source + ?Sized>(
&self,
source: &S,
edits: &[TextEdit],
_cache: &'a mut impl BuilderCache<DelphiLanguage>,
) -> OakDiagnostics<DelphiRoot>
fn build<'a, S: Source + ?Sized>( &self, source: &S, edits: &[TextEdit], _cache: &'a mut impl BuilderCache<DelphiLanguage>, ) -> OakDiagnostics<DelphiRoot>
Builds the structure from the source text.
Source§impl Clone for DelphiLanguage
impl Clone for DelphiLanguage
Source§fn clone(&self) -> DelphiLanguage
fn clone(&self) -> DelphiLanguage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DelphiLanguage
impl Debug for DelphiLanguage
Source§impl Default for DelphiLanguage
impl Default for DelphiLanguage
Source§impl<'de> Deserialize<'de> for DelphiLanguage
impl<'de> Deserialize<'de> for DelphiLanguage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Language for DelphiLanguage
impl Language for DelphiLanguage
Source§const CATEGORY: LanguageCategory = LanguageCategory::Programming
const CATEGORY: LanguageCategory = LanguageCategory::Programming
The category of the language.
Source§type TokenType = DelphiSyntaxKind
type TokenType = DelphiSyntaxKind
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = DelphiSyntaxKind
type ElementType = DelphiSyntaxKind
The element type used to represent composite structures in the parsed tree. Read more
Source§type TypedRoot = DelphiRoot
type TypedRoot = DelphiRoot
The root type for the parsed tree that represents the top-level structure of the language. Read more
Source§impl<'config> Lexer<DelphiLanguage> for DelphiLexer<'config>
impl<'config> Lexer<DelphiLanguage> for DelphiLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
source: &'a S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<DelphiLanguage>,
) -> LexOutput<DelphiLanguage>
fn lex<'a, S: Source + ?Sized>( &self, source: &'a S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<DelphiLanguage>, ) -> LexOutput<DelphiLanguage>
Tokenizes the given source text into a sequence of tokens. Read more
Source§impl<'config> Parser<DelphiLanguage> for DelphiParser<'config>
impl<'config> Parser<DelphiLanguage> for DelphiParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<DelphiLanguage>,
) -> ParseOutput<'a, DelphiLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<DelphiLanguage>, ) -> ParseOutput<'a, DelphiLanguage>
The core parsing entry point. Read more
Auto Trait Implementations§
impl Freeze for DelphiLanguage
impl RefUnwindSafe for DelphiLanguage
impl Send for DelphiLanguage
impl Sync for DelphiLanguage
impl Unpin for DelphiLanguage
impl UnwindSafe for DelphiLanguage
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