mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Remove TypeRef
from item opts which implement TypeAscriptionOwner
This commit is contained in:
parent
52054e1140
commit
d3ce69aee3
6 changed files with 24 additions and 43 deletions
|
@ -271,7 +271,15 @@ Grammar(
|
|||
]
|
||||
),
|
||||
"NamedFieldDefList": (collections: [["fields", "NamedFieldDef"]]),
|
||||
"NamedFieldDef": ( traits: ["VisibilityOwner", "NameOwner", "AttrsOwner", "DocCommentsOwner", "TypeAscriptionOwner"], options: ["TypeRef"] ),
|
||||
"NamedFieldDef": (
|
||||
traits: [
|
||||
"VisibilityOwner",
|
||||
"NameOwner",
|
||||
"AttrsOwner",
|
||||
"DocCommentsOwner",
|
||||
"TypeAscriptionOwner"
|
||||
]
|
||||
),
|
||||
"PosFieldDefList": (collections: [["fields", "PosFieldDef"]]),
|
||||
"PosFieldDef": ( traits: ["VisibilityOwner", "AttrsOwner"], options: ["TypeRef"]),
|
||||
"EnumDef": ( traits: [
|
||||
|
@ -301,7 +309,6 @@ Grammar(
|
|||
"DocCommentsOwner",
|
||||
"TypeAscriptionOwner",
|
||||
],
|
||||
options: ["TypeRef"]
|
||||
),
|
||||
"StaticDef": (
|
||||
traits: [
|
||||
|
@ -312,7 +319,6 @@ Grammar(
|
|||
"DocCommentsOwner",
|
||||
"TypeAscriptionOwner",
|
||||
],
|
||||
options: ["TypeRef"]
|
||||
),
|
||||
"TypeAliasDef": (
|
||||
traits: [
|
||||
|
@ -574,7 +580,6 @@ Grammar(
|
|||
"LetStmt": (
|
||||
options: [
|
||||
["pat", "Pat"],
|
||||
["type_ref", "TypeRef"],
|
||||
["initializer", "Expr"],
|
||||
],
|
||||
traits: [
|
||||
|
@ -603,14 +608,14 @@ Grammar(
|
|||
]
|
||||
),
|
||||
"SelfParam": (
|
||||
options: ["TypeRef", "SelfKw"],
|
||||
options: ["SelfKw"],
|
||||
traits: [
|
||||
"TypeAscriptionOwner",
|
||||
]
|
||||
),
|
||||
"SelfKw": (),
|
||||
"Param": (
|
||||
options: [ "Pat", "TypeRef" ],
|
||||
options: [ "Pat" ],
|
||||
traits: [
|
||||
"TypeAscriptionOwner",
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue