mirror of
https://github.com/github/codeql.git
synced 2026-04-22 15:25:18 +02:00
Rust: Fixes based on PR review
This commit is contained in:
@@ -99,7 +99,7 @@ module Impl {
|
||||
*
|
||||
* This is either 1 for prefix operations, or 2 for binary operations.
|
||||
*/
|
||||
final int getNumberOfOperands() { result = count(this.getAnOperand()) }
|
||||
final int getNumberOfOperands() { result = strictcount(this.getAnOperand()) }
|
||||
|
||||
/** Gets an operand of this operation. */
|
||||
Expr getAnOperand() { result = this.getOperand(_) }
|
||||
|
||||
@@ -691,6 +691,8 @@ private module CallExprBaseMatchingInput implements MatchingInputSig {
|
||||
}
|
||||
|
||||
private class OperationAccess extends Access instanceof Operation {
|
||||
OperationAccess() { super.isOverloaded(_, _) }
|
||||
|
||||
override Type getTypeArgument(TypeArgumentPosition apos, TypePath path) {
|
||||
// The syntax for operators does not allow type arguments.
|
||||
none()
|
||||
|
||||
Reference in New Issue
Block a user