Skip to content

Inlining of map and set and detection when they are used#159

Merged
Perryvw merged 5 commits intomasterfrom
feature/map-set-inlining
Jul 28, 2018
Merged

Inlining of map and set and detection when they are used#159
Perryvw merged 5 commits intomasterfrom
feature/map-set-inlining

Conversation

@Perryvw
Copy link
Copy Markdown
Member

@Perryvw Perryvw commented Jul 28, 2018

Detect when Map and Set are used and inline them.

Set test lualibimport to "require" by default.

Require now only adds the require statement if any lualib features are detected.

Added an "always" option for luaLibImport to always add the require to the lualib bundle.

Also some general fixes to the lualib imports and inlining.
Closes #154.

Fixes an issue with inlining order as mentioned in #155.

@Perryvw Perryvw requested a review from lolleko July 28, 2018 09:32
return result;
}

public checkForLuaLibType(type: ts.Type): void {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The naming of this function seems a bit of to me. As it checks for the time, but also adds the feature.

@Perryvw Perryvw merged commit 1c6d52a into master Jul 28, 2018
@Perryvw Perryvw deleted the feature/map-set-inlining branch July 28, 2018 13:51
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.

Add Map/Set to lualibfeatureset if used

2 participants