1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-03 10:14:06 +02:00

pass parser state to handlers

This commit is contained in:
Robin Appelman 2022-08-05 23:43:15 +02:00
commit 74ad7d121f
9 changed files with 70 additions and 20 deletions

View file

@ -30,7 +30,12 @@ impl MessageHandler for SendPropAnalyser {
false
}
fn handle_data_tables(&mut self, tables: &[ParseSendTable], _server_classes: &[ServerClass]) {
fn handle_data_tables(
&mut self,
tables: &[ParseSendTable],
_server_classes: &[ServerClass],
_parser_state: &ParserState,
) {
for table in tables {
for prop_def in &table.props {
self.prop_names.insert(