@@ -308,45 +308,45 @@ class MetricClass extends Class {
308308 }
309309
310310 private string getAUsedHalsteadN1Operator ( ) {
311- exists ( CommaExpr e | e = this .getAnEnclosedExpression ( ) ) and result = "comma"
311+ this .getAnEnclosedExpression ( ) instanceof CommaExpr and result = "comma"
312312 or
313- exists ( ReferenceToExpr e | e = this .getAnEnclosedExpression ( ) ) and result = "refTo"
313+ this .getAnEnclosedExpression ( ) instanceof ReferenceToExpr and result = "refTo"
314314 or
315- exists ( PointerDereferenceExpr e | e = this .getAnEnclosedExpression ( ) ) and result = "dereference"
315+ this .getAnEnclosedExpression ( ) instanceof PointerDereferenceExpr and result = "dereference"
316316 or
317- exists ( CStyleCast e | e = this .getAnEnclosedExpression ( ) ) and result = "cCast"
317+ this .getAnEnclosedExpression ( ) instanceof CStyleCast and result = "cCast"
318318 or
319- exists ( StaticCast e | e = this .getAnEnclosedExpression ( ) ) and result = "staticCast"
319+ this .getAnEnclosedExpression ( ) instanceof StaticCast and result = "staticCast"
320320 or
321- exists ( ConstCast e | e = this .getAnEnclosedExpression ( ) ) and result = "constCast"
321+ this .getAnEnclosedExpression ( ) instanceof ConstCast and result = "constCast"
322322 or
323- exists ( ReinterpretCast e | e = this .getAnEnclosedExpression ( ) ) and result = "reinterpretCast"
323+ this .getAnEnclosedExpression ( ) instanceof ReinterpretCast and result = "reinterpretCast"
324324 or
325- exists ( DynamicCast e | e = this .getAnEnclosedExpression ( ) ) and result = "dynamicCast"
325+ this .getAnEnclosedExpression ( ) instanceof DynamicCast and result = "dynamicCast"
326326 or
327- exists ( SizeofExprOperator e | e = this .getAnEnclosedExpression ( ) ) and result = "sizeofExpr"
327+ this .getAnEnclosedExpression ( ) instanceof SizeofExprOperator and result = "sizeofExpr"
328328 or
329- exists ( SizeofTypeOperator e | e = this .getAnEnclosedExpression ( ) ) and result = "sizeofType"
329+ this .getAnEnclosedExpression ( ) instanceof SizeofTypeOperator and result = "sizeofType"
330330 or
331- exists ( IfStmt e | e = this .getAnEnclosedStmt ( ) ) and result = "ifVal"
331+ this .getAnEnclosedStmt ( ) instanceof IfStmt and result = "ifVal"
332332 or
333- exists ( SwitchStmt e | e = this .getAnEnclosedStmt ( ) ) and result = "switchVal"
333+ this .getAnEnclosedStmt ( ) instanceof SwitchStmt and result = "switchVal"
334334 or
335- exists ( ForStmt e | e = this .getAnEnclosedStmt ( ) ) and result = "forVal"
335+ this .getAnEnclosedStmt ( ) instanceof ForStmt and result = "forVal"
336336 or
337- exists ( DoStmt e | e = this .getAnEnclosedStmt ( ) ) and result = "doVal"
337+ this .getAnEnclosedStmt ( ) instanceof DoStmt and result = "doVal"
338338 or
339- exists ( WhileStmt e | e = this .getAnEnclosedStmt ( ) ) and result = "whileVal"
339+ this .getAnEnclosedStmt ( ) instanceof WhileStmt and result = "whileVal"
340340 or
341- exists ( GotoStmt e | e = this .getAnEnclosedStmt ( ) ) and result = "gotoVal"
341+ this .getAnEnclosedStmt ( ) instanceof GotoStmt and result = "gotoVal"
342342 or
343- exists ( ContinueStmt e | e = this .getAnEnclosedStmt ( ) ) and result = "continueVal"
343+ this .getAnEnclosedStmt ( ) instanceof ContinueStmt and result = "continueVal"
344344 or
345- exists ( BreakStmt e | e = this .getAnEnclosedStmt ( ) ) and result = "breakVal"
345+ this .getAnEnclosedStmt ( ) instanceof BreakStmt and result = "breakVal"
346346 or
347- exists ( ReturnStmt e | e = this .getAnEnclosedStmt ( ) ) and result = "returnVal"
347+ this .getAnEnclosedStmt ( ) instanceof ReturnStmt and result = "returnVal"
348348 or
349- exists ( SwitchCase e | e = this .getAnEnclosedStmt ( ) ) and result = "caseVal"
349+ this .getAnEnclosedStmt ( ) instanceof SwitchCase and result = "caseVal"
350350 or
351351 exists ( IfStmt s | s = this .getAnEnclosedStmt ( ) and s .hasElse ( ) ) and
352352 result = "elseVal"
0 commit comments