@@ -332,28 +332,6 @@ private module Impl {
332332 )
333333 }
334334
335- private Element getImmediateChildOfIfConfigClause (
336- IfConfigClause e , int index , string partialPredicateCall
337- ) {
338- exists ( int b , int bLocatable , int n , int nCondition , int nElement |
339- b = 0 and
340- bLocatable = b + 1 + max ( int i | i = - 1 or exists ( getImmediateChildOfLocatable ( e , i , _) ) | i ) and
341- n = bLocatable and
342- nCondition = n + 1 and
343- nElement = nCondition + 1 + max ( int i | i = - 1 or exists ( e .getImmediateElement ( i ) ) | i ) and
344- (
345- none ( )
346- or
347- result = getImmediateChildOfLocatable ( e , index - b , partialPredicateCall )
348- or
349- index = n and result = e .getImmediateCondition ( ) and partialPredicateCall = "Condition()"
350- or
351- result = e .getImmediateElement ( index - nCondition ) and
352- partialPredicateCall = "Element(" + ( index - nCondition ) .toString ( ) + ")"
353- )
354- )
355- }
356-
357335 private Element getImmediateChildOfInOutType ( InOutType e , int index , string partialPredicateCall ) {
358336 exists ( int b , int bType , int n |
359337 b = 0 and
@@ -1763,18 +1741,18 @@ private module Impl {
17631741 private Element getImmediateChildOfIfConfigDecl (
17641742 IfConfigDecl e , int index , string partialPredicateCall
17651743 ) {
1766- exists ( int b , int bDecl , int n , int nClause |
1744+ exists ( int b , int bDecl , int n , int nActiveElement |
17671745 b = 0 and
17681746 bDecl = b + 1 + max ( int i | i = - 1 or exists ( getImmediateChildOfDecl ( e , i , _) ) | i ) and
17691747 n = bDecl and
1770- nClause = n + 1 + max ( int i | i = - 1 or exists ( e .getImmediateClause ( i ) ) | i ) and
1748+ nActiveElement = n + 1 + max ( int i | i = - 1 or exists ( e .getImmediateActiveElement ( i ) ) | i ) and
17711749 (
17721750 none ( )
17731751 or
17741752 result = getImmediateChildOfDecl ( e , index - b , partialPredicateCall )
17751753 or
1776- result = e .getImmediateClause ( index - n ) and
1777- partialPredicateCall = "Clause (" + ( index - n ) .toString ( ) + ")"
1754+ result = e .getImmediateActiveElement ( index - n ) and
1755+ partialPredicateCall = "ActiveElement (" + ( index - n ) .toString ( ) + ")"
17781756 )
17791757 )
17801758 }
@@ -4796,8 +4774,6 @@ private module Impl {
47964774 or
47974775 result = getImmediateChildOfExistentialType ( e , index , partialAccessor )
47984776 or
4799- result = getImmediateChildOfIfConfigClause ( e , index , partialAccessor )
4800- or
48014777 result = getImmediateChildOfInOutType ( e , index , partialAccessor )
48024778 or
48034779 result = getImmediateChildOfLValueType ( e , index , partialAccessor )
0 commit comments