diff --git a/rust/ql/lib/codeql/rust/elements/Operation.qll b/rust/ql/lib/codeql/rust/elements/Operation.qll index 26486686cb2..b3615bddb33 100644 --- a/rust/ql/lib/codeql/rust/elements/Operation.qll +++ b/rust/ql/lib/codeql/rust/elements/Operation.qll @@ -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; diff --git a/rust/ql/lib/codeql/rust/elements/internal/OperationImpl.qll b/rust/ql/lib/codeql/rust/elements/internal/OperationImpl.qll new file mode 100644 index 00000000000..7b2d1a9d62e --- /dev/null +++ b/rust/ql/lib/codeql/rust/elements/internal/OperationImpl.qll @@ -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(); + } +}