implement shortcut for API equality checking, fixes #18

This commit is contained in:
Mark Harrah 2011-06-01 02:19:46 -04:00
parent cb2c37afa0
commit a152f157f5
3 changed files with 12 additions and 3 deletions

View File

@ -1,7 +1,16 @@
Source
compilation: Compilation
hash: Byte*
api: SourceAPI
SourceAPI
packages : Package*
definitions: Definition*
Compilation
startTime: Long
target: String
Package
name: String

View File

@ -23,5 +23,5 @@ public interface AnalysisCallback
/** Called after the source at the given location has been processed. */
public void endSource(File sourcePath);
/** 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);
}

View File

@ -10,7 +10,7 @@ class TestCallback extends AnalysisCallback
val sourceDependencies = new ArrayBuffer[(File, File)]
val binaryDependencies = new ArrayBuffer[(File, String, 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 }
@ -19,5 +19,5 @@ class TestCallback extends AnalysisCallback
def generatedClass(source: File, module: File) { products += ((source, module)) }
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)) }
}