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
Cyrus Najmabadi
71d0f7affe
Simplify concerns in the binder.
2015-04-19 14:46:01 -07:00
Cyrus Najmabadi
6478155aac
Rename locals to more clearly indicate they are flags and not kinds.
2015-04-19 14:30:35 -07:00
Cyrus Najmabadi
14e925beb9
ConstructorType's name should be __call not __constructor.
2015-04-19 14:21:52 -07:00
Cyrus Najmabadi
e5910af2c8
Always recurse into children in the binder in a uniform manner.
2015-04-19 14:15:49 -07:00
Dirk Bäumer
62b15de666
Merge pull request #2687 from dbaeumer/feature/fix2507
...
fixes #2507 - bad formatting for formatonkey if convertTabsToSpaces === false
2015-04-19 21:43:51 +02:00
Zhengbo Li
fcc5ac02ad
Merge pull request #2827 from zhengbli/master
...
Fix dom type "ArrayBufferView"
2015-04-18 12:47:24 -07:00
Daniel Rosenwasser
79dc0f96d3
Merge pull request #1546 from Arnavion/fix-emithost-this-binding
...
Don't lose the this reference for compilerHost methods.
2015-04-18 11:29:44 -07:00
Zhengbo Li
609be7628b
Fix dom type "ArrayBufferView"
...
The dom type "ArrayBufferView" was emitteed as "any" because of a script
bug.
2015-04-18 00:12:27 -07:00
Mohamed Hegazy
b8ebf561f9
Update LKG
2015-04-17 17:21:02 -07:00
Daniel Rosenwasser
62036758a8
Merge pull request #2809 from Microsoft/noReservedWordsInBindingPatterns
...
Disallow reserved words for object binding pattern names
2015-04-17 17:06:50 -07:00
Daniel Rosenwasser
4134d79999
numberic.
2015-04-17 16:50:38 -07:00
Daniel Rosenwasser
dd9481996c
word -> Word
2015-04-17 16:50:33 -07:00
Daniel Rosenwasser
23c76c3abb
Removed unnecessary check since ShorthandPropertyAssignment's name is always an Identifier.
2015-04-17 16:50:00 -07:00
Mohamed Hegazy
bf51a3410f
Merge branch 'Smarp-amd-es3'
2015-04-17 15:59:08 -07:00
Mohamed Hegazy
7ad98770e1
Accept baselines
2015-04-17 15:53:36 -07:00
Mohamed Hegazy
c68f837052
Merge branch 'amd-es3' of https://github.com/Smarp/TypeScript into Smarp-amd-es3
2015-04-17 15:39:23 -07:00
Jason Freeman
f3c073e72d
Merge pull request #2813 from Microsoft/lazyBaseTypes
...
Lazy base types
2015-04-17 14:31:17 -07:00
Jason Freeman
c9d8c67ab6
Merge branch 'master' of https://github.com/Microsoft/TypeScript into lazyBaseTypes
2015-04-17 14:27:43 -07:00
Jason Freeman
47ccf77cea
Address PR feedback
2015-04-17 14:27:31 -07:00
CyrusNajmabadi
ec574c337e
Merge pull request #2820 from Microsoft/scannerLength
...
Support passing a start/length when creating a scanner.
2015-04-17 13:56:21 -07:00
Jason Freeman
28a0f941c8
Accept symbol baselines
2015-04-17 12:57:29 -07:00
Jason Freeman
8ca7805adb
Merge branch 'master' of https://github.com/Microsoft/TypeScript into lazyBaseTypes
2015-04-17 12:52:17 -07:00
Cyrus Najmabadi
9e507baf7c
Support passing a start/length when creating a scanner.
...
Conflicts:
src/compiler/parser.ts
src/compiler/scanner.ts
2015-04-17 12:27:24 -07:00
CyrusNajmabadi
5426526ac5
Merge pull request #2815 from Microsoft/getTypeFromTypeNode
...
Make StringLiterals and HeritageClauses into TypeNodes.
2015-04-17 12:24:30 -07:00
Cyrus Najmabadi
c2e178ee51
CR feedback.
2015-04-17 12:06:21 -07:00
Cyrus Najmabadi
605ee10768
Merge branch 'master' into getTypeFromTypeNode
2015-04-17 11:59:25 -07:00
Mohamed Hegazy
f11ee8c9fc
Merge pull request #2805 from Microsoft/moduleFixes
...
Fix #2538 and #2801
2015-04-17 10:31:38 -07:00
TruongSinh Tran-Nguyen
d55dcc61cc
exports.default in ES5 vs exports["default"] in ES3
2015-04-17 20:29:05 +03:00
Mohamed Hegazy
3298327ad0
update comments
2015-04-17 10:16:53 -07:00
Cyrus Najmabadi
d1c0f8780d
Additional API cleanup.
2015-04-16 22:54:46 -07:00
Cyrus Najmabadi
89bfbd0cf3
Make StringLiterals and HeritageClauses into TypeNodes. It makes the checker much simpler and nicer.
2015-04-16 22:48:18 -07:00
Zhengbo Li
b22e0e9dff
Merge pull request #2739 from zhengbli/SortOriginalDomThenUpdate
...
Updated dom related reference files according to new IE spec
2015-04-16 20:16:29 -07:00
Zhengbo Li
23f86db75c
Changed the type for TypeTrack.Mode
2015-04-16 19:48:18 -07:00
Zhengbo Li
e763b43783
Updated overloads that only differ in return type
2015-04-16 19:45:21 -07:00
Jason Freeman
2c4404b9c4
Clean up some repeated calls to getBaseTypes
2015-04-16 18:24:10 -07:00
Jason Freeman
8bf012b566
Add tests for not depending on base types
2015-04-16 18:15:03 -07:00
Jason Freeman
3b1c833d67
Lazily compute base types
2015-04-16 18:14:59 -07:00
Mohamed Hegazy
9cda1df18c
Merge branch 'master' into moduleFixes
2015-04-16 17:37:11 -07:00
Mohamed Hegazy
6163f5e11d
Add comment
2015-04-16 17:37:01 -07:00
Mohamed Hegazy
a84e64698a
Move amd-dependency erlier in the list
2015-04-16 17:32:40 -07:00
Mohamed Hegazy
d25d55ecc1
Respond to code review comments
2015-04-16 17:26:06 -07:00
Daniel Rosenwasser
7ce1604c53
Accepted baselines.
2015-04-16 16:41:11 -07:00
Daniel Rosenwasser
e36f47ab7e
Expect a colon if the property was a reserved word.
2015-04-16 16:39:32 -07:00
Daniel Rosenwasser
b0846d1a6b
Accepted baselines.
2015-04-16 16:25:54 -07:00
Daniel Rosenwasser
905375dc3e
Merge pull request #2807 from Microsoft/templateBackslashTests
...
Backslash escape tests for template strings
2015-04-16 16:12:37 -07:00