Skip to content

Commit

Permalink
Support for attaching extra information to AST nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
vidarh committed Nov 2, 2013
1 parent 13699f4 commit afdcd99
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ast.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ def concat(other)
update_position
return self
end

def extra
@extra ||= {}
end
end

# For convenience
Expand Down

0 comments on commit afdcd99

Please sign in to comment.