Merge pull request #1250 from gkossakowski/namehashing-cleanup

Move NameHashing from incremental to api subproject.
This commit is contained in:
Grzegorz Kossakowski 2014-04-16 00:18:27 +02:00
commit d27a699715
3 changed files with 7 additions and 5 deletions

View File

@ -1,4 +1,4 @@
package sbt.inc
package xsbt.api
import xsbti.api.SourceAPI
import xsbti.api.Definition
@ -6,7 +6,10 @@ import xsbti.api.DefinitionType
import xsbti.api.ClassLike
import xsbti.api._internalOnly_NameHash
import xsbti.api._internalOnly_NameHashes
import xsbt.api.Visit
import xsbti.api.DefinitionType.ClassDef
import xsbti.api.DefinitionType.Module
import xsbti.api.DefinitionType.PackageModule
import xsbti.api.DefinitionType.Trait
/**
* A class that computes hashes for each group of definitions grouped by a simple name.

View File

@ -1,8 +1,7 @@
package sbt.inc
package xsbt.api
import org.junit.runner.RunWith
import xsbti.api._
import xsbt.api.HashAPI
import org.specs2.mutable.Specification
import org.specs2.runner.JUnitRunner

View File

@ -154,7 +154,7 @@ private final class AnalysisCallback(internalMap: File => Option[File], external
if (APIUtil.isScalaSourceName(sourceFile.getName) && APIUtil.hasMacro(source)) macroSources += sourceFile
publicNameHashes(sourceFile) = {
if (nameHashing)
(new NameHashing).nameHashes(source)
(new xsbt.api.NameHashing).nameHashes(source)
else
emptyNameHashes
}