v0.1.4
This release is a bugfix release with a few breaking changes.
Changes:
- [Breaking] Make
Scope
store variables in a way that allows more than one variable with the same name; - Add a new
Scope.FindMethod
which forces a new variable to always be created; - [Breaking] Changed
LuaParser.ParseIdentifierExpression
to accept aScope.FindMode
instead of abool
; - [Breaking] Made new
Variable
s always be created in the following cases:- For the variable names of a
LocalVariableDeclarationStatement
; - For the name of a local function;
- For the iteration variables of a loop;
- For the arguments of any kind of function declaration.
- For the variable names of a
- [Breaking] Made
LocalVariableDeclarationStatement
do late binding of the identifiers so that identifiers on the right side of the=
don't get assigned the same variables as the one in the left side; - Fixed
AnonymousFunctionExpression.Children
andFunctionDefinitionStatement.Children
so that exceptions don't get thrown when there is a vararg in the arguments; - Fixed
NumericForLoopStatement
parsing so that its scope doesn't get leaked anymore.