-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
df8b971
commit 7884509
Showing
4 changed files
with
49 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
internal/zinc-testing/src/main/scala/xsbti/TestSourceInfo.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Zinc - The incremental compiler for Scala. | ||
* Copyright Scala Center, Lightbend, and Mark Harrah | ||
* | ||
* Licensed under Apache License 2.0 | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* See the NOTICE file distributed with this work for | ||
* additional information regarding copyright ownership. | ||
*/ | ||
|
||
package xsbti | ||
|
||
import xsbti.compile.analysis.SourceInfo | ||
|
||
class TestSourceInfo extends SourceInfo { | ||
|
||
override def getReportedProblems: Array[Problem] = Array.empty[Problem] | ||
|
||
override def getUnreportedProblems: Array[Problem] = Array.empty[Problem] | ||
|
||
override def getMainClasses: Array[String] = Array.empty[String] | ||
} |
24 changes: 24 additions & 0 deletions
24
internal/zinc-testing/src/main/scala/xsbti/TestSourceInfos.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Zinc - The incremental compiler for Scala. | ||
* Copyright Scala Center, Lightbend, and Mark Harrah | ||
* | ||
* Licensed under Apache License 2.0 | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* See the NOTICE file distributed with this work for | ||
* additional information regarding copyright ownership. | ||
*/ | ||
|
||
package xsbti | ||
|
||
import xsbti.compile.analysis.{ ReadSourceInfos, SourceInfo } | ||
|
||
import java.util | ||
|
||
class TestSourceInfos extends ReadSourceInfos { | ||
|
||
override def get(sourceFile: VirtualFileRef): SourceInfo = new TestSourceInfo | ||
|
||
override def getAllSourceInfos: util.Map[VirtualFileRef, SourceInfo] = | ||
new util.HashMap[VirtualFileRef, SourceInfo]() | ||
} |