all green

That fixes all existing tests. Operation successful

Off course there is tests missing :-(
This commit is contained in:
Torsten Ruger
2015-05-20 17:29:08 +03:00
parent 2ec9ee90f9
commit 422ec64105
9 changed files with 34 additions and 30 deletions

View File

@@ -42,12 +42,13 @@ module Parfait
# determine whether this method has an argument by the name
def has_arg name
@arg_names.index_of name.to_sym
raise "uups #{name}.#{name.class}" unless name.is_a? Word
@arg_names.index_of name
end
# determine if method has a local variable or tmp (anonymous local) by given name
def has_local name
name = name.to_sym
raise "uups #{name}.#{name.class}" unless name.is_a? Word
index = @locals.index(name)
index = @tmps.index(name) unless index
index