UNPKG
jsctags
Version:
latest (5.2.2)
5.2.2
5.2.1
5.2.0
5.1.1
5.1.0
5.0.1
5.0.0
4.0.1
4.0.0
3.3.0
3.2.1
3.2.0
3.1.0
3.0.1
3.0.0
2.1.0
2.0.1
2.0.0
1.0.0
0.1.0
jsctags generator
github.com/ramitos/jsctags
ramitos/jsctags
jsctags
/
test
/
cases
/
generator.js
15 lines
(11 loc)
•
256 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function
*
foo
(
) {
var
index =
0
, out
while
(index <=
2
) out =
yield
index++ out
//: string
}
var
it =
foo
() it.
next
(
"hi"
)
//:: {done: bool, value: number}
function
*
g1
(
) {
yield
true
}
function
*
g2
(
) {
yield
*
g1
() }
g2
().
next
().
value
//: bool