small fix

This commit is contained in:
Torsten Ruger
2016-12-10 18:07:38 +02:00
parent efca5254f4
commit 87693112d4
4 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@ module Typed
def on_ClassStatement statement
raise "classes dont yet play babushka, get coding #{name}" if @clazz
raise "classes dont yet play babushka, get coding #{statement.name}" if @clazz
@clazz = Parfait::Space.object_space.get_class_by_name! statement.name
#puts "Compiling class #{@clazz.name.inspect}"

View File

@ -9,7 +9,7 @@ module Typed
name_s = no_space( statement.name.value )
@method.ensure_local( name_s, statement.type ) unless( @method.has_arg(name_s))
# if there is a value assigned, process it as am assignemnt statement (kind of call on_assign)
process( Typed::Assignment.new(statement.name , statement.value ) ) if statement.value
process( Tree::Assignment.new(statement.name , statement.value ) ) if statement.value
return nil
end
end