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

Skip to content

Commit a50601c

Browse files
committed
C#: fix typos in comments
1 parent 76cf8d1 commit a50601c

16 files changed

Lines changed: 18 additions & 18 deletions

File tree

csharp/ql/lib/semmle/code/cil/Instructions.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ module Opcodes {
491491

492492
override Callable getTarget() { none() }
493493

494-
/** Gets the function pointer type targetted by this instruction. */
494+
/** Gets the function pointer type targeted by this instruction. */
495495
FunctionPointerType getTargetType() { cil_access(this, result) }
496496

497497
// The number of items popped/pushed from the stack depends on the target of

csharp/ql/lib/semmle/code/csharp/Member.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class Modifiable extends Declaration, @modifiable {
117117
* Note that explicit interface implementations are also considered effectively
118118
* `private` if the implemented interface is itself effectively `private`. Finally,
119119
* `private protected` members are not considered effectively `private`, because
120-
* they can be overriden within the declaring assembly.
120+
* they can be overridden within the declaring assembly.
121121
*/
122122
predicate isEffectivelyPrivate() {
123123
this.isReallyPrivate() or
@@ -143,7 +143,7 @@ class Modifiable extends Declaration, @modifiable {
143143
* considered. Explicit interface implementations are also considered effectively
144144
* `internal` if the implemented interface is itself effectively `internal`. Finally,
145145
* `internal protected` members are not considered effectively `internal`, because
146-
* they can be overriden outside the declaring assembly.
146+
* they can be overridden outside the declaring assembly.
147147
*/
148148
predicate isEffectivelyInternal() {
149149
this.isReallyInternal() or

csharp/ql/lib/semmle/code/csharp/PrintAst.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ class TypeMentionNode extends PrintAstNode, TTypeMentionNode {
265265
final TypeMention getTypeMention() { result = typeMention }
266266

267267
/**
268-
* Gets the `Element` targetted by the `TypeMention`.
268+
* Gets the `Element` targeted by the `TypeMention`.
269269
*/
270270
final Element getTarget() { result = typeMention.getTarget() }
271271

csharp/ql/lib/semmle/code/csharp/Unification.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ module Unification {
672672
* `ConstrainedTypeParameter::unifiable()` can be used.
673673
*
674674
*
675-
* For performance reasons, type paramater constraints inside `t1` and `t2` are
675+
* For performance reasons, type parameter constraints inside `t1` and `t2` are
676676
* *not* taken into account, and there is also no guarantee that the same type
677677
* parameter can be substituted with two different terms. For example, in
678678
*

csharp/ql/lib/semmle/code/csharp/controlflow/internal/ControlFlowGraphImplShared.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ cached
744744
private module Cached {
745745
/**
746746
* If needed, call this predicate from `ControlFlowGraphImplSpecific.qll` in order to
747-
* force a stage-dependency on the `ControlFlowGraphImplShared.qll` stage and therby
747+
* force a stage-dependency on the `ControlFlowGraphImplShared.qll` stage and thereby
748748
* collapsing the two stages.
749749
*/
750750
cached

csharp/ql/lib/semmle/code/csharp/dataflow/internal/DataFlowImplCommon.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ cached
305305
private module Cached {
306306
/**
307307
* If needed, call this predicate from `DataFlowImplSpecific.qll` in order to
308-
* force a stage-dependency on the `DataFlowImplCommon.qll` stage and therby
308+
* force a stage-dependency on the `DataFlowImplCommon.qll` stage and thereby
309309
* collapsing the two stages.
310310
*/
311311
cached

csharp/ql/lib/semmle/code/csharp/dispatch/OverridableCallable.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import csharp
99
* A callable that can be overridden or implemented.
1010
*
1111
* Unlike the class `Overridable`, this class only includes callables that
12-
* can actually be overriden/implemented.
12+
* can actually be overridden/implemented.
1313
*/
1414
class OverridableCallable extends Callable, Overridable {
1515
OverridableCallable() { this.isOverridableOrImplementable() }

csharp/ql/lib/semmle/code/csharp/exprs/Expr.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ class ThrowExpr extends Expr, ThrowElement, @throw_expr {
937937
* For example, `new ArgumentException("i")` in
938938
* `return i != 0 ? 1 / i : throw new ArgumentException("i");`.
939939
*/
940-
// overriden for more precise qldoc
940+
// overridden for more precise qldoc
941941
override Expr getExpr() { result = ThrowElement.super.getExpr() }
942942

943943
override string getAPrimaryQlClass() { result = "ThrowExpr" }
@@ -1173,7 +1173,7 @@ class WithExpr extends Expr, @with_expr {
11731173
/** Gets the expression on which this `with` is called. */
11741174
Expr getExpr() { result = this.getChild(0) }
11751175

1176-
/** Gets the clone method of the `record` that is targetted by this `with` expression. */
1176+
/** Gets the clone method of the `record` that is targeted by this `with` expression. */
11771177
RecordCloneMethod getCloneMethod() {
11781178
result = this.getExpr().getType().(RecordClass).getCloneMethod()
11791179
}

csharp/ql/src/definitions.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ private class AccessUse extends Access, Use {
105105
not this.(PropertyAccess).getParent().getParent() instanceof Property // Property initializer
106106
}
107107

108-
/** Gets the qualifier of this acccess, if any. */
108+
/** Gets the qualifier of this access, if any. */
109109
private Expr getFormatQualifier() {
110110
result = this.(QualifiableExpr).getQualifier() and
111111
not result.isImplicit()

csharp/ql/src/experimental/Security Features/backdoor/PotentialTimeBomb.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class DateTimeStruct extends Struct {
7070
}
7171

7272
/**
73-
* Holds if the Callable is used for DateTime comparision
73+
* Holds if the Callable is used for DateTime comparison
7474
*/
7575
Callable getAComparisonCallable() {
7676
(result = this.getAnOperator() or result = this.getAMethod()) and

0 commit comments

Comments
 (0)