Skip to content

v0.1.4

Compare
Choose a tag to compare
@GGG-KILLER GGG-KILLER released this 05 Jan 19:57

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 a Scope.FindMode instead of a bool;
  • [Breaking] Made new Variables 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.
  • [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 and FunctionDefinitionStatement.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.