repo.or.cz
/
geany-mirror.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Use consistent shadows across Geany
[geany-mirror.git]
/
tests
/
ctags
/
js-signature.js
blob
9866f57a51b039894814e4d546bbe82d2dcf25be
1
2
function f1() {
3
}
4
function f2(arg1, arg2) {
5
}
6
function f3(
7
arg1, // first
8
arg2, // second
9
arg3 // last
10
) {
11
// ...
12
}
13
function f4(a, b, c) {
14
}
15
16
function Cls(name) {
17
this.name = name;
18
}
19
Cls.prototype = {
20
get_name: function() {
21
return this.name;
22
},
23
set_name: function(name) {
24
this.name = name;
25
},
26
}
27
28
Cls.prototype.hello = function(tpl) {
29
if (tpl == undefined) tpl = "hello {}";
30
return tpl.replace ('{}', this.name);
31
}
32
33
main = function() {
34
c = new Cls("John");
35
print(c.hello());
36
}
37
38
main();