Ticket #45178

generate_packets.py: access type aliases through methods

오픈 날짜: 2022-07-21 05:11 마지막 업데이트: 2022-07-22 21:00

Reporter:
소유자:
Type:
Status:
Closed
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
1

Details

Part of #43927. Dependent on #45166. Introduce two methods PacketsDefinition.define_type(alias: str, meaning: str) -> None and PacketsDefinition.resolve_type(type_text: str) -> str and pass the latter to the Packet and Field parsing code instead of the bare types dict. The plan is that in some future patch, the return type of resolve_type() will be replaced with one representing an already-parsed type, so Field.parse() no longer needs to care about type parsing.

Ticket History (3/4 Histories)

2022-07-21 05:11 Updated by: alienvalkyrie
  • New Ticket "generate_packets.py: access type aliases through methods" created
2022-07-21 05:33 Updated by: alienvalkyrie
  • Resolution Update from None to Accepted
댓글 올리기

Depends on #45166.

2022-07-22 21:00 Updated by: alienvalkyrie
  • Status Update from Open to Closed
  • Resolution Update from Accepted to Fixed

Edit

Please login to add comment to this ticket » Login