lib/rbplusplus/transformers/node.rb in rbplusplus-0.9 vs lib/rbplusplus/transformers/node.rb in rbplusplus-0.9.1
- old
+ new
@@ -58,9 +58,15 @@
def _disable_typedef_lookup? #:nodoc:
!!cache[:disable_typedef_lookup]
end
+ # Is this node an incomplete node?
+ # TODO Move to rbgccxml
+ def incomplete?
+ self["incomplete"] ? self["incomplete"] == "1" : false
+ end
+
protected
# Get this node's settings cache
def cache
NodeCache.get(self)