pub struct MsilLanguage {
pub extended_instructions: bool,
pub debug_info: bool,
pub strict_mode: bool,
}Expand description
MSIL 语言实现
Fields§
§extended_instructions: bool是否允许扩展指令
debug_info: bool是否允许调试信息
strict_mode: bool是否严格模式
Implementations§
Trait Implementations§
Source§impl<'config> Builder<MsilLanguage> for MsilBuilder<'config>
impl<'config> Builder<MsilLanguage> for MsilBuilder<'config>
Source§fn build<'a, S: Source + ?Sized>(
&self,
source: &S,
edits: &[TextEdit],
_cache: &'a mut impl BuilderCache<MsilLanguage>,
) -> OakDiagnostics<MsilRoot>
fn build<'a, S: Source + ?Sized>( &self, source: &S, edits: &[TextEdit], _cache: &'a mut impl BuilderCache<MsilLanguage>, ) -> OakDiagnostics<MsilRoot>
Builds the structure from the source text.
Source§impl Clone for MsilLanguage
impl Clone for MsilLanguage
Source§fn clone(&self) -> MsilLanguage
fn clone(&self) -> MsilLanguage
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 MsilLanguage
impl Debug for MsilLanguage
Source§impl Default for MsilLanguage
impl Default for MsilLanguage
Source§impl<'de> Deserialize<'de> for MsilLanguage
impl<'de> Deserialize<'de> for MsilLanguage
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 MsilLanguage
impl Hash for MsilLanguage
Source§impl Language for MsilLanguage
impl Language for MsilLanguage
Source§const CATEGORY: LanguageCategory = LanguageCategory::Programming
const CATEGORY: LanguageCategory = LanguageCategory::Programming
The category of the language.
Source§type TokenType = MsilSyntaxKind
type TokenType = MsilSyntaxKind
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = MsilSyntaxKind
type ElementType = MsilSyntaxKind
The element type used to represent composite structures in the parsed tree. Read more
Source§impl Lexer<MsilLanguage> for MsilLexer<'_>
impl Lexer<MsilLanguage> for MsilLexer<'_>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
source: &'a S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<MsilLanguage>,
) -> LexOutput<MsilLanguage>
fn lex<'a, S: Source + ?Sized>( &self, source: &'a S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<MsilLanguage>, ) -> LexOutput<MsilLanguage>
Tokenizes the given source text into a sequence of tokens. Read more
Source§impl<'config> Parser<MsilLanguage> for MsilParser<'config>
impl<'config> Parser<MsilLanguage> for MsilParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<MsilLanguage>,
) -> ParseOutput<'a, MsilLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<MsilLanguage>, ) -> ParseOutput<'a, MsilLanguage>
The core parsing entry point. Read more
Source§impl PartialEq for MsilLanguage
impl PartialEq for MsilLanguage
Source§impl Serialize for MsilLanguage
impl Serialize for MsilLanguage
impl Copy for MsilLanguage
impl Eq for MsilLanguage
impl StructuralPartialEq for MsilLanguage
Auto Trait Implementations§
impl Freeze for MsilLanguage
impl RefUnwindSafe for MsilLanguage
impl Send for MsilLanguage
impl Sync for MsilLanguage
impl Unpin for MsilLanguage
impl UnwindSafe for MsilLanguage
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