Fix ast types' _fields and use 0-based column

This commit is contained in:
dvermd 2022-10-17 19:09:15 +02:00 committed by Jeong YunWon
parent 952d70b9d1
commit fa41a1e2f6
56 changed files with 480 additions and 480 deletions

View file

@ -449,7 +449,7 @@ class ClassDefVisitor(EmitVisitor):
f"ctx.new_str(ascii!({json.dumps(f.name)})).into()" for f in fields
)
self.emit(
f"class.set_attr(identifier!(ctx, _fields), ctx.new_list(vec![{fields}]).into());",
f"class.set_attr(identifier!(ctx, _fields), ctx.new_tuple(vec![{fields}]).into());",
depth + 2,
)
attrs = ",".join(