Skip to content

Commit

Permalink
Little stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
alexnask committed Jun 25, 2012
1 parent 8f7e805 commit c8a4d81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/libcee/AST/VariableDeclaration.ooc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ VariableDeclaration: class extends Statement {
init: func ~typeNameValueStorage (=type, =name, =value, =storage) {}

toString: func -> String {
storage toString() + match value {
prefix := storage toString()
if(!prefix empty?()) prefix = prefix + " "
prefix + match value {
case null => "#{type} #{name};"
case => "#{type} #{name} = #{value};"
}
Expand Down

0 comments on commit c8a4d81

Please sign in to comment.