inline functions with AST_Var (#2688)

This commit is contained in:
Alex Lam S.L
2018-01-03 01:54:44 +08:00
committed by GitHub
parent 6dead95eb3
commit 7d3cddf9d6
3 changed files with 360 additions and 53 deletions

View File

@@ -640,7 +640,13 @@ If you're using the `X-SourceMap` header instead, you can just omit `sourceMap.u
- `if_return` (default: `true`) -- optimizations for if/return and if/continue
- `inline` (default: `true`) -- embed simple functions
- `inline` (default: `true`) -- inline calls to function with simple/`return` statement:
- `false` -- same as `0`
- `0` -- disabled inlining
- `1` -- inline simple functions
- `2` -- inline functions with arguments
- `3` -- inline functions with arguments and variables
- `true` -- same as `3`
- `join_vars` (default: `true`) -- join consecutive `var` statements