pub struct ActionScriptLanguage {
pub strict_mode: bool,
pub as3_features: bool,
}Expand description
ActionScript 语言配置和元数据。
Fields§
§strict_mode: boolEnable strict mode
as3_features: boolEnable AS3 specific features
Trait Implementations§
Source§impl<'config> Builder<ActionScriptLanguage> for ActionScriptBuilder<'config>
impl<'config> Builder<ActionScriptLanguage> for ActionScriptBuilder<'config>
Source§fn build<'a, S: Source + ?Sized>(
&self,
source: &S,
edits: &[TextEdit],
_cache: &'a mut impl BuilderCache<ActionScriptLanguage>,
) -> BuildOutput<ActionScriptLanguage>
fn build<'a, S: Source + ?Sized>( &self, source: &S, edits: &[TextEdit], _cache: &'a mut impl BuilderCache<ActionScriptLanguage>, ) -> BuildOutput<ActionScriptLanguage>
Builds the structure from the source text.
Source§impl Clone for ActionScriptLanguage
impl Clone for ActionScriptLanguage
Source§fn clone(&self) -> ActionScriptLanguage
fn clone(&self) -> ActionScriptLanguage
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 ActionScriptLanguage
impl Debug for ActionScriptLanguage
Source§impl Default for ActionScriptLanguage
impl Default for ActionScriptLanguage
Source§impl<'de> Deserialize<'de> for ActionScriptLanguage
impl<'de> Deserialize<'de> for ActionScriptLanguage
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 ActionScriptLanguage
impl Hash for ActionScriptLanguage
Source§impl Language for ActionScriptLanguage
impl Language for ActionScriptLanguage
Source§const CATEGORY: LanguageCategory = LanguageCategory::Programming
const CATEGORY: LanguageCategory = LanguageCategory::Programming
The category of the language.
Source§type TokenType = ActionScriptTokenType
type TokenType = ActionScriptTokenType
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = ActionScriptElementType
type ElementType = ActionScriptElementType
The element type used to represent composite structures in the parsed tree. Read more
Source§type TypedRoot = ActionScriptRoot
type TypedRoot = ActionScriptRoot
The root type for the parsed tree that represents the top-level structure of the language. Read more
Source§impl<'config> Lexer<ActionScriptLanguage> for ActionScriptLexer<'config>
impl<'config> Lexer<ActionScriptLanguage> for ActionScriptLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
source: &S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<ActionScriptLanguage>,
) -> LexOutput<ActionScriptLanguage>
fn lex<'a, S: Source + ?Sized>( &self, source: &S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<ActionScriptLanguage>, ) -> LexOutput<ActionScriptLanguage>
Tokenizes the given source text into a sequence of tokens. Read more
Source§impl<'config> Parser<ActionScriptLanguage> for ActionScriptParser<'config>
impl<'config> Parser<ActionScriptLanguage> for ActionScriptParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<ActionScriptLanguage>,
) -> ParseOutput<'a, ActionScriptLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<ActionScriptLanguage>, ) -> ParseOutput<'a, ActionScriptLanguage>
The core parsing entry point. Read more
Source§impl PartialEq for ActionScriptLanguage
impl PartialEq for ActionScriptLanguage
Source§impl<'config> Pratt<ActionScriptLanguage> for ActionScriptParser<'config>
impl<'config> Pratt<ActionScriptLanguage> for ActionScriptParser<'config>
Source§fn primary<'a, S: Source + ?Sized>(
&self,
state: &mut ParserState<'a, ActionScriptLanguage, S>,
) -> &'a GreenNode<'a, ActionScriptLanguage>
fn primary<'a, S: Source + ?Sized>( &self, state: &mut ParserState<'a, ActionScriptLanguage, S>, ) -> &'a GreenNode<'a, ActionScriptLanguage>
Parses a primary expression (e.g., literals, identifiers, group).
Source§fn prefix<'a, S: Source + ?Sized>(
&self,
state: &mut ParserState<'a, ActionScriptLanguage, S>,
) -> &'a GreenNode<'a, ActionScriptLanguage>
fn prefix<'a, S: Source + ?Sized>( &self, state: &mut ParserState<'a, ActionScriptLanguage, S>, ) -> &'a GreenNode<'a, ActionScriptLanguage>
Handles prefix operators and primary expressions. Read more
Source§fn infix<'a, S: Source + ?Sized>(
&self,
state: &mut ParserState<'a, ActionScriptLanguage, S>,
left: &'a GreenNode<'a, ActionScriptLanguage>,
min_precedence: u8,
) -> Option<&'a GreenNode<'a, ActionScriptLanguage>>
fn infix<'a, S: Source + ?Sized>( &self, state: &mut ParserState<'a, ActionScriptLanguage, S>, left: &'a GreenNode<'a, ActionScriptLanguage>, min_precedence: u8, ) -> Option<&'a GreenNode<'a, ActionScriptLanguage>>
Handles infix and postfix operators. Read more
Source§impl Serialize for ActionScriptLanguage
impl Serialize for ActionScriptLanguage
impl Eq for ActionScriptLanguage
impl StructuralPartialEq for ActionScriptLanguage
Auto Trait Implementations§
impl Freeze for ActionScriptLanguage
impl RefUnwindSafe for ActionScriptLanguage
impl Send for ActionScriptLanguage
impl Sync for ActionScriptLanguage
impl Unpin for ActionScriptLanguage
impl UnwindSafe for ActionScriptLanguage
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