Ondrej Kraus
b7c297bb89
remove anonymous class constructor name in specific case
...
Name of anonymous class constructor is not needed when it contains
exactly one method that is not construtor, because constructor
will be assigned to variable in closure.
2015-02-24 01:01:02 +01:00
Sebastian McKenzie
b7342ef4ea
move es6.arrowFunctions transformer - fixes #874
2015-02-24 10:31:11 +11:00
Sebastian McKenzie
1a899f5e77
move attribute whitespace handling to JSXAttribute enter - fixes #872
2015-02-24 09:48:10 +11:00
Sebastian McKenzie
f2eb1643c0
throw deprecation error for @jsx React.DOM usage and crawl all comments for pragmas - fixes #876
2015-02-24 09:38:16 +11:00
neVERberleRfellerER
9621d1bbeb
remove unnecessary derived class constructor name
2015-02-23 17:39:42 +01:00
Ondrej Kraus
3cf7b2b761
add name to constructor of extended anonymous class
2015-02-23 17:19:41 +01:00
Sebastian McKenzie
eea48f866d
allow MemberExpressions in for-of head
2015-02-23 21:31:57 +11:00
Sebastian McKenzie
52ea7b5f59
always use closure wrap - fixes #864
2015-02-22 23:23:34 +11:00
Sebastian McKenzie
341528ee4a
fix linting errors
2015-02-22 22:37:51 +11:00
Sebastian McKenzie
5f6808ba92
don't transform flow module nodes
2015-02-22 22:35:47 +11:00
Sebastian McKenzie
0b2f1fedcb
don't unpack array when the pattern contains more elements than the corresponding array expression
2015-02-22 22:35:38 +11:00
Sebastian McKenzie
f2d60aab9e
optimise named functions depending on whether they contain an assignment/reference - #861
2015-02-22 21:35:08 +11:00
Sebastian McKenzie
e11b943514
revert to old named function wrapper - fixes #861
2015-02-22 20:54:47 +11:00
Sebastian McKenzie
b44a6eb297
remove is-keyword-js in favor of esutils #856
2015-02-22 10:51:27 +11:00
Simon Lydell
476aa44a90
improve syntax highlighting in error messages
...
- Support hexadecimal, octal and binary number literals, template strings, and
tokenize everything more robustly in general.
- Tokens spanning over several lines (such as multiline strings and comments) no
longer leak their color into the line number gutter.
- The color scheme is preserved.
- The line numbers are now right-aligned instead of left-aligned, since that's
how practically every editor does it.
- Superfluos space in the line number gutter has been removed.
2015-02-21 21:20:52 +01:00
Sebastian McKenzie
5ba2e6254b
check if iterator has a return method before calling it when breaking in a for...of - #838
2015-02-21 18:00:43 +11:00
Sebastian McKenzie
61ea720637
don't traverse into replacement breaks in for-of transformer - thanks @zloirock
2015-02-21 17:55:38 +11:00
Sebastian McKenzie
55357a331d
rename selfContained transformer to runtime
2015-02-21 17:20:59 +11:00
Sebastian McKenzie
9a2e56f003
add moduleId option for specifying a custom module id
2015-02-21 14:29:26 +11:00
Sebastian McKenzie
c637575cab
remove tail-call template
2015-02-21 14:21:31 +11:00
Sebastian McKenzie
b1f794eb84
fix linting errors
2015-02-21 14:16:02 +11:00
Sebastian McKenzie
f6512b45d5
coerce inferred function name to a valid identifier
2015-02-21 14:11:18 +11:00
Sebastian McKenzie
8065c981dc
add iterator.return to for-of breaks - fixes #838
2015-02-21 13:31:14 +11:00
Sebastian McKenzie
7927aa2e18
make use strict directive stateless - fixes #828
2015-02-21 13:06:02 +11:00
Sebastian McKenzie
35bd510930
make react JSX transformer more generic and allow JSX comments - closes #841
2015-02-21 12:53:09 +11:00
Sebastian McKenzie
74186241f9
fix linting errors
2015-02-21 12:41:11 +11:00
Sebastian McKenzie
1effa72a33
remove format options but move compact option to main options
2015-02-21 12:41:03 +11:00
Sebastian McKenzie
b03a806d7c
don't append a newline to the last switchcase
2015-02-21 12:27:38 +11:00
Sebastian McKenzie
6220fd9fc3
better control flow for tco continuation - fixes #850 and fixes #822
2015-02-21 12:27:24 +11:00
Sebastian McKenzie
8d92a75190
remove whitespace from the end of the last newline and improve newlines for switches
2015-02-21 03:22:44 +11:00
Sebastian McKenzie
299e462a29
unpack array rest elements when given a right hand array expression
2015-02-21 02:09:07 +11:00
Sebastian McKenzie
62556f6102
finish code generator revamp, output is now much nicer and liberal with it's use of newlines
2015-02-20 23:24:11 +11:00
Sebastian McKenzie
f2c5accab3
add getModuleName option - fixes #844
2015-02-20 23:23:50 +11:00
Sebastian McKenzie
710ff548cb
improve whitespace handling of code generator, reduce the use of lookaheads, add max newlines of 2 and better newline insertion for generated nodes
2015-02-20 11:35:27 +11:00
Sebastian McKenzie
fbb19fc656
clean up type alias keys
2015-02-20 11:34:43 +11:00
Sebastian McKenzie
e87ef80bc5
add back named methods for classes and add param binding check to spec.functionName transformer
2015-02-20 11:34:00 +11:00
Sebastian McKenzie
83cd3bef92
clean up destructuring transformer and optimise array destructuring - closes #749
2015-02-19 19:16:27 +11:00
Sebastian McKenzie
5e4a008a06
make code generator deopt on input >100KB
2015-02-19 10:48:08 +11:00
Sebastian McKenzie
1594efbc20
remove unused whitespace option
2015-02-19 10:47:51 +11:00
Sebastian McKenzie
002be9a05c
enable spec.functionName by default
2015-02-19 10:47:44 +11:00
Sebastian McKenzie
b1238a1746
Merge branch 'master' of github.com:6to5/6to5
2015-02-19 10:46:47 +11:00
Ingvar Stepanyan
0874f390ff
Add explicit return at the end of tail-recursive function.
...
Issue #822 .
2015-02-18 14:44:47 +02:00
Sebastian McKenzie
eeff4ac9d1
add support for a string literal constructor name
2015-02-18 15:06:18 +11:00
Sebastian McKenzie
692262df1b
fix linting errors
2015-02-18 13:14:06 +11:00
Sebastian McKenzie
3f82b4ec72
remove commonStandard module formatter and make it the default behaviour of all the strict module formatters
2015-02-18 13:08:25 +11:00
Sebastian McKenzie
9c6e632021
Merge pull request #785 from babel/fn-name
...
Set Function.name for funcs in variables and properties as per spec.
2015-02-18 11:49:52 +11:00
Sebastian McKenzie
f228edbb84
add auxiliary comment to let scoping closure flow control - fixes #819
2015-02-18 11:35:57 +11:00
Sebastian McKenzie
7e8cd2ca8a
i'm a terrible spellerer #777
2015-02-18 11:24:51 +11:00
Sebastian McKenzie
9964de9b2f
remove redundant unknown transformer error message
2015-02-18 10:22:07 +11:00
Sebastian McKenzie
5b75b11628
add error message to use of eval(); and enable strict mode on the parser
2015-02-18 10:21:57 +11:00