Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d46848e

Browse files
committed
C#: Make Annotations module private. Update comments.
1 parent 64534d4 commit d46848e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

csharp/ql/src/semmle/code/csharp/AnnotatedType.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import csharp
1010

11-
module Annotations {
11+
private module Annotations {
1212
private newtype TAnnotation =
1313
TDisabledNullability() or
1414
TNotApplicableNullability() or

csharp/ql/src/semmle/code/csharp/Callable.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ class Callable extends DotNet::Callable, Parameterizable, ExprOrStmtParent, @cal
2525
/** Gets the annotated return type of this callable. */
2626
final AnnotatedType getAnnotatedReturnType() { result.appliesTo(this) }
2727

28-
/** Holds if this callable returns a `ref`. */
28+
/** DEPRECATED: Use `getAnnotatedReturnType().isRef()` instead. */
2929
deprecated predicate returnsRef() {
3030
this.getAnnotatedReturnType().isRef()
3131
}
3232

33-
/** Holds if this callable returns a `ref readonly`. */
33+
/** DEPRECATED: Use `getAnnotatedReturnType().isReadonlyRef()` instead. */
3434
deprecated predicate returnsRefReadonly() {
3535
this.getAnnotatedReturnType().isReadonlyRef()
3636
}

0 commit comments

Comments
 (0)