Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
6453fde
Move emit helpers into related transformers
rbuckton Oct 22, 2016
86091d7
Clean up and consolidate destructuring transform
rbuckton Oct 26, 2016
a2e0b19
Emit for full down-level generators
rbuckton Oct 26, 2016
fea6827
Merge branch 'master' into asyncGenerators
rbuckton Nov 3, 2016
cb85356
Relaxed ES2015 restrictions for generator type check
rbuckton Nov 5, 2016
c6ee25d
Type checking for async iterables and async generators.
rbuckton Nov 6, 2016
74ec093
Merge branch 'emitHelper' into asyncGenerators
rbuckton Nov 9, 2016
bd86778
type checking for pseudoiterable
rbuckton Nov 9, 2016
549ac8f
Updated baselines
rbuckton Nov 9, 2016
b5cc96c
Merge branch 'asyncGeneratorsUpLevel' into asyncGenerators
rbuckton Nov 9, 2016
4b5686a
Added emit transforms for async generators.
rbuckton Nov 10, 2016
4f3fb80
Parse, check, and downlevel emit for for-await-of
rbuckton Nov 10, 2016
a4036c7
Added emit helper checks for async generators
rbuckton Nov 11, 2016
ab1dc52
Merge branch 'emitHelper' into asyncGenerators
rbuckton Nov 16, 2016
d6a5e39
Merge branch 'improveImportHelpersDiagnostics' into asyncGenerators
rbuckton Nov 16, 2016
28d23ce
Add for-await-of, always use Symbol for iterables.
rbuckton Nov 16, 2016
df303c9
Updated baselines
rbuckton Nov 16, 2016
e53263e
Added conformance tests for async generators
rbuckton Nov 18, 2016
42085a6
Conformance tests for for-await-of
rbuckton Nov 18, 2016
c758359
ES6 tests for async generators
rbuckton Nov 18, 2016
281c890
ES5 tests for async generators
rbuckton Nov 18, 2016
1af8ac8
Update es2017 library and baseline
rbuckton Nov 18, 2016
1c0917a
Merge branch 'master' into asyncGenerators
rbuckton Nov 18, 2016
2f6ac58
Fix lint warnings
rbuckton Nov 18, 2016
c72509b
Added iterationMode switch, consolidate some tests, cleanup
rbuckton Nov 19, 2016
32bcc97
Revert diagnostic error number change
rbuckton Nov 19, 2016
38b7757
Tests for iterationMode=iterable
rbuckton Nov 19, 2016
1980334
Merge branch 'master' into asyncGenerators
rbuckton Nov 19, 2016
8af87dc
Merge branch 'master' into asyncGenerators
rbuckton Nov 30, 2016
87eeb57
Merge branch 'master' into asyncGenerators
rbuckton Dec 19, 2016
b0faa92
Merge branch 'es2015-cleanup' into asyncGenerators
rbuckton Dec 20, 2016
0d7c9dc
Merge branch 'master' into asyncGenerators
rbuckton Dec 30, 2016
6a737c8
Move async generators to esnext
rbuckton Dec 30, 2016
30aff2f
Rename and simplify 'iterationMode' option
rbuckton Dec 30, 2016
5e0160b
Reduce number of helpers
rbuckton Jan 1, 2017
2e62d5e
Cleanup emit helper checks
rbuckton Jan 1, 2017
35ef1f7
Merge branch 'master' into asyncGenerators
rbuckton Jan 15, 2017
f9999e9
PR Feedback
rbuckton Jan 18, 2017
74498bb
Remove unnecessary widening, more PR feedback
rbuckton Jan 19, 2017
21bf485
Always descend into loop, fix lint warnings
rbuckton Jan 19, 2017
5d415ca
Merge branch 'master' into asyncGenerators
rbuckton Feb 2, 2017
64be1f2
merge getIteratedTypeOfIterableOrElementTypeOf*
rbuckton Feb 2, 2017
56a360c
Unify getIteratedTypeOf* functions
rbuckton Feb 3, 2017
94b37b1
Inline isThenableType
rbuckton Feb 3, 2017
5ca6665
Typos and other minor PR feedback
rbuckton Feb 3, 2017
e1f8be5
Merge checkIteratedType* functions
rbuckton Feb 3, 2017
3e427f4
Merge branch 'master' into asyncGenerators
rbuckton Feb 10, 2017
dedf4a7
Merge branch 'master' into asyncGenerators
rbuckton Feb 13, 2017
344a9d2
PR feedback
rbuckton Feb 17, 2017
cf72ceb
Merge branch 'master' into asyncGenerators
rbuckton Feb 17, 2017
11f58ea
Minor fixes after merging from master
rbuckton Feb 17, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Tests for iterationMode=iterable
  • Loading branch information
rbuckton committed Nov 19, 2016
commit 38b7757e5704b33987d7d1f46c12a5c637248470
9 changes: 9 additions & 0 deletions tests/baselines/reference/ES5For-of33.errors.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
tests/cases/conformance/statements/for-ofStatements/ES5For-of33.ts(2,5): error TS2304: Cannot find name 'console'.


==== tests/cases/conformance/statements/for-ofStatements/ES5For-of33.ts (1 errors) ====
for (var v of ['a', 'b', 'c']) {
console.log(v);
~~~~~~~
!!! error TS2304: Cannot find name 'console'.
}
21 changes: 21 additions & 0 deletions tests/baselines/reference/ES5For-of33.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions tests/baselines/reference/ES5For-of33.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

130 changes: 130 additions & 0 deletions tests/baselines/reference/ES5For-of33.sourcemap.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
===================================================================
JsFile: ES5For-of33.js
mapUrl: ES5For-of33.js.map
sourceRoot:
sources: ES5For-of33.ts
===================================================================
-------------------------------------------------------------------
emittedFile:tests/cases/conformance/statements/for-ofStatements/ES5For-of33.js
sourceFile:ES5For-of33.ts
-------------------------------------------------------------------
>>>var __values = (this && this.__values) || function (o) { return (i = typeof Symbol === "function" && o[Symbol.iterator] || 0) ? i.call(o) : { next: function () { return { done: d = d || i >= o.length, value: d ? void 0 : o[i++] }; } }; var i, d; };
>>>var __step = (this && this.__step) || function (r) { return !(r.done || (r.done = (r.result = r.iterator.next()).done)); };
>>>var __close = (this && this.__close) || function (r) { return (m = !(r && r.done) && r.iterator["return"]) && m.call(r.iterator); var m; };
>>>try {
>>> for (var iterator_1 = { iterator: __values(['a', 'b', 'c']) }; __step(iterator_1);) {
1 >^^^^
2 > ^^^
3 > ^
4 > ^
5 > ^^^^
6 > ^^^^^^^^^^^^^
7 > ^^
8 > ^^^^^^^^^^
9 > ^^^^^^^^^
10> ^
11> ^^^
12> ^^
13> ^^^
14> ^^
15> ^^^
16> ^
17> ^
18> ^^
19> ^^
20> ^^^^^^^^^^^^^^^^^^
1 >
2 > for
3 >
4 > (var v of
5 >
6 >
7 >
8 >
9 >
10> [
11> 'a'
12> ,
13> 'b'
14> ,
15> 'c'
16> ]
17>
18>
19>
20> var v
1 >Emitted(5, 5) Source(1, 1) + SourceIndex(0)
2 >Emitted(5, 8) Source(1, 4) + SourceIndex(0)
3 >Emitted(5, 9) Source(1, 5) + SourceIndex(0)
4 >Emitted(5, 10) Source(1, 15) + SourceIndex(0)
5 >Emitted(5, 14) Source(1, 15) + SourceIndex(0)
6 >Emitted(5, 27) Source(1, 15) + SourceIndex(0)
7 >Emitted(5, 29) Source(1, 15) + SourceIndex(0)
8 >Emitted(5, 39) Source(1, 15) + SourceIndex(0)
9 >Emitted(5, 48) Source(1, 15) + SourceIndex(0)
10>Emitted(5, 49) Source(1, 16) + SourceIndex(0)
11>Emitted(5, 52) Source(1, 19) + SourceIndex(0)
12>Emitted(5, 54) Source(1, 21) + SourceIndex(0)
13>Emitted(5, 57) Source(1, 24) + SourceIndex(0)
14>Emitted(5, 59) Source(1, 26) + SourceIndex(0)
15>Emitted(5, 62) Source(1, 29) + SourceIndex(0)
16>Emitted(5, 63) Source(1, 30) + SourceIndex(0)
17>Emitted(5, 64) Source(1, 30) + SourceIndex(0)
18>Emitted(5, 66) Source(1, 30) + SourceIndex(0)
19>Emitted(5, 68) Source(1, 6) + SourceIndex(0)
20>Emitted(5, 86) Source(1, 11) + SourceIndex(0)
---
>>> var v = iterator_1.result.value;
1 >^^^^^^^^
2 > ^^^^
3 > ^
4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^
1 >
2 > var
3 > v
4 >
1 >Emitted(6, 9) Source(1, 6) + SourceIndex(0)
2 >Emitted(6, 13) Source(1, 10) + SourceIndex(0)
3 >Emitted(6, 14) Source(1, 11) + SourceIndex(0)
4 >Emitted(6, 40) Source(1, 11) + SourceIndex(0)
---
>>> console.log(v);
1 >^^^^^^^^
2 > ^^^^^^^
3 > ^
4 > ^^^
5 > ^
6 > ^
7 > ^
8 > ^
1 > of ['a', 'b', 'c']) {
>
2 > console
3 > .
4 > log
5 > (
6 > v
7 > )
8 > ;
1 >Emitted(7, 9) Source(2, 5) + SourceIndex(0)
2 >Emitted(7, 16) Source(2, 12) + SourceIndex(0)
3 >Emitted(7, 17) Source(2, 13) + SourceIndex(0)
4 >Emitted(7, 20) Source(2, 16) + SourceIndex(0)
5 >Emitted(7, 21) Source(2, 17) + SourceIndex(0)
6 >Emitted(7, 22) Source(2, 18) + SourceIndex(0)
7 >Emitted(7, 23) Source(2, 19) + SourceIndex(0)
8 >Emitted(7, 24) Source(2, 20) + SourceIndex(0)
---
>>> }
1 >^^^^^
1 >
>}
1 >Emitted(8, 6) Source(3, 2) + SourceIndex(0)
---
>>>}
>>>catch (e_1_1) { e_1 = { error: e_1_1 }; }
>>>finally {
>>> try { __close(iterator_1); } finally { if (e_1) throw e_1.error; }
>>>}
>>>var e_1;
>>>//# sourceMappingURL=ES5For-of33.js.map
12 changes: 12 additions & 0 deletions tests/baselines/reference/ES5For-of34.errors.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
tests/cases/conformance/statements/for-ofStatements/ES5For-of34.ts(4,6): error TS2322: Type 'string' is not assignable to type 'number'.


==== tests/cases/conformance/statements/for-ofStatements/ES5For-of34.ts (1 errors) ====
function foo() {
return { x: 0 };
}
for (foo().x of ['a', 'b', 'c']) {
~~~~~~~
!!! error TS2322: Type 'string' is not assignable to type 'number'.
var p = foo().x;
}
27 changes: 27 additions & 0 deletions tests/baselines/reference/ES5For-of34.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions tests/baselines/reference/ES5For-of34.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading