mirror of https://github.com/sbt/sbt.git
implement shortcut for API equality checking, fixes #18
This commit is contained in:
parent
cb2c37afa0
commit
a152f157f5
|
|
@ -1,7 +1,16 @@
|
||||||
Source
|
Source
|
||||||
|
compilation: Compilation
|
||||||
|
hash: Byte*
|
||||||
|
api: SourceAPI
|
||||||
|
|
||||||
|
SourceAPI
|
||||||
packages : Package*
|
packages : Package*
|
||||||
definitions: Definition*
|
definitions: Definition*
|
||||||
|
|
||||||
|
Compilation
|
||||||
|
startTime: Long
|
||||||
|
target: String
|
||||||
|
|
||||||
Package
|
Package
|
||||||
name: String
|
name: String
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,5 +23,5 @@ public interface AnalysisCallback
|
||||||
/** Called after the source at the given location has been processed. */
|
/** Called after the source at the given location has been processed. */
|
||||||
public void endSource(File sourcePath);
|
public void endSource(File sourcePath);
|
||||||
/** Called when the public API of a source file is extracted. */
|
/** Called when the public API of a source file is extracted. */
|
||||||
public void api(File sourceFile, xsbti.api.Source source);
|
public void api(File sourceFile, xsbti.api.SourceAPI source);
|
||||||
}
|
}
|
||||||
|
|
@ -10,7 +10,7 @@ class TestCallback extends AnalysisCallback
|
||||||
val sourceDependencies = new ArrayBuffer[(File, File)]
|
val sourceDependencies = new ArrayBuffer[(File, File)]
|
||||||
val binaryDependencies = new ArrayBuffer[(File, String, File)]
|
val binaryDependencies = new ArrayBuffer[(File, String, File)]
|
||||||
val products = new ArrayBuffer[(File, File)]
|
val products = new ArrayBuffer[(File, File)]
|
||||||
val apis = new ArrayBuffer[(File, xsbti.api.Source)]
|
val apis = new ArrayBuffer[(File, xsbti.api.SourceAPI)]
|
||||||
|
|
||||||
def beginSource(source: File) { beganSources += source }
|
def beginSource(source: File) { beganSources += source }
|
||||||
|
|
||||||
|
|
@ -19,5 +19,5 @@ class TestCallback extends AnalysisCallback
|
||||||
def generatedClass(source: File, module: File) { products += ((source, module)) }
|
def generatedClass(source: File, module: File) { products += ((source, module)) }
|
||||||
def endSource(source: File) { endedSources += source }
|
def endSource(source: File) { endedSources += source }
|
||||||
|
|
||||||
def api(source: File, sourceAPI: xsbti.api.Source) { apis += ((source, sourceAPI)) }
|
def api(source: File, sourceAPI: xsbti.api.SourceAPI) { apis += ((source, sourceAPI)) }
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue