From: Jean Privat Date: Tue, 19 Jan 2010 13:44:09 +0000 (-0500) Subject: analysis: inline Int::enumerate_* X-Git-Tag: v0.4~49 X-Git-Url: http://nitlanguage.org analysis: inline Int::enumerate_* They should have been inlined a long time ago. Signed-off-by: Jean Privat --- diff --git a/src/analysis/inline_methods.nit b/src/analysis/inline_methods.nit index 76a3bbc..098cedd 100644 --- a/src/analysis/inline_methods.nit +++ b/src/analysis/inline_methods.nit @@ -78,6 +78,7 @@ redef class ICall var mn = m.name var cn = m.local_class.name return (m.is_intern and cn != once ("Object".to_symbol)) or + (cn == (once ("Int".to_symbol)) and (mn == (once ("enumerate_to".to_symbol)) or mn == (once ("enumerate_before".to_symbol)))) or (cn == (once ("Array".to_symbol)) and (mn == (once ("length".to_symbol)) or mn == (once ("[]".to_symbol)) or mn == (once ("iterate".to_symbol)))) or (cn == (once ("AbstractArrayRead".to_symbol)) and (mn == (once ("length".to_symbol)) or mn == (once ("[]".to_symbol)))) or (m.global.intro.local_class.name == (once ("Inline__".to_symbol)))