pub struct AdaLanguage {
pub allow_ada_2022: bool,
pub strict_mode: bool,
}Expand description
Ada 语言配置和元数据。
Fields§
§allow_ada_2022: bool是否启用 Ada 2022 特性
strict_mode: bool是否启用严格模式
Implementations§
Source§impl AdaLanguage
impl AdaLanguage
Trait Implementations§
Source§impl<'config> Builder<AdaLanguage> for AdaBuilder<'config>
impl<'config> Builder<AdaLanguage> for AdaBuilder<'config>
Source§fn build<'a, S: Source + ?Sized>(
&self,
source: &'a S,
edits: &[TextEdit],
_cache: &'a mut impl BuilderCache<AdaLanguage>,
) -> BuildOutput<AdaLanguage>
fn build<'a, S: Source + ?Sized>( &self, source: &'a S, edits: &[TextEdit], _cache: &'a mut impl BuilderCache<AdaLanguage>, ) -> BuildOutput<AdaLanguage>
Builds the structure from the source text.
Source§impl Clone for AdaLanguage
impl Clone for AdaLanguage
Source§fn clone(&self) -> AdaLanguage
fn clone(&self) -> AdaLanguage
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 AdaLanguage
impl Debug for AdaLanguage
Source§impl Default for AdaLanguage
impl Default for AdaLanguage
Source§impl<'de> Deserialize<'de> for AdaLanguage
impl<'de> Deserialize<'de> for AdaLanguage
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 AdaLanguage
impl Hash for AdaLanguage
Source§impl HoverProvider<AdaLanguage> for AdaHoverProvider
impl HoverProvider<AdaLanguage> for AdaHoverProvider
Source§impl Language for AdaLanguage
impl Language for AdaLanguage
Source§const CATEGORY: LanguageCategory = LanguageCategory::Programming
const CATEGORY: LanguageCategory = LanguageCategory::Programming
The category of the language.
Source§type TokenType = AdaTokenType
type TokenType = AdaTokenType
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = AdaElementType
type ElementType = AdaElementType
The element type used to represent composite structures in the parsed tree. Read more
Source§impl<'config> Lexer<AdaLanguage> for AdaLexer<'config>
impl<'config> Lexer<AdaLanguage> for AdaLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
source: &'a S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<AdaLanguage>,
) -> LexOutput<AdaLanguage>
fn lex<'a, S: Source + ?Sized>( &self, source: &'a S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<AdaLanguage>, ) -> LexOutput<AdaLanguage>
Tokenizes the given source text into a sequence of tokens. Read more
Source§impl<'config> Parser<AdaLanguage> for AdaParser<'config>
impl<'config> Parser<AdaLanguage> for AdaParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<AdaLanguage>,
) -> ParseOutput<'a, AdaLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<AdaLanguage>, ) -> ParseOutput<'a, AdaLanguage>
The core parsing entry point. Read more
Source§impl PartialEq for AdaLanguage
impl PartialEq for AdaLanguage
Source§impl Serialize for AdaLanguage
impl Serialize for AdaLanguage
impl Copy for AdaLanguage
impl Eq for AdaLanguage
impl StructuralPartialEq for AdaLanguage
Auto Trait Implementations§
impl Freeze for AdaLanguage
impl RefUnwindSafe for AdaLanguage
impl Send for AdaLanguage
impl Sync for AdaLanguage
impl Unpin for AdaLanguage
impl UnwindSafe for AdaLanguage
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