@@ -308,45 +308,45 @@ class MetricClass extends Class { |
308 | 308 | } |
309 | 309 |
|
310 | 310 | private string getAUsedHalsteadN1Operator() { |
311 | | - exists(CommaExpr e | e = this.getAnEnclosedExpression()) and result = "comma" |
| 311 | + this.getAnEnclosedExpression() instanceof CommaExpr and result = "comma" |
312 | 312 | or |
313 | | - exists(ReferenceToExpr e | e = this.getAnEnclosedExpression()) and result = "refTo" |
| 313 | + this.getAnEnclosedExpression() instanceof ReferenceToExpr and result = "refTo" |
314 | 314 | or |
315 | | - exists(PointerDereferenceExpr e | e = this.getAnEnclosedExpression()) and result = "dereference" |
| 315 | + this.getAnEnclosedExpression() instanceof PointerDereferenceExpr and result = "dereference" |
316 | 316 | or |
317 | | - exists(CStyleCast e | e = this.getAnEnclosedExpression()) and result = "cCast" |
| 317 | + this.getAnEnclosedExpression() instanceof CStyleCast and result = "cCast" |
318 | 318 | or |
319 | | - exists(StaticCast e | e = this.getAnEnclosedExpression()) and result = "staticCast" |
| 319 | + this.getAnEnclosedExpression() instanceof StaticCast and result = "staticCast" |
320 | 320 | or |
321 | | - exists(ConstCast e | e = this.getAnEnclosedExpression()) and result = "constCast" |
| 321 | + this.getAnEnclosedExpression() instanceof ConstCast and result = "constCast" |
322 | 322 | or |
323 | | - exists(ReinterpretCast e | e = this.getAnEnclosedExpression()) and result = "reinterpretCast" |
| 323 | + this.getAnEnclosedExpression() instanceof ReinterpretCast and result = "reinterpretCast" |
324 | 324 | or |
325 | | - exists(DynamicCast e | e = this.getAnEnclosedExpression()) and result = "dynamicCast" |
| 325 | + this.getAnEnclosedExpression() instanceof DynamicCast and result = "dynamicCast" |
326 | 326 | or |
327 | | - exists(SizeofExprOperator e | e = this.getAnEnclosedExpression()) and result = "sizeofExpr" |
| 327 | + this.getAnEnclosedExpression() instanceof SizeofExprOperator and result = "sizeofExpr" |
328 | 328 | or |
329 | | - exists(SizeofTypeOperator e | e = this.getAnEnclosedExpression()) and result = "sizeofType" |
| 329 | + this.getAnEnclosedExpression() instanceof SizeofTypeOperator and result = "sizeofType" |
330 | 330 | or |
331 | | - exists(IfStmt e | e = this.getAnEnclosedStmt()) and result = "ifVal" |
| 331 | + this.getAnEnclosedStmt() instanceof IfStmt and result = "ifVal" |
332 | 332 | or |
333 | | - exists(SwitchStmt e | e = this.getAnEnclosedStmt()) and result = "switchVal" |
| 333 | + this.getAnEnclosedStmt() instanceof SwitchStmt and result = "switchVal" |
334 | 334 | or |
335 | | - exists(ForStmt e | e = this.getAnEnclosedStmt()) and result = "forVal" |
| 335 | + this.getAnEnclosedStmt() instanceof ForStmt and result = "forVal" |
336 | 336 | or |
337 | | - exists(DoStmt e | e = this.getAnEnclosedStmt()) and result = "doVal" |
| 337 | + this.getAnEnclosedStmt() instanceof DoStmt and result = "doVal" |
338 | 338 | or |
339 | | - exists(WhileStmt e | e = this.getAnEnclosedStmt()) and result = "whileVal" |
| 339 | + this.getAnEnclosedStmt() instanceof WhileStmt and result = "whileVal" |
340 | 340 | or |
341 | | - exists(GotoStmt e | e = this.getAnEnclosedStmt()) and result = "gotoVal" |
| 341 | + this.getAnEnclosedStmt() instanceof GotoStmt and result = "gotoVal" |
342 | 342 | or |
343 | | - exists(ContinueStmt e | e = this.getAnEnclosedStmt()) and result = "continueVal" |
| 343 | + this.getAnEnclosedStmt() instanceof ContinueStmt and result = "continueVal" |
344 | 344 | or |
345 | | - exists(BreakStmt e | e = this.getAnEnclosedStmt()) and result = "breakVal" |
| 345 | + this.getAnEnclosedStmt() instanceof BreakStmt and result = "breakVal" |
346 | 346 | or |
347 | | - exists(ReturnStmt e | e = this.getAnEnclosedStmt()) and result = "returnVal" |
| 347 | + this.getAnEnclosedStmt() instanceof ReturnStmt and result = "returnVal" |
348 | 348 | or |
349 | | - exists(SwitchCase e | e = this.getAnEnclosedStmt()) and result = "caseVal" |
| 349 | + this.getAnEnclosedStmt() instanceof SwitchCase and result = "caseVal" |
350 | 350 | or |
351 | 351 | exists(IfStmt s | s = this.getAnEnclosedStmt() and s.hasElse()) and |
352 | 352 | result = "elseVal" |
|