mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Rust: remove VariantDef
This commit is contained in:
@@ -2062,7 +2062,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(Variant, add_bases=(Addressable,))
|
||||
@annotate(Variant, replace_bases={AstNode: Addressable})
|
||||
class _:
|
||||
"""
|
||||
A variant in an enum declaration.
|
||||
|
||||
9
rust/schema/ast.py
generated
9
rust/schema/ast.py
generated
@@ -41,9 +41,6 @@ class TypeRepr(AstNode, ):
|
||||
class UseBoundGenericArg(AstNode, ):
|
||||
pass
|
||||
|
||||
class VariantDef(AstNode, ):
|
||||
pass
|
||||
|
||||
class Item(Stmt, ):
|
||||
pass
|
||||
|
||||
@@ -628,7 +625,7 @@ class StmtList(AstNode, ):
|
||||
statements: list["Stmt"] | child
|
||||
tail_expr: optional["Expr"] | child
|
||||
|
||||
class Struct(Adt, Item, VariantDef, ):
|
||||
class Struct(Adt, Item, ):
|
||||
attrs: list["Attr"] | child
|
||||
field_list: optional["FieldList"] | child
|
||||
generic_param_list: optional["GenericParamList"] | child
|
||||
@@ -716,7 +713,7 @@ class TypeParam(GenericParam, ):
|
||||
class UnderscoreExpr(Expr, ):
|
||||
attrs: list["Attr"] | child
|
||||
|
||||
class Union(Adt, Item, VariantDef, ):
|
||||
class Union(Adt, Item, ):
|
||||
attrs: list["Attr"] | child
|
||||
generic_param_list: optional["GenericParamList"] | child
|
||||
name: optional["Name"] | child
|
||||
@@ -741,7 +738,7 @@ class UseTree(AstNode, ):
|
||||
class UseTreeList(AstNode, ):
|
||||
use_trees: list["UseTree"] | child
|
||||
|
||||
class Variant(VariantDef, ):
|
||||
class Variant(AstNode, ):
|
||||
attrs: list["Attr"] | child
|
||||
discriminant: optional["Expr"] | child
|
||||
field_list: optional["FieldList"] | child
|
||||
|
||||
Reference in New Issue
Block a user