pub struct DartLanguage {}Expand description
Language definition for Dart
Implementations§
Source§impl DartLanguage
impl DartLanguage
Trait Implementations§
Source§impl<'config> Builder<DartLanguage> for DartBuilder<'config>
impl<'config> Builder<DartLanguage> for DartBuilder<'config>
Source§fn build<'a, S: Source + ?Sized>(
&self,
source: &S,
edits: &[TextEdit],
_cache: &'a mut impl BuilderCache<DartLanguage>,
) -> BuildOutput<DartLanguage>
fn build<'a, S: Source + ?Sized>( &self, source: &S, edits: &[TextEdit], _cache: &'a mut impl BuilderCache<DartLanguage>, ) -> BuildOutput<DartLanguage>
Builds the structure from the source text.
Source§impl Clone for DartLanguage
impl Clone for DartLanguage
Source§fn clone(&self) -> DartLanguage
fn clone(&self) -> DartLanguage
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 DartLanguage
impl Debug for DartLanguage
Source§impl Default for DartLanguage
impl Default for DartLanguage
Source§fn default() -> DartLanguage
fn default() -> DartLanguage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DartLanguage
impl<'de> Deserialize<'de> for DartLanguage
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 Hash for DartLanguage
impl Hash for DartLanguage
Source§impl Language for DartLanguage
impl Language for DartLanguage
Source§const CATEGORY: LanguageCategory = LanguageCategory::Programming
const CATEGORY: LanguageCategory = LanguageCategory::Programming
The category of the language.
Source§type TokenType = DartSyntaxKind
type TokenType = DartSyntaxKind
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = DartSyntaxKind
type ElementType = DartSyntaxKind
The element type used to represent composite structures in the parsed tree. Read more
Source§impl<'config> Lexer<DartLanguage> for DartLexer<'config>
impl<'config> Lexer<DartLanguage> for DartLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
text: &S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<DartLanguage>,
) -> LexOutput<DartLanguage>
fn lex<'a, S: Source + ?Sized>( &self, text: &S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<DartLanguage>, ) -> LexOutput<DartLanguage>
Tokenizes the given source text into a sequence of tokens. Read more
Source§impl<'config> Parser<DartLanguage> for DartParser<'config>
impl<'config> Parser<DartLanguage> for DartParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<DartLanguage>,
) -> ParseOutput<'a, DartLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<DartLanguage>, ) -> ParseOutput<'a, DartLanguage>
The core parsing entry point. Read more
Source§impl PartialEq for DartLanguage
impl PartialEq for DartLanguage
Source§impl Serialize for DartLanguage
impl Serialize for DartLanguage
impl Copy for DartLanguage
impl Eq for DartLanguage
impl StructuralPartialEq for DartLanguage
Auto Trait Implementations§
impl Freeze for DartLanguage
impl RefUnwindSafe for DartLanguage
impl Send for DartLanguage
impl Sync for DartLanguage
impl Unpin for DartLanguage
impl UnwindSafe for DartLanguage
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