Skip to content

Commit eb4fdbd

Browse files
committed
Fix some scaladoc in compiler
1 parent be16a7b commit eb4fdbd

File tree

7 files changed

+5
-7
lines changed

7 files changed

+5
-7
lines changed

compiler/src/dotty/tools/backend/jvm/scalaPrimitives.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class DottyPrimitives(ictx: Context) {
4646
* operation is an array get/set, we inspect the type of the receiver
4747
* to demux the operation.
4848
*
49-
* @param fun The method symbol
49+
* @param app The method symbol
5050
* @param tpe The type of the receiver object. It is used only for array
5151
* operations
5252
*/

compiler/src/dotty/tools/dotc/cc/SepCheck.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ class SepCheck(checker: CheckCaptures.CheckerAPI) extends tpd.TreeTraverser:
455455

456456
/** Report a failure where a capability is consumed in a loop.
457457
* @param ref the capability
458-
* @param loc the position where the capability was consumed
458+
* @param pos the position where the capability was consumed
459459
*/
460460
def consumeInLoopError(ref: Capability, pos: SrcPos)(using Context): Unit =
461461
report.error(

compiler/src/dotty/tools/dotc/cc/Synthetics.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ object Synthetics:
5858

5959
/** Transform the type of a method either to its type under capture checking
6060
* or back to its previous type.
61-
* @param sym The method to transform @pre needsTransform(sym) must hold.
61+
* @param symd The method to transform @pre needsTransform(sym) must hold.
6262
* @param info The possibly already mapped info of sym
6363
*/
6464
def transform(symd: SymDenotation, info: Type)(using Context): SymDenotation =

compiler/src/dotty/tools/dotc/inlines/Inlines.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ object Inlines:
9696
* inline depth is exceeded.
9797
*
9898
* @param tree The call to inline
99-
* @param pt The expected type of the call.
10099
* @return An `Inlined` node that refers to the original call and the inlined bindings
101100
* and body that replace it.
102101
*/

compiler/src/dotty/tools/dotc/transform/AccessProxies.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ abstract class AccessProxies {
132132
* access with a reference to the accessor.
133133
*
134134
* @param reference The original reference to the non-public symbol
135-
* @param onLHS The reference is on the left-hand side of an assignment
136135
*/
137136
def useAccessor(reference: RefTree)(using Context): Tree = {
138137
val accessed = reference.symbol.asTerm

compiler/src/dotty/tools/dotc/transform/init/Objects.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ class Objects(using Context @constructorOnly):
498498
/**
499499
* The main procedure for searching through the outer chain
500500
* @param target The symbol to search for if `bySymbol = true`; otherwise the method symbol of the target environment
501-
* @param scopeSet The set of scopes as starting point
501+
* @param envSet The set of scopes as starting point
502502
* @return The scopes that contains symbol `target` or whose method is `target`,
503503
* and the value for `C.this` where C is the enclosing class of the result scopes
504504
*/

compiler/src/dotty/tools/dotc/transform/patmat/Space.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ object SpaceEngine {
304304

305305
/** Is this an `'{..}` or `'[..]` irrefutable quoted patterns?
306306
* @param body The body of the quoted pattern
307-
* @param bodyPt The scrutinee body type
307+
* @param pt The scrutinee body type
308308
*/
309309
def isIrrefutableQuotePattern(pat: QuotePattern, pt: Type)(using Context): Boolean = {
310310
if pat.body.isType then pat.bindings.isEmpty && pt =:= pat.tpe

0 commit comments

Comments
 (0)