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