mirror of https://github.com/sbt/sbt.git
fix some compile errors in standard tasks
This commit is contained in:
parent
6a27b5e42b
commit
362f2cce4f
|
|
@ -163,9 +163,11 @@ private final class APIAnalysisCallback(tracking: UpdateTracking[File]) extends
|
|||
def api(source: File, api: xsbti.api.Source) { apiMap(source) = api }
|
||||
|
||||
def superclassNames = Array()
|
||||
def annotationNames = Array()
|
||||
def superclassNotFound(superclassName: String) {}
|
||||
def beginSource(source: File) {}
|
||||
def endSource(source: File) {}
|
||||
def foundApplication(source: File, className: String) {}
|
||||
def foundSubclass(source: File, subclassName: String, superclassName: String, isModule: Boolean) {}
|
||||
def foundAnnotated(source: File, className: String, annotationName: String, isModule: Boolean) {}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -77,6 +77,7 @@ class StandardCompile(val sources: Task[Set[File]], val classpath: Task[Set[File
|
|||
private var applications = List[String]()
|
||||
private var subclasses = List[DetectedSubclass]()
|
||||
def superclassNames = superClasses
|
||||
def annotationNames = error("TODO")
|
||||
def superclassNotFound(superclassName: String) = error("Superclass not found: " + superclassName)
|
||||
def beginSource(source: File) {}
|
||||
def endSource(source: File)
|
||||
|
|
@ -89,6 +90,7 @@ class StandardCompile(val sources: Task[Set[File]], val classpath: Task[Set[File
|
|||
}
|
||||
}
|
||||
def foundApplication(source: File, className: String) { applications ::= className }
|
||||
def foundAnnotated(source: File, className: String, annotationName: String, isModule: Boolean) { error("TODO") }
|
||||
def foundSubclass(source: File, subclassName: String, superclassName: String, isModule: Boolean): Unit =
|
||||
subclasses ::= DetectedSubclass(source, subclassName, superclassName, isModule)
|
||||
def sourceDependency(dependsOn: File, source: File) { tracking.dependency(source, dependsOn) }
|
||||
|
|
|
|||
Loading…
Reference in New Issue