Skip to content

New functions - merge from master#306

Merged
Perryvw merged 69 commits intoTypeScriptToLua:new-functionsfrom
tomblind:new-functions-merge
Dec 15, 2018
Merged

New functions - merge from master#306
Perryvw merged 69 commits intoTypeScriptToLua:new-functionsfrom
tomblind:new-functions-merge

Conversation

@tomblind
Copy link
Copy Markdown
Collaborator

This merges changes from master since branching off

tomblind and others added 30 commits October 19, 2018 14:00
* Const enum support

* Changed string concatenation to interpolation
* refactored try block to allow rethrow

* updated rethrow test with something less convoluted
* Fixed JIT using table.unpack

sry

* Fixed test for JIT unpack

* Moved transpileDestructingAssignmentValue from 5.1 to 5.0
* Moved transpile switch to Lua 5.2

Closes TypeScriptToLua#194

* Fixed typo
* Cleaned up forOf loop, made it use numeric loop instead of ipairs

* Fixed bug in non-array loop header and fixed tests

* Fixed up some PR comments
* LuaJIT uses LuaTranspiler's spread

* Added some unit tests for spreading

* Stopped using prototype

* Removed Transpiler import
* Fixed constructor overloads

Fixes TypeScriptToLua#274

* Removed lambda body

* Removed transpileFile (should be added to changelog since this was exposed in the API)
* lualib inline omit header when no features are used

* Tests to enforce no lualib text when unused, unless using always
Perryvw and others added 27 commits November 27, 2018 22:56
* Added support for JSDoc tags as decorators

* Fixed invalid jsdoc failing a test

* Added deprecation warning for ! decorators

* Refactored decorator creation, made decorators case-insensitive

* Fixed jsdoc tests

* Fixed test runner not failing
* check the base types to determine if a type inherits from Array<T>

* dont block exceptions

* remove empty else clause

* remove space

* added tsHelper.isDefaultArrayCallExpression()

* added derived array recognition test code

* Added isExplicitArrayType() method

* added unit test

* rewrite isDefaultArrayCall() -> isDefaultArrayCallMethodName()

* change switch statement to Set<string> lookup
* check for inherited accessor methods

* diversify test

* removed FocusTests and repositioned forAllTypes

* rename forTypeOrAnySupertype
* update forTypeOrAnySupertype() to use declared type

* added test case for accessor using this

* enhance test to use generics
@tomblind
Copy link
Copy Markdown
Collaborator Author

As a reminder, this branch fixes #192, #250 and #281

@Perryvw Perryvw merged commit e79e42b into TypeScriptToLua:new-functions Dec 15, 2018
@tomblind tomblind deleted the new-functions-merge branch December 23, 2018 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants