Sebastian McKenzie
|
55f2cffc22
|
fix linting errors
|
2015-02-04 10:05:20 +11:00 |
|
Sebastian McKenzie
|
7a0dbb0203
|
fix node removal
|
2015-02-04 08:39:54 +11:00 |
|
Sebastian McKenzie
|
618c6a8e67
|
add isLiteral to inferType
|
2015-02-04 08:25:15 +11:00 |
|
Sebastian McKenzie
|
3b3255a964
|
delegate removal of nodes in traversal to exitNode
|
2015-02-04 08:24:38 +11:00 |
|
Sebastian McKenzie
|
6da6bc3eb8
|
remove callExpression type inferrence
|
2015-02-03 22:32:00 +11:00 |
|
Sebastian McKenzie
|
f06535e915
|
rename Scope.init to Scope.crawl
|
2015-02-03 22:22:36 +11:00 |
|
Sebastian McKenzie
|
29f866525e
|
clean up scope tracking and add some simple flow type tracking and inferrence #653
|
2015-02-03 21:06:21 +11:00 |
|
Sebastian McKenzie
|
8e708906a8
|
fix linting errors
|
2015-02-03 20:11:38 +11:00 |
|
Sebastian McKenzie
|
239369314c
|
more scope refactoring - fixes #676
|
2015-02-03 20:06:27 +11:00 |
|
Sebastian McKenzie
|
f2d1fc47d1
|
Merge branch 'master' of github.com:6to5/6to5
|
2015-02-03 19:55:29 +11:00 |
|
Sebastian McKenzie
|
a9405e5e80
|
clean up scope API
|
2015-02-03 19:33:32 +11:00 |
|
Sebastian McKenzie
|
630f1717f0
|
clean up scope collision tracking and constants transformer - fixes #331
|
2015-02-03 13:20:52 +11:00 |
|
Sebastian McKenzie
|
b2ad79cf88
|
rename t.getDeclarations to the WAY more reflective t.getBindingIdentifiers
|
2015-02-03 12:03:21 +11:00 |
|
Sebastian McKenzie
|
c7a616730c
|
add levenshtein suggestions to undeclared variable transformer
|
2015-02-01 16:20:18 +11:00 |
|
Sebastian McKenzie
|
82c18a837d
|
add detection skeleton #631
|
2015-01-31 17:59:30 +11:00 |
|
Sebastian McKenzie
|
be55f42f80
|
simplify Scope::has
|
2015-01-31 10:06:22 +11:00 |
|
Sebastian McKenzie
|
0fea437536
|
rename t.getIds to t.getDeclarations and remove dead code
|
2015-01-30 21:36:51 +11:00 |
|
Sebastian McKenzie
|
3b7cfc908e
|
use globals module instead of maintaining our own list
|
2015-01-30 17:17:42 +11:00 |
|
Stefan Penner
|
9ddf411f2c
|
cleanup: require explicit lodash modules needed
|
2015-01-28 23:52:17 -05:00 |
|
Sebastian McKenzie
|
973be9ad96
|
add noScope option to traverse.clearProperties - fixes #624
|
2015-01-29 10:13:29 +11:00 |
|
Sebastian McKenzie
|
4ff66a5cfc
|
add id to a function expression scope
|
2015-01-28 18:14:52 +11:00 |
|
Sebastian McKenzie
|
77361582f4
|
don't stop block scoped variable traversal on any scope, just skip it and fix block statement for parent delegation - fixes #605
|
2015-01-28 17:48:37 +11:00 |
|
Sebastian McKenzie
|
836bc3a9a4
|
only check for duplicates for let variables
|
2015-01-28 14:47:09 +11:00 |
|
Sebastian McKenzie
|
117203010a
|
don't stop block variable scope finding on first hit
|
2015-01-28 14:39:46 +11:00 |
|
Sebastian McKenzie
|
202d98c318
|
fix linting errors
|
2015-01-27 07:06:12 +11:00 |
|
Sebastian McKenzie
|
59283c1148
|
clean up traversal some more to make it clearer
|
2015-01-26 18:13:21 +11:00 |
|
Sebastian McKenzie
|
0110d18d4c
|
clearn up traversal and fix replacement node arrays not being traversed - fixes #589
|
2015-01-26 17:43:11 +11:00 |
|
Sebastian McKenzie
|
d473826a68
|
add window and self to valid global keys
|
2015-01-26 13:51:15 +11:00 |
|
Sebastian McKenzie
|
8a13c12738
|
switch rest and default parameters to new ast type
|
2015-01-24 16:31:43 +11:00 |
|
Sebastian McKenzie
|
9f435d02f2
|
switch to a custom list of global keys and use object helper
|
2015-01-23 23:04:33 +11:00 |
|
Sebastian McKenzie
|
9bfe6e7aac
|
add Scope::getFunctionParent method
|
2015-01-22 17:20:29 +11:00 |
|
Sebastian McKenzie
|
3e2d611707
|
store all undeclared references on Program to better handle let scoping
|
2015-01-22 10:12:03 +11:00 |
|
Sebastian McKenzie
|
870954c6be
|
rewrite constants transformer
|
2015-01-22 07:37:18 +11:00 |
|
Sebastian McKenzie
|
c2d61ad660
|
more intelligent scope tracking and insertion
|
2015-01-22 01:40:26 +11:00 |
|
Sebastian McKenzie
|
ccdb480d44
|
rename traverser to visitor
|
2015-01-22 00:28:20 +11:00 |
|
Sebastian McKenzie
|
ac373a9e1c
|
use scope for uid registry instead of a global registry
|
2015-01-22 00:27:45 +11:00 |
|
Sebastian McKenzie
|
287bfc77b2
|
add scope file.generateUidIdentifier alias
|
2015-01-21 23:58:43 +11:00 |
|
Sebastian McKenzie
|
3205c78f01
|
ensure that a scope is always passed to traverse and allow scopes to have access to file
|
2015-01-21 23:52:12 +11:00 |
|
Dan Abramov
|
3d9d842a0d
|
Extract traversers outside methods
|
2015-01-21 14:34:47 +03:00 |
|
Sebastian McKenzie
|
193a3c167e
|
loops should contain their child block let declarations
|
2015-01-20 19:33:26 +11:00 |
|
Sebastian McKenzie
|
26cb5d5a65
|
add block to for loop scope - fixes #538
|
2015-01-20 16:48:41 +11:00 |
|
Sebastian McKenzie
|
36a933a004
|
add strict mode to every file
|
2015-01-18 18:44:08 +11:00 |
|
Sebastian McKenzie
|
309d19960f
|
better traversal context variable names
|
2015-01-18 18:23:46 +11:00 |
|
Sebastian McKenzie
|
774cb66d9b
|
add isBlockedScoped types helper
|
2015-01-18 18:23:37 +11:00 |
|
Sebastian McKenzie
|
d0dc972840
|
fix up formatting in traverse
|
2015-01-18 02:35:19 +11:00 |
|
Sebastian McKenzie
|
621e66e9ac
|
add private declaration and comprehension expression support to scope tracking and id building
|
2015-01-18 02:35:08 +11:00 |
|
Dan Abramov
|
f9480b5280
|
Avoid closures when traversing
|
2015-01-17 00:13:39 +03:00 |
|
Dan Abramov
|
8dc4996547
|
Refactor traversal into smaller methods
|
2015-01-17 00:13:39 +03:00 |
|
Dan Abramov
|
4f01f67dd6
|
Avoid delete in favor of null assignment to prevent deoptimizations
|
2015-01-17 00:13:39 +03:00 |
|
Sebastian McKenzie
|
f6c72e9ae9
|
add newline to scope
|
2015-01-11 22:15:56 +11:00 |
|