mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 13:33:31 +00:00
Merge pull request #18715 from aibaars/ungram-asm-option
Fix AsmOption rule in rust.ungram
This commit is contained in:
commit
27fac08c82
2 changed files with 1 additions and 3 deletions
|
@ -414,7 +414,7 @@ AsmClobberAbi = 'clobber_abi' '(' ('@string' (',' '@string')* ','?) ')'
|
||||||
// option := "pure" / "nomem" / "readonly" / "preserves_flags" / "noreturn" / "nostack" / "att_syntax" / "raw"
|
// option := "pure" / "nomem" / "readonly" / "preserves_flags" / "noreturn" / "nostack" / "att_syntax" / "raw"
|
||||||
AsmOption = 'pure' | 'nomem' | 'readonly' | 'preserves_flags' | 'noreturn' | 'nostack' | 'att_syntax' | 'raw' | 'may_unwind'
|
AsmOption = 'pure' | 'nomem' | 'readonly' | 'preserves_flags' | 'noreturn' | 'nostack' | 'att_syntax' | 'raw' | 'may_unwind'
|
||||||
// options := "options(" option *("," option) [","] ")"
|
// options := "options(" option *("," option) [","] ")"
|
||||||
AsmOptions = 'options' '(' AsmOption *(',' AsmOption) ','? ')'
|
AsmOptions = 'options' '(' (AsmOption (',' AsmOption)*) ','? ')'
|
||||||
AsmLabel = 'label' BlockExpr
|
AsmLabel = 'label' BlockExpr
|
||||||
AsmSym = 'sym' Path
|
AsmSym = 'sym' Path
|
||||||
AsmConst = 'const' Expr
|
AsmConst = 'const' Expr
|
||||||
|
|
|
@ -211,8 +211,6 @@ pub struct AsmOptions {
|
||||||
pub(crate) syntax: SyntaxNode,
|
pub(crate) syntax: SyntaxNode,
|
||||||
}
|
}
|
||||||
impl AsmOptions {
|
impl AsmOptions {
|
||||||
#[inline]
|
|
||||||
pub fn asm_option(&self) -> Option<AsmOption> { support::child(&self.syntax) }
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn asm_options(&self) -> AstChildren<AsmOption> { support::children(&self.syntax) }
|
pub fn asm_options(&self) -> AstChildren<AsmOption> { support::children(&self.syntax) }
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|
Loading…
Reference in a new issue