pub struct JasmLanguage {
pub extended: bool,
pub comments: bool,
}Expand description
JASM language binding and configuration.
Fields§
§extended: boolWhether to enable extended instructions (e.g., invokedynamic, etc.).
comments: boolWhether to allow comments.
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 higher-level structure (typically an AST) from the source text. Read more
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<'de> Deserialize<'de> for JasmLanguage
impl<'de> Deserialize<'de> for JasmLanguage
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 JasmLanguage
impl Hash for JasmLanguage
Source§impl HoverProvider<JasmLanguage> for JasmHoverProvider
Available on crate feature lsp only.
impl HoverProvider<JasmLanguage> for JasmHoverProvider
Available on crate feature
lsp only.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 = JasmTokenType
type TokenType = JasmTokenType
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = JasmElementType
type ElementType = JasmElementType
The element type used to represent composite structures in the parsed tree. Read more
Source§impl<'config> Lexer<JasmLanguage> for JasmLexer<'config>
impl<'config> Lexer<JasmLanguage> for JasmLexer<'config>
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 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 for converting tokens into a syntax tree. Read more
Source§impl PartialEq for JasmLanguage
impl PartialEq for JasmLanguage
Source§impl Serialize for JasmLanguage
impl Serialize for JasmLanguage
impl Copy for JasmLanguage
impl Eq for JasmLanguage
impl StructuralPartialEq for JasmLanguage
Auto Trait Implementations§
impl Freeze for JasmLanguage
impl RefUnwindSafe for JasmLanguage
impl Send for JasmLanguage
impl Sync for JasmLanguage
impl Unpin for JasmLanguage
impl UnsafeUnpin 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