diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-01 19:19:07 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-01 19:19:07 -0600 |
commit | cf5706eb5adbe5858d87118d200e233abfa1271f (patch) | |
tree | 9c4da2dc3e403f2cdfa2cf8d632098a12fdad2e4 /kalyptus/kdocAstUtil.pm | |
parent | 795a0355a40293affc7164507e918440d4a828d6 (diff) | |
download | libtqt-perl-cf5706eb5adbe5858d87118d200e233abfa1271f.tar.gz libtqt-perl-cf5706eb5adbe5858d87118d200e233abfa1271f.zip |
Update embedded kalyptus installation
Diffstat (limited to 'kalyptus/kdocAstUtil.pm')
-rw-r--r-- | kalyptus/kdocAstUtil.pm | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/kalyptus/kdocAstUtil.pm b/kalyptus/kdocAstUtil.pm index 9c8c0dd..8c24430 100644 --- a/kalyptus/kdocAstUtil.pm +++ b/kalyptus/kdocAstUtil.pm @@ -442,6 +442,33 @@ sub inheritedBy } } +=head2 inheritsAsVirtual + + Parameters: (selfNode) classNode + + Tells if C<classNode> is a virtual ancestor of C<selfNode> + e.g: $self->kdocAstUtil::inheritsAsVirtual($other) + +=cut + +sub inheritsAsVirtual +{ + my ( $self, $node ) = @_; + + return 0 unless exists $self->{InList}; + + for my $in( @{ $self->{InList} } ) + { + return 1 if + inheritName($in) eq $node->{astNodeName} and + $in->{Type} =~ /virtual/; + return 1 if $in->{Node} && + $in->{Node}->kdocAstUtil::inheritsAsVirtual( $node ); + } + return 0 +} + + =head2 hasLocalInheritor Parameter: node |