File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -58,8 +58,6 @@ class RustType(Enum):
5858STD_PATHBUF_REGEX = re .compile (r"^(std::([a-z_]+::)+)PathBuf$" )
5959STD_PATH_REGEX = re .compile (r"^&(mut )?(std::([a-z_]+::)+)Path$" )
6060
61- TUPLE_ITEM_REGEX = re .compile (r"__\d+$" )
62-
6361ENCODED_ENUM_PREFIX = "RUST$ENCODED$ENUM$"
6462ENUM_DISR_FIELD_NAME = "<<variant>>"
6563ENUM_LLDB_ENCODED_VARIANTS = "$variants$"
@@ -88,7 +86,12 @@ class RustType(Enum):
8886
8987
9088def is_tuple_fields (fields : List ) -> bool :
91- return all (TUPLE_ITEM_REGEX .match (str (field .name )) for field in fields )
89+ for f in fields :
90+ name = str (f .name )
91+ if not name .startswith ("__" ) or not name [2 :].isdigit ():
92+ return False
93+
94+ return True
9295
9396
9497def classify_struct (name : str , fields : List ) -> RustType :
You can’t perform that action at this time.
0 commit comments