@@ -37,7 +37,7 @@ class ReferencesTest {
37
37
38
38
@ Test def classReferenceCompanion : Unit = {
39
39
code """ class ${m1}Foo ${m2}(x: Any)
40
- object ${m3}Foo ${m4} { val bar = new ${m5}Foo ${m6}( ${m7}Foo ${m8}) } """ .withSource
40
+ | object ${m3}Foo ${m4} { val bar = new ${m5}Foo ${m6}( ${m7}Foo ${m8}) } """ .withSource
41
41
.references(m1 to m2, List (m1 to m2, m5 to m6), withDecl = true )
42
42
.references(m1 to m2, List (m5 to m6), withDecl = false )
43
43
.references(m3 to m4, List (m3 to m4, m7 to m8), withDecl = true )
@@ -50,9 +50,9 @@ class ReferencesTest {
50
50
51
51
@ Test def anonClassTrait : Unit = {
52
52
code """ trait ${m1}Foo ${m2}
53
- object O {
54
- val foo = new ${m3}Foo ${m4} {}
55
- } """ .withSource
53
+ | object O {
54
+ | val foo = new ${m3}Foo ${m4} {}
55
+ | } """ .withSource
56
56
.references(m1 to m2, List (m1 to m2, m3 to m4), withDecl = true )
57
57
.references(m1 to m2, List (m3 to m4), withDecl = false )
58
58
.references(m3 to m4, List (m1 to m2, m3 to m4), withDecl = true )
@@ -170,12 +170,12 @@ class ReferencesTest {
170
170
171
171
val p1 = Project .dependingOn(p0).withSources(
172
172
code """ class B {
173
- val a = new A()
174
- val z = new a.Z()
175
- val y = new z.Y()
176
- val x = new y.X()
177
- x. ${m3}x ${m4}
178
- } """
173
+ | val a = new A()
174
+ | val z = new a.Z()
175
+ | val y = new z.Y()
176
+ | val x = new y.X()
177
+ | x. ${m3}x ${m4}
178
+ | } """
179
179
)
180
180
181
181
withProjects(p0, p1)
@@ -204,12 +204,12 @@ class ReferencesTest {
204
204
@ Test def findReferencesInUntouchedProject : Unit = {
205
205
val p0 = Project .withSources(
206
206
code """ package hello
207
- object A { def ${m1}foo ${m2} = 1 } """
207
+ | object A { def ${m1}foo ${m2} = 1 } """
208
208
)
209
209
210
210
val p1 = Project .dependingOn(p0).withSources(
211
211
tasty """ package hello
212
- object B { def bar = A. ${m3}foo ${m4} } """
212
+ | object B { def bar = A. ${m3}foo ${m4} } """
213
213
)
214
214
215
215
withProjects(p0, p1)
@@ -219,8 +219,8 @@ class ReferencesTest {
219
219
220
220
@ Test def importReference1 : Unit = {
221
221
code """ import ${m1}Foo ${m2}._
222
- object ${m3}Foo ${m4} { def ${m5}bar ${m6}: Int = 0 }
223
- trait Bar { def buzz = ${m7}bar ${m8} } """ .withSource
222
+ | object ${m3}Foo ${m4} { def ${m5}bar ${m6}: Int = 0 }
223
+ | trait Bar { def buzz = ${m7}bar ${m8} } """ .withSource
224
224
225
225
.references(m1 to m2, List (m1 to m2, m3 to m4), withDecl = true )
226
226
.references(m1 to m2, List (m1 to m2), withDecl = false )
@@ -266,7 +266,7 @@ class ReferencesTest {
266
266
267
267
@ Test def importReferenceClassAndCompanion : Unit = {
268
268
code """ object Foo { object ${m1}Bar ${m2}; class ${m3}Bar ${m4} }
269
- trait Buzz { import Foo. ${m5}Bar ${m6} } """ .withSource
269
+ | trait Buzz { import Foo. ${m5}Bar ${m6} } """ .withSource
270
270
.references(m1 to m2, List (m1 to m2, m5 to m6), withDecl = true )
271
271
.references(m1 to m2, List (m5 to m6), withDecl = false )
272
272
.references(m3 to m4, List (m3 to m4, m5 to m6), withDecl = true )
@@ -277,7 +277,7 @@ class ReferencesTest {
277
277
278
278
@ Test def importReferenceWithRename : Unit = {
279
279
code """ object ${m1}Foo ${m2} { object ${m3}Bar ${m4} { object ${m5}Baz ${m6} } }
280
- trait Buzz { import ${m7}Foo ${m8}. ${m9}Bar ${m10}.{ ${m11}Baz ${m12} => ${m13}Quux ${m14}} """ .withSource
280
+ | trait Buzz { import ${m7}Foo ${m8}. ${m9}Bar ${m10}.{ ${m11}Baz ${m12} => ${m13}Quux ${m14}} """ .withSource
281
281
282
282
.references(m1 to m2, List (m1 to m2, m7 to m8), withDecl = true )
283
283
.references(m1 to m2, List (m7 to m8), withDecl = false )
@@ -297,7 +297,7 @@ class ReferencesTest {
297
297
298
298
@ Test def importReferenceClassAndCompanionWithRename : Unit = {
299
299
code """ object ${m1}Foo ${m2} { object ${m3}Bar ${m4}; class ${m5}Bar ${m6} }
300
- trait Buzz { import ${m7}Foo ${m8}.{ ${m9}Bar ${m10} => ${m11}Baz ${m12}} } """ .withSource
300
+ | trait Buzz { import ${m7}Foo ${m8}.{ ${m9}Bar ${m10} => ${m11}Baz ${m12}} } """ .withSource
301
301
302
302
.references(m1 to m2, List (m1 to m2, m7 to m8), withDecl = true )
303
303
.references(m1 to m2, List (m7 to m8), withDecl = false )
@@ -315,7 +315,7 @@ class ReferencesTest {
315
315
316
316
@ Test def importReferenceMembers : Unit = {
317
317
code """ object Foo { def ${m1}bar ${m2} = 2; type ${m3}bar ${m4} = fizz; class fizz }
318
- trait Quux { import Foo.{ ${m5}bar ${m6} => ${m7}buzz ${m8}} } """ .withSource
318
+ | trait Quux { import Foo.{ ${m5}bar ${m6} => ${m7}buzz ${m8}} } """ .withSource
319
319
320
320
.references(m1 to m2, List (m1 to m2, m5 to m6, m7 to m8), withDecl = true )
321
321
.references(m1 to m2, List (m5 to m6, m7 to m8), withDecl = false )
@@ -331,7 +331,7 @@ class ReferencesTest {
331
331
withSources(
332
332
code """ object A { class ${m1}B ${m2}; class ${m3}C ${m4} } """ ,
333
333
code """ import A.{ ${m5}B ${m6} => ${m7}B2 ${m8}, ${m9}C ${m10} => ${m11}C2 ${m12}}
334
- class E """
334
+ | class E """
335
335
).references(m1 to m2, List (m1 to m2, m5 to m6, m7 to m8), withDecl = true )
336
336
.references(m1 to m2, List (m5 to m6, m7 to m8), withDecl = false )
337
337
.references(m3 to m4, List (m3 to m4, m9 to m10, m11 to m12), withDecl = true )
0 commit comments