Skip to content

Commit 39ebcbf

Browse files
committed
Remove training whitespaces in scala3doc-testcases
1 parent b57c215 commit 39ebcbf

17 files changed

+56
-56
lines changed

scala3doc-testcases/src/tests/FilterTest.scala

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ trait FilterTestBaseTrait:
77
private def privateDefInheritedTrait(a: Int): String = ???
88
/** doc */
99
def publicDefInheritedTrait(a: Int): String = ???
10-
10+
1111
/** doc */
1212
object PublicObjectInheritedTrait
1313
/** doc */
@@ -39,7 +39,7 @@ class FilterTestBase:
3939
private def privateDefInherited(a: Int): String = ???
4040
/** doc */
4141
def publicDefInherited(a: Int): String = ???
42-
42+
4343
/** doc */
4444
object PublicObjectInherited
4545
/** doc */
@@ -51,14 +51,14 @@ class FilterTestBase:
5151
private val privateValInherited = 344
5252
/** doc */
5353
val publicValInherited = 567
54-
54+
5555
/** doc */
5656
protected type protectedTypeInherited = 123
5757
/** doc */
5858
private type privateTypeInherited = 344
5959
/** doc */
6060
type publicTypeInherited = 567
61-
61+
6262
/** doc */
6363
protected given Set[String | Int] = Set(1, "ala")
6464
/** doc */
@@ -87,34 +87,34 @@ class FilterTest extends FilterTestBase with FilterTestBaseTrait:
8787
object PublicObject
8888
/** doc */
8989
protected object ProtectedObject
90-
90+
9191
/** doc */
9292
protected def protectetDef(a: B): String = ???
9393
/** doc */
9494
private def privateDef(a: C): String = ???
9595
/** doc */
9696
def publicDef(a: D): FilterTest = ???
97-
97+
9898

9999
/** doc */
100100
protected val protectetVal = 123
101101
/** doc */
102102
private val privateVal= 344
103103
/** doc */
104104
val publicVal = 567
105-
105+
106106
/** doc */
107107
protected type protectedType = 123
108108
/** doc */
109109
private type privateType= 344
110110
/** doc */
111111
type publicType = 567
112-
112+
113113
/** doc */
114114
protected given Seq[String | Int | Double] = List(1)
115115
/** doc */
116116
given List[String] = "ula" :: Nil
117-
117+
118118
/** doc */
119119
given namedList as List[String] = "ula" :: Nil
120120
/** doc */
@@ -124,4 +124,4 @@ extension (e: FilterTest):
124124
def extensionMethod(name: FilterTest): FilterTest = ???
125125

126126
extension (e: FilterTestBase):
127-
def extensionMethodBase(name: FilterTest): FilterTest = ???
127+
def extensionMethodBase(name: FilterTest): FilterTest = ???

scala3doc-testcases/src/tests/classSignatureTestSource.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ import example.level2.Documentation
88

99
abstract class Documentation[T, A <: Int, B >: String, -X, +Y](c1: String, val c2: List[T]) extends Seq[T] with Product with Serializable
1010
{
11-
def this(ac: String)
11+
def this(ac: String)
1212
= this(ac, Nil)
1313

14-
def this()
14+
def this()
1515
= this("", Nil)
1616

17-
def this(x: T)
17+
def this(x: T)
1818
= this()
1919

2020
class innerDocumentationClass

scala3doc-testcases/src/tests/companionObjectSignatures.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ case class CaseClass(parameterOfClassConstructor: String)
99
= ???
1010
def methodInClass1(): String
1111
= ???
12-
12+
1313
def methodInClass2(): CaseClass
1414
= ???
1515
}
@@ -21,7 +21,7 @@ case object CaseClass
2121

2222
def methodInCompanion1(): String
2323
= ???
24-
24+
2525
def methodInCompanion2(): CaseClass
2626
= ???
2727
}

scala3doc-testcases/src/tests/extensionMethodSignatures.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ class ClassOne
66
// Commented cases won't work for now
77
// extension ClassTwoOps on (c: ClassTwo):
88
// def getA() = c.a
9-
extension (c: ClassTwo)
9+
extension (c: ClassTwo)
1010
def getB(): String
1111
= c.b
12-
13-
extension (c: ClassTwo)
12+
13+
extension (c: ClassTwo)
1414
def getGivenParams(a: Int, b: Int, d: Int)(e: String): Int
1515
= 56
1616

17-
extension (c: ClassTwo)
17+
extension (c: ClassTwo)
1818
def |||:(a: Int, b: Int, d: Int)(e: String): Int
1919
= 56
2020

21-
extension (b: Int)
21+
extension (b: Int)
2222
def secondGroup(): String
2323
= ???
2424

scala3doc-testcases/src/tests/fieldsSignatures.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package fieldsSignatures
33

44
case class A(cA: String, var cB: Int)
55
{
6-
val A: Int
6+
val A: Int
77
= 1
88
val B: Int
99
= 2
@@ -36,6 +36,6 @@ abstract class D2 extends C
3636

3737
object Documentation
3838
{
39-
val valInsideDocObject: Nothing
39+
val valInsideDocObject: Nothing
4040
= ???
4141
}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
package tests.genericMethods
22

33
class Types:
4-
def orTypes(base: Int | String, nested: List[Int | Double] | Seq[String]): Unit
4+
def orTypes(base: Int | String, nested: List[Int | Double] | Seq[String]): Unit
55
= ???
6-
def andTypes(base: Int & String, nested: List[Int & Double] & Seq[String]): Unit
6+
def andTypes(base: Int & String, nested: List[Int & Double] & Seq[String]): Unit
77
= ???
8-
9-
def mixedAndAndOr(base: Int & String, nested: List[Int | Double] & Seq[String]): Unit
8+
9+
def mixedAndAndOr(base: Int & String, nested: List[Int | Double] & Seq[String]): Unit
1010
= ???
1111

12-
def literal(i: 1, d: 3.3, c: 'c'): 34
12+
def literal(i: 1, d: 3.3, c: 'c'): 34
1313
= 34
14-
15-
def byName(a: => Int, b: => String | Int): Unit
14+
15+
def byName(a: => Int, b: => String | Int): Unit
1616
= ???

scala3doc-testcases/src/tests/genericSignatures.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class D[T]
66

77
class D2[T]()
88

9-
class DD[+T]
9+
class DD[+T]
1010

1111
class A
1212

scala3doc-testcases/src/tests/implicitMembers.scala

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ class OuterClass:
77

88
object ImplicitMemberTarget:
99
extension (a: ImplicitMemberTarget):
10-
def extensionFromCompanion: String =
10+
def extensionFromCompanion: String =
1111
"ImplicitMemberTarget"
12-
13-
// does not work
12+
13+
// does not work
1414
extension (a: ImplicitMemberTarget):
15-
def extensionFromOuterClass: String =
16-
"ImplicitMemberTarget"
15+
def extensionFromOuterClass: String =
16+
"ImplicitMemberTarget"
1717

1818
extension (a: OuterClass#ImplicitMemberTarget):
19-
def extensionFromPackage: String =
20-
"ImplicitMemberTarget"
19+
def extensionFromPackage: String =
20+
"ImplicitMemberTarget"

scala3doc-testcases/src/tests/modifiersSignatureTestSource.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ abstract class Methods()
2121

2222
inline def inlineMethod(): Unit
2323
= Unit
24-
24+
2525
implicit def toImplicitString(): String
2626
= "asd"
2727
}

scala3doc-testcases/src/tests/nested.scala

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
package tests.nested
22

3-
class A
3+
class A
44
{
5-
object B
5+
object B
66
{
77
def bb(): Int
88
= 123
9-
val a: Double
9+
val a: Double
1010
= 0.3
1111
}
1212

13-
class C
13+
class C
1414
{
1515
def cc: Int
1616
= 123
@@ -22,17 +22,17 @@ class A
2222
}
2323
}
2424

25-
object R
25+
object R
2626
{
27-
object B
27+
object B
2828
{
2929
def bb(): Int
3030
= 123
31-
val a: Double
31+
val a: Double
3232
= 0.3
3333
}
3434

35-
class C
35+
class C
3636
{
3737
def cc: Int
3838
= 123
@@ -50,7 +50,7 @@ class X
5050
}
5151

5252
// bug found in dotty code, still fails with type
53-
sealed trait ErrorKind
53+
sealed trait ErrorKind
5454
object ErrorKind
5555
{
5656
// This below produce some strange type

scala3doc-testcases/src/tests/objectSignatures.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ object Base
1616
object A2 extends A[String] with C
1717

1818
// We are not going to add final below
19-
// final object B
19+
// final object B
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/** This should be moved to its own project */
22
package object tests {
3-
3+
44
}

scala3doc-testcases/src/tests/packageObjectSymbolSignatures.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ package object packageObjectSymbolSignatures
44
{
55
val property1: String
66
= ???
7-
7+
88
type MyType = String
99

1010
val property2: Int

scala3doc-testcases/src/tests/signatureTestSource.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package tests.signatureTestSource
22
class A
33
class B extends A
4-
class C
4+
class C
55
class D[T]
66
class E[T] extends D[T]
77

@@ -14,7 +14,7 @@ class SignatureTestClass(a: String)
1414
def multipleParams(a: A, b: B): C
1515
= ???
1616
def likeVararg(a: Seq[A]): C
17-
= ???
17+
= ???
1818
def vararg(a: A*): C
1919
= ???
2020
def multipleList(a: A)(b: B): C

scala3doc-testcases/src/tests/typesSignatures.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ class A
88
type C[A, B <: A] = Seq[B]
99
}
1010

11-
trait V
11+
trait V
1212
{
1313
type Ala[+J] <: Int
1414
type Ola[+T]
1515
type X
16-
}
16+
}
1717

1818
class Generic[T]
1919

scala3doc-testcases/src/tests/visibility.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class InClassVisibility()
5151

5252
protected[InClassVisibility] def protectedInClassMethod: Int
5353
= ???
54-
54+
5555
protected[this] def locallyProtectedMethod: Int //unexpected
5656
= ???
5757
}

scala3doc/dotty-docs/docs/css/frontpage.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@import url('https://fonts.googleapis.com/css?family=Lobster&display=swap');
2-
2+
33
body {
44
height: 100%;
55
width: 100%;

0 commit comments

Comments
 (0)