pub struct JasminLanguage {
pub extended: bool,
pub comments: bool,
}Expand description
JASMIN 语言绑定与配置
Fields§
§extended: bool是否启用扩展指令(如 invokedynamic 等)
comments: bool是否允许注释
Implementations§
Trait Implementations§
Source§impl<'config> Builder<JasminLanguage> for JasminBuilder<'config>
impl<'config> Builder<JasminLanguage> for JasminBuilder<'config>
Source§fn build<'a, S: Source + ?Sized>(
&self,
source: &S,
edits: &[TextEdit],
_cache: &'a mut impl BuilderCache<JasminLanguage>,
) -> BuildOutput<JasminLanguage>
fn build<'a, S: Source + ?Sized>( &self, source: &S, edits: &[TextEdit], _cache: &'a mut impl BuilderCache<JasminLanguage>, ) -> BuildOutput<JasminLanguage>
Builds the structure from the source text.
Source§impl Clone for JasminLanguage
impl Clone for JasminLanguage
Source§fn clone(&self) -> JasminLanguage
fn clone(&self) -> JasminLanguage
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 JasminLanguage
impl Debug for JasminLanguage
Source§impl Default for JasminLanguage
impl Default for JasminLanguage
Source§fn default() -> JasminLanguage
fn default() -> JasminLanguage
Returns the “default value” for a type. Read more
Source§impl Language for JasminLanguage
impl Language for JasminLanguage
Source§const CATEGORY: LanguageCategory = LanguageCategory::Programming
const CATEGORY: LanguageCategory = LanguageCategory::Programming
The category of the language.
Source§type TokenType = JasminSyntaxKind
type TokenType = JasminSyntaxKind
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = JasminSyntaxKind
type ElementType = JasminSyntaxKind
The element type used to represent composite structures in the parsed tree. Read more
Source§type TypedRoot = JasminRoot
type TypedRoot = JasminRoot
The root type for the parsed tree that represents the top-level structure of the language. Read more
Source§impl<'config> Lexer<JasminLanguage> for JasminLexer<'config>
impl<'config> Lexer<JasminLanguage> for JasminLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
source: &S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<JasminLanguage>,
) -> LexOutput<JasminLanguage>
fn lex<'a, S: Source + ?Sized>( &self, source: &S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<JasminLanguage>, ) -> LexOutput<JasminLanguage>
Tokenizes the given source text into a sequence of tokens. Read more
Source§impl<'config> Parser<JasminLanguage> for JasminParser<'config>
impl<'config> Parser<JasminLanguage> for JasminParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<JasminLanguage>,
) -> ParseOutput<'a, JasminLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<JasminLanguage>, ) -> ParseOutput<'a, JasminLanguage>
The core parsing entry point. Read more
impl Copy for JasminLanguage
Auto Trait Implementations§
impl Freeze for JasminLanguage
impl RefUnwindSafe for JasminLanguage
impl Send for JasminLanguage
impl Sync for JasminLanguage
impl Unpin for JasminLanguage
impl UnwindSafe for JasminLanguage
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