mirror of
https://github.com/RustPython/Parser.git
synced 2025-08-03 18:29:04 +00:00
Try ThinVec
crate to reduce AST size
This commit is contained in:
parent
718354673e
commit
c4847adf2f
12 changed files with 33288 additions and 47657 deletions
|
@ -372,7 +372,7 @@ class StructVisitor(EmitVisitor):
|
|||
):
|
||||
typ = f"Option<{typ}>"
|
||||
if field.seq:
|
||||
typ = f"Vec<{typ}>"
|
||||
typ = f"thin_vec::ThinVec<{typ}>"
|
||||
if typ == "Int":
|
||||
typ = BUILTIN_INT_NAMES.get(field.name, typ)
|
||||
name = rust_field(field.name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue