mirror of
https://github.com/github/codeql.git
synced 2026-07-20 18:58:36 +02:00
Rust: Move OperationImpl to internal/OperationImpl.qll.
This commit is contained in:
@@ -2,28 +2,7 @@
|
||||
* Provides classes for operations.
|
||||
*/
|
||||
|
||||
private import rust
|
||||
import internal.OperationImpl
|
||||
private import codeql.rust.elements.internal.ExprImpl::Impl as ExprImpl
|
||||
|
||||
/**
|
||||
* INTERNAL: This module contains the customizable definition of `Operation` and should not
|
||||
* be referenced directly.
|
||||
*/
|
||||
module OperationImpl {
|
||||
/**
|
||||
* An operation, for example `&&`, `+=`, `!` or `*`.
|
||||
*/
|
||||
abstract class Operation extends ExprImpl::Expr {
|
||||
/**
|
||||
* Gets the operator name of this operation, if it exists.
|
||||
*/
|
||||
abstract string getOperatorName();
|
||||
|
||||
/**
|
||||
* Gets an operand of this operation.
|
||||
*/
|
||||
abstract Expr getAnOperand();
|
||||
}
|
||||
}
|
||||
|
||||
final class Operation = OperationImpl::Operation;
|
||||
|
||||
29
rust/ql/lib/codeql/rust/elements/internal/OperationImpl.qll
Normal file
29
rust/ql/lib/codeql/rust/elements/internal/OperationImpl.qll
Normal file
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
* Provides classes for operations.
|
||||
*
|
||||
* INTERNAL: Do not use.
|
||||
*/
|
||||
|
||||
private import rust
|
||||
private import codeql.rust.elements.internal.ExprImpl::Impl as ExprImpl
|
||||
|
||||
/**
|
||||
* INTERNAL: This module contains the customizable definition of `Operation` and should not
|
||||
* be referenced directly.
|
||||
*/
|
||||
module OperationImpl {
|
||||
/**
|
||||
* An operation, for example `&&`, `+=`, `!` or `*`.
|
||||
*/
|
||||
abstract class Operation extends ExprImpl::Expr {
|
||||
/**
|
||||
* Gets the operator name of this operation, if it exists.
|
||||
*/
|
||||
abstract string getOperatorName();
|
||||
|
||||
/**
|
||||
* Gets an operand of this operation.
|
||||
*/
|
||||
abstract Expr getAnOperand();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user