@@ -20,7 +20,7 @@ abstract class ConstantObjectInternal extends ObjectInternal {
2020
2121 override boolean isClass ( ) { result = false }
2222
23- override boolean isComparable ( ) { result = true }
23+ override boolean testableForEquality ( ) { result = true }
2424
2525 override predicate callResult ( PointsToContext callee , ObjectInternal obj , CfgOrigin origin ) {
2626 // Constants aren't callable
@@ -98,7 +98,7 @@ private class TrueObjectInternal extends BooleanObjectInternal, TTrue {
9898 result = true
9999 }
100100
101- override predicate introduced ( ControlFlowNode node , PointsToContext context ) {
101+ override predicate introducedAt ( ControlFlowNode node , PointsToContext context ) {
102102 node .( NameNode ) .getId ( ) = "True" and context .appliesTo ( node )
103103 }
104104
@@ -122,7 +122,7 @@ private class FalseObjectInternal extends BooleanObjectInternal, TFalse {
122122 result = false
123123 }
124124
125- override predicate introduced ( ControlFlowNode node , PointsToContext context ) {
125+ override predicate introducedAt ( ControlFlowNode node , PointsToContext context ) {
126126 node .( NameNode ) .getId ( ) = "False" and context .appliesTo ( node )
127127 }
128128
@@ -150,7 +150,7 @@ private class NoneObjectInternal extends ConstantObjectInternal, TNone {
150150 result = TBuiltinClassObject ( Builtin:: special ( "NoneType" ) )
151151 }
152152
153- override predicate introduced ( ControlFlowNode node , PointsToContext context ) {
153+ override predicate introducedAt ( ControlFlowNode node , PointsToContext context ) {
154154 node .( NameNode ) .getId ( ) = "None" and context .appliesTo ( node )
155155 }
156156
@@ -177,7 +177,7 @@ private class IntObjectInternal extends ConstantObjectInternal, TInt {
177177 result = "int " + this .intValue ( ) .toString ( )
178178 }
179179
180- override predicate introduced ( ControlFlowNode node , PointsToContext context ) {
180+ override predicate introducedAt ( ControlFlowNode node , PointsToContext context ) {
181181 context .appliesTo ( node ) and
182182 node .getNode ( ) .( IntegerLiteral ) .getValue ( ) = this .intValue ( )
183183 }
@@ -218,7 +218,7 @@ private class FloatObjectInternal extends ConstantObjectInternal, TFloat {
218218 )
219219 }
220220
221- override predicate introduced ( ControlFlowNode node , PointsToContext context ) {
221+ override predicate introducedAt ( ControlFlowNode node , PointsToContext context ) {
222222 context .appliesTo ( node ) and
223223 node .getNode ( ) .( FloatLiteral ) .getValue ( ) = this .floatValue ( )
224224 }
@@ -260,7 +260,7 @@ private class UnicodeObjectInternal extends ConstantObjectInternal, TUnicode {
260260 result = "'" + this .strValue ( ) + "'"
261261 }
262262
263- override predicate introduced ( ControlFlowNode node , PointsToContext context ) {
263+ override predicate introducedAt ( ControlFlowNode node , PointsToContext context ) {
264264 context .appliesTo ( node ) and
265265 node .getNode ( ) .( StrConst ) .getText ( ) = this .strValue ( ) and
266266 node .getNode ( ) .( StrConst ) .isUnicode ( )
@@ -301,7 +301,7 @@ private class BytesObjectInternal extends ConstantObjectInternal, TBytes {
301301 result = "'" + this .strValue ( ) + "'"
302302 }
303303
304- override predicate introduced ( ControlFlowNode node , PointsToContext context ) {
304+ override predicate introducedAt ( ControlFlowNode node , PointsToContext context ) {
305305 context .appliesTo ( node ) and
306306 node .getNode ( ) .( StrConst ) .getText ( ) = this .strValue ( ) and
307307 not node .getNode ( ) .( StrConst ) .isUnicode ( )
0 commit comments