From 362f2cce4fcd5b56a72007c12326cc96cb21a716 Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Thu, 1 Apr 2010 20:15:59 -0400 Subject: [PATCH] fix some compile errors in standard tasks --- tasks/standard/Compile.scala | 2 ++ tasks/standard/TransitiveCompile.scala | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tasks/standard/Compile.scala b/tasks/standard/Compile.scala index f1f7c2937..59c54292f 100644 --- a/tasks/standard/Compile.scala +++ b/tasks/standard/Compile.scala @@ -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) {} } diff --git a/tasks/standard/TransitiveCompile.scala b/tasks/standard/TransitiveCompile.scala index a82e2f440..54d719224 100644 --- a/tasks/standard/TransitiveCompile.scala +++ b/tasks/standard/TransitiveCompile.scala @@ -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) }