pub struct JasmLanguage {
pub extended: bool,
pub comments: bool,
}Expand description
JASM 语言绑定与配置
Fields§
§extended: bool是否启用扩展指令(如 invokedynamic 等)
comments: bool是否允许注释
Implementations§
Trait Implementations§
Source§impl Clone for JasmLanguage
impl Clone for JasmLanguage
Source§fn clone(&self) -> JasmLanguage
fn clone(&self) -> JasmLanguage
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 JasmLanguage
impl Debug for JasmLanguage
Source§impl Default for JasmLanguage
impl Default for JasmLanguage
Source§fn default() -> JasmLanguage
fn default() -> JasmLanguage
Returns the “default value” for a type. Read more
Source§impl Language for JasmLanguage
impl Language for JasmLanguage
Source§type SyntaxKind = JasmSyntaxKind
type SyntaxKind = JasmSyntaxKind
The kind kind type used to represent different kind and node types in the language. Read more
Source§impl<'config> Lexer<JasmLanguage> for JasmLexer<'config>
impl<'config> Lexer<JasmLanguage> for JasmLexer<'config>
Source§fn lex_incremental(
&self,
source: impl Source,
changed: usize,
cache: IncrementalCache<'_, JasmLanguage>,
) -> LexOutput<JasmLanguage>
fn lex_incremental( &self, source: impl Source, changed: usize, cache: IncrementalCache<'_, JasmLanguage>, ) -> LexOutput<JasmLanguage>
Tokenizes source text using an existing cache for incremental parsing. Read more
Source§fn lex(
&self,
source: impl Source,
) -> OakDiagnostics<Vec<Token<<L as Language>::SyntaxKind>>>
fn lex( &self, source: impl Source, ) -> OakDiagnostics<Vec<Token<<L as Language>::SyntaxKind>>>
Tokenizes the given source text into a sequence of tokens. Read more
Auto Trait Implementations§
impl Freeze for JasmLanguage
impl RefUnwindSafe for JasmLanguage
impl Send for JasmLanguage
impl Sync for JasmLanguage
impl Unpin for JasmLanguage
impl UnwindSafe for JasmLanguage
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