pub struct JasmLanguage {
pub extended: bool,
pub comments: bool,
}Expand description
JASM 语言绑定与配置
Fields§
§extended: bool是否启用扩展指令(如 invokedynamic 等)
comments: bool是否允许注释
Implementations§
Trait Implementations§
Source§impl<'config> Builder<JasmLanguage> for JasmBuilder<'config>
impl<'config> Builder<JasmLanguage> for JasmBuilder<'config>
Source§fn build<'a, S: Source + ?Sized>(
&self,
source: &'a S,
edits: &[TextEdit],
cache: &'a mut impl BuilderCache<JasmLanguage>,
) -> OakDiagnostics<JasmRoot>
fn build<'a, S: Source + ?Sized>( &self, source: &'a S, edits: &[TextEdit], cache: &'a mut impl BuilderCache<JasmLanguage>, ) -> OakDiagnostics<JasmRoot>
Builds the structure from the source text.
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§const CATEGORY: LanguageCategory = LanguageCategory::Programming
const CATEGORY: LanguageCategory = LanguageCategory::Programming
The category of the language.
Source§type TokenType = JasmSyntaxKind
type TokenType = JasmSyntaxKind
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = JasmSyntaxKind
type ElementType = JasmSyntaxKind
The element type used to represent composite structures in the parsed tree. Read more
Source§impl Lexer<JasmLanguage> for JasmLexer
impl Lexer<JasmLanguage> for JasmLexer
Source§fn lex<'a, S: Source + ?Sized>(
&self,
source: &'a S,
_edits: &[TextEdit],
_cache: &'a mut impl LexerCache<JasmLanguage>,
) -> LexOutput<JasmLanguage>
fn lex<'a, S: Source + ?Sized>( &self, source: &'a S, _edits: &[TextEdit], _cache: &'a mut impl LexerCache<JasmLanguage>, ) -> LexOutput<JasmLanguage>
Tokenizes the given source text into a sequence of tokens. Read more
Source§impl<'config> Parser<JasmLanguage> for JasmParser<'config>
impl<'config> Parser<JasmLanguage> for JasmParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<JasmLanguage>,
) -> ParseOutput<'a, JasmLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<JasmLanguage>, ) -> ParseOutput<'a, JasmLanguage>
The core parsing entry point. 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