nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
adb3eb9
)
pretty: handle typed literal arrays
author
Jean Privat
<jean@pryen.org>
Fri, 24 Apr 2015 11:08:28 +0000
(18:08 +0700)
committer
Jean Privat
<jean@pryen.org>
Mon, 4 May 2015 20:08:12 +0000
(16:08 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>
src/pretty.nit
patch
|
blob
|
history
diff --git
a/src/pretty.nit
b/src/pretty.nit
index
1bea99b
..
b4a14b3
100644
(file)
--- a/
src/pretty.nit
+++ b/
src/pretty.nit
@@
-2067,6
+2067,11
@@
redef class AArrayExpr
redef fun accept_pretty_printer(v) do
v.consume "["
v.visit_list n_exprs
+ if n_type != null then
+ v.consume ":"
+ v.adds
+ v.visit n_type
+ end
v.consume "]"
end
end