Ticket #45178

generate_packets.py: access type aliases through methods

Open Date: 2022-07-21 05:11 Last Update: 2022-07-22 21:00

Reporter:
Owner:
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
Comment

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