nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c899dfd
)
model: makes MParameter an MEntity
author
Alexandre Terrasa
<alexandre@moz-code.org>
Sun, 20 Jul 2014 16:37:32 +0000
(12:37 -0400)
committer
Alexandre Terrasa
<alexandre@moz-code.org>
Mon, 21 Jul 2014 18:27:47 +0000
(14:27 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
src/model/model.nit
patch
|
blob
|
history
diff --git
a/src/model/model.nit
b/src/model/model.nit
index
6736df9
..
0179592
100644
(file)
--- a/
src/model/model.nit
+++ b/
src/model/model.nit
@@
-1497,8
+1497,10
@@
end
# A parameter in a signature
class MParameter
+ super MEntity
+
# The name of the parameter
- var name: String
+ redef var name: String
# The static type of the parameter
var mtype: MType
@@
-1506,6
+1508,12
@@
class MParameter
# Is the parameter a vararg?
var is_vararg: Bool
+ init(name: String, mtype: MType, is_vararg: Bool) do
+ self.name = name
+ self.mtype = mtype
+ self.is_vararg = is_vararg
+ end
+
redef fun to_s
do
if is_vararg then