Commit Graph

5165 Commits

Author SHA1 Message Date
Daniel Rosenwasser
bea5957d3e Cleaned up flow of binder, fixed ordering for comments/sourcemap tracking. 2015-04-21 16:15:24 -07:00
Cyrus Najmabadi
31932e1f34 Merge branch 'master' into binderSimplification3 2015-04-21 16:03:02 -07:00
Ron Buckton
1295519b8f Updated emit for __decorator and __metadata helpers 2015-04-21 14:10:37 -07:00
Paul van Brenk
80ae52b7e9 expose the config file processing throught the LS and
add a callback to enumerate files in a directory
2015-04-21 13:24:02 -07:00
Cyrus Najmabadi
a54d4154aa CR feedback. 2015-04-21 13:06:40 -07:00
Cyrus Najmabadi
ca63d64292 CR feedback. 2015-04-21 12:59:22 -07:00
Anders Hejlsberg
ed9dceb501 Defer resolution of declared members in classes and interfaces 2015-04-21 11:19:44 -07:00
Vladimir Matveev
3f7e64661d do not hoist non-top level block scoped variables 2015-04-21 08:41:54 -07:00
Vladimir Matveev
767d76241a added comments, fixed typo 2015-04-21 06:49:31 -07:00
Cyrus Najmabadi
cf00a2bec8 Clean up comment. 2015-04-21 00:05:08 -07:00
Cyrus Najmabadi
a93bf1048d Clean up comment. 2015-04-21 00:01:06 -07:00
Cyrus Najmabadi
fac9ab2508 Clean up comment more. 2015-04-20 23:56:38 -07:00
Cyrus Najmabadi
93b7c33347 Remove unnecessary returns. 2015-04-20 23:54:05 -07:00
Cyrus Najmabadi
b81a2c00ba Clean up comment. 2015-04-20 23:52:46 -07:00
Cyrus Najmabadi
b1417d408d Clean up comment. 2015-04-20 23:47:42 -07:00
Cyrus Najmabadi
0a144e1806 Add explicit return to indicate the end of flow of a method.' 2015-04-20 23:44:33 -07:00
Cyrus Najmabadi
d220b7ebb4 Add explanatory comments. 2015-04-20 23:43:54 -07:00
Cyrus Najmabadi
60d0b1444d CR feedback. 2015-04-20 23:34:19 -07:00
Cyrus Najmabadi
602c5c8fa9 Add explanatory comments. 2015-04-20 23:33:13 -07:00
Cyrus Najmabadi
33a74101b8 Split out the concerns of the binder even more.
Don't use SymbolFlags to direct how we handle containers in the binder.  Instead,
Just determine what we should do based on the .kind of the node itself, and nothing
more.
2015-04-20 23:28:16 -07:00
Mohamed Hegazy
658bba9eaf Add --inlineSources option 2015-04-20 20:33:31 -07:00
Vladimir Matveev
b4bd216013 fixed indentation in comments 2015-04-20 17:01:47 -07:00
Vladimir Matveev
bef6e08993 added comments, updated test baselines 2015-04-20 16:56:36 -07:00
Mohamed Hegazy
7aee43b6da Merge branch 'master' into release-1.5 2015-04-20 15:48:15 -07:00
Mohamed Hegazy
ed2e105f17 Merge branch 'master' into rootDir 2015-04-20 14:23:40 -07:00
Mohamed Hegazy
08a869212b Respond to code review commmetns 2015-04-20 14:23:24 -07:00
Vladimir Matveev
6e5082658d skip 'import ...' nodes when creating variable statement for imports 2015-04-20 14:17:38 -07:00
Vladimir Matveev
dcb4c24b43 merge with master 2015-04-20 13:40:13 -07:00
Jason Freeman
02a480d85d Merge pull request #2824 from Microsoft/combineTypeMappers
Fix combineTypeMappers to use instantiateType
2015-04-20 12:53:05 -07:00
Vladimir Matveev
cc385530d1 rename local variable 2015-04-20 10:47:17 -07:00
Cyrus Najmabadi
2e8e4a1f5c Add clarifying comments to the binder. 2015-04-20 02:24:47 -07:00
Cyrus Najmabadi
aaf9371357 Add clarifying comments to binder. 2015-04-19 23:30:06 -07:00
Cyrus Najmabadi
ee6c7dc0e4 Remove unnecessary check. Classes always have exports. 2015-04-19 23:23:44 -07:00
Cyrus Najmabadi
e9a73e0cf8 Move code for creating a prototype out of the common declareSymbol codepath. 2015-04-19 23:20:04 -07:00
Cyrus Najmabadi
38bae98728 CR feedback. 2015-04-19 23:06:42 -07:00
Cyrus Najmabadi
4f8d68bb23 Use SymbolFlags.None in the binder. 2015-04-19 17:31:52 -07:00
Cyrus Najmabadi
221262314c Inline binder method. 2015-04-19 17:14:31 -07:00
Cyrus Najmabadi
4455995477 Move all symbol table initialization into the same method. 2015-04-19 17:09:17 -07:00
Cyrus Najmabadi
941128ba79 Clean up comments. 2015-04-19 17:02:49 -07:00
Cyrus Najmabadi
db128252b0 Simplify code in the binder. 2015-04-19 16:57:44 -07:00
Cyrus Najmabadi
ea7bafa9fb Remove unncessary postbind for function/constructor types. 2015-04-19 16:54:09 -07:00
Cyrus Najmabadi
fab6fca5b4 Remove post bind step for modules. 2015-04-19 16:48:28 -07:00
Cyrus Najmabadi
eb29eb9acd Remove code to post bind parameters. 2015-04-19 16:43:42 -07:00
Cyrus Najmabadi
fb925ee4d1 Rename methods. 2015-04-19 16:39:09 -07:00
Cyrus Najmabadi
02640a397f Extract any complicated code in top level bind function to individual helpers. 2015-04-19 16:37:24 -07:00
Cyrus Najmabadi
c5d920e912 Simplify recursion in the binder.
We now only recurse in a single place in the binder.  The rest of the binding
code is only concerned with how to bind a single node to a symbol and add that
symbol to a symbol table.  Recursion is handled as a separate concern, greatly
simplifying binder flow.
2015-04-19 16:23:56 -07:00
Cyrus Najmabadi
9043121188 Add a 'None' member to SymbolFlags enum. 2015-04-19 16:02:07 -07:00
Cyrus Najmabadi
b75fda1052 Explicitly type 'bind' as being a void function. 2015-04-19 15:55:21 -07:00
Cyrus Najmabadi
e7ddba508a Merge block container logic in the binder to use the same mechanism as SymbolFlags 2015-04-19 15:50:02 -07:00
Cyrus Najmabadi
9e64b45001 Add explanatory comments to the binder. 2015-04-19 14:57:35 -07:00