Logo
Explore Help
Register Sign In
Miko/LSL-PyOptimizer
1
0
Fork 0
You've already forked LSL-PyOptimizer
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
13e48ff956e6caa66ad62a6febf41bd2a87de6cb
LSL-PyOptimizer/unit_tests/regression.suite/void-in-return.run

2 lines
23 B
Plaintext
Raw Normal View History

Allow returning void expressions where state changes are allowed In the same places as state changes are allowed, i.e. in places where a parent of the AST node is a WHILE/DO/FOR or an IF without ELSE, it's allowed to use return statements with expressions that return void, e.g. llDie(), provided the function itself is declared as returning void. The construction, when found, is rewritten to '{<void expression>; return;}' because the optimizer is not designed to deal with these monsters. We've renamed the variable SuspiciousStSw to PruneBug, because it's used for both purposes now, though a better name might have been PruneBugPendingChecks, because these are only errors if the IF has an ELSE. We've also added the exception to raise as part of the data stored in the list. Per report by Tonaie Resident.
2019-05-01 04:03:58 +02:00
main.py - -O -optimize
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 61ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API