nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
syntax: promote some properties and classes from typing to syntax_base
[nit.git]
/
src
/
compiling
/
compiling_methods.nit
diff --git
a/src/compiling/compiling_methods.nit
b/src/compiling/compiling_methods.nit
index
9edf071
..
2104ed9
100644
(file)
--- a/
src/compiling/compiling_methods.nit
+++ b/
src/compiling/compiling_methods.nit
@@
-1392,7
+1392,7
@@
end
redef class ASuperstringExpr
redef fun compile_expr(v)
do
redef class ASuperstringExpr
redef fun compile_expr(v)
do
- var array = meth_with_capacity.compile_constructor_call(v, atype.as(not null), ["TAG_Int({n_exprs.length})"])
+ var array = meth_with_capacity.compile_constructor_call(v, atype, ["TAG_Int({n_exprs.length})"])
array = v.ensure_var(array, "Array (for super-string)")
for ne in n_exprs do
array = v.ensure_var(array, "Array (for super-string)")
for ne in n_exprs do
@@
-1520,7
+1520,7
@@
redef class AAbsAbsSendExpr
# Compile each argument and add them to the array
fun compile_arguments_in(v: CompilerVisitor, cargs: Array[String])
do
# Compile each argument and add them to the array
fun compile_arguments_in(v: CompilerVisitor, cargs: Array[String])
do
- for a in arguments.as(not null) do
+ for a in arguments do
cargs.add(v.compile_expr(a))
end
end
cargs.add(v.compile_expr(a))
end
end