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
/
proto.js
17 lines
(12 loc)
•
249 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function
Foo
(
x
) {
this
.
x
= x;
this
.
y
= [
1
]; }
Foo
;
//: fn(x: bool)
Foo
.
prototype
= {
makeString
:
function
(
) {
return
"hi"
; },
bar
:
13
};
var
z =
new
Foo
(
true
);
//:: {x: bool, y: [number]}
z.
toString
;
//: fn() -> string
z.
bar
;
//: number