remove FieldDef

and on_field_def , :field_def and fixed all related tests
local variables will have to be determined outside the typed layer
This commit is contained in:
Torsten Ruger
2016-12-17 13:12:49 +02:00
parent c12f11fba5
commit 8845b91529
9 changed files with 38 additions and 48 deletions

View File

@ -6,9 +6,5 @@ module Typed
@name , @value = n , v
end
end
class FieldDef < Statement
attr_accessor :name , :type , :value
end
end
end

View File

@ -40,15 +40,6 @@ module Typed
params
end
def on_field_def statement
type , name , value = *statement
w = Tree::FieldDef.new()
w.type = type
w.name = process(name)
w.value = process(value) if value
w
end
def on_while_statement statement
branch_type , condition , statements = *statement
w = Tree::WhileStatement.new()