@@ -34,7 +34,7 @@ private import Node0ToString
3434cached
3535private newtype TIRDataFlowNode =
3636 TNode0 ( Node0Impl node ) { DataFlowImplCommon:: forceCachingInSameStage ( ) } or
37- TVariableNode ( GlobalLikeVariable var , int indirectionIndex ) {
37+ TGlobalLikeVariableNode ( GlobalLikeVariable var , int indirectionIndex ) {
3838 indirectionIndex =
3939 [ getMinIndirectionsForType ( var .getUnspecifiedType ( ) ) .. Ssa:: getMaxIndirectionsForType ( var .getUnspecifiedType ( ) ) ]
4040 } or
@@ -396,7 +396,7 @@ class Node extends TIRDataFlowNode {
396396 * modeling flow in and out of global variables.
397397 */
398398 Variable asVariable ( ) {
399- this = TVariableNode ( result , getMinIndirectionsForType ( result .getUnspecifiedType ( ) ) )
399+ this = TGlobalLikeVariableNode ( result , getMinIndirectionsForType ( result .getUnspecifiedType ( ) ) )
400400 }
401401
402402 /**
@@ -406,7 +406,7 @@ class Node extends TIRDataFlowNode {
406406 */
407407 Variable asIndirectVariable ( int indirectionIndex ) {
408408 indirectionIndex > getMinIndirectionsForType ( result .getUnspecifiedType ( ) ) and
409- this = TVariableNode ( result , indirectionIndex )
409+ this = TGlobalLikeVariableNode ( result , indirectionIndex )
410410 }
411411
412412 /** Gets an indirection of this node's underlying variable, if any. */
@@ -1755,11 +1755,11 @@ class DefinitionByReferenceNode extends IndirectArgumentOutNode {
17551755 * value of that variable at some particular point. This can be used for
17561756 * modeling flow in and out of global variables.
17571757 */
1758- class VariableNode extends Node , TVariableNode {
1758+ class VariableNode extends Node , TGlobalLikeVariableNode {
17591759 Variable v ;
17601760 int indirectionIndex ;
17611761
1762- VariableNode ( ) { this = TVariableNode ( v , indirectionIndex ) }
1762+ VariableNode ( ) { this = TGlobalLikeVariableNode ( v , indirectionIndex ) }
17631763
17641764 /** Gets the variable corresponding to this node. */
17651765 Variable getVariable ( ) { result = v }
0 commit comments