mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
Add side-effect-free information for events.
This commit is contained in:
parent
2d823d8eae
commit
d5f5ab8b88
3 changed files with 189 additions and 24 deletions
|
@ -2208,7 +2208,7 @@ list lazy_list_set(list L, integer i, list v)
|
|||
self.NextToken()
|
||||
# NOTE: Parse_events: This is a bit crude, as the error is given at the end of the param list.
|
||||
# To do it correctly, we can pass the parameter list to Parse_optional_param_list().
|
||||
if tuple(params[0]) != self.events[name]:
|
||||
if tuple(params[0]) != self.events[name]['pt']:
|
||||
raise EParseSyntax(self)
|
||||
self.locallabels = set()
|
||||
body = self.Parse_code_block(None)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue