Skip to content

Commit 65acddf

Browse files
committed
adapt to cleardep
1 parent b2b77b5 commit 65acddf

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/org/sugarj/AbstractBaseProcessor.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010

1111
import org.spoofax.interpreter.terms.IStrategoTerm;
1212
import org.strategoxt.HybridInterpreter;
13-
import org.sugarj.cleardep.CompilationUnit;
13+
import org.sugarj.cleardep.build.Builder;
14+
import org.sugarj.cleardep.stamp.Stamper;
1415
import org.sugarj.common.ATermCommands;
1516
import org.sugarj.common.FileCommands;
1617
import org.sugarj.common.Log;
@@ -44,7 +45,8 @@ public Set<Path> compile(
4445
Path outFile,
4546
String source,
4647
Path bin,
47-
CompilationUnit mod,
48+
Builder<?,?> mod,
49+
Stamper stamper,
4850
List<Path> path,
4951
Set<Path> deferredSourceFilesForSourceFile
5052
) throws IOException, ClassNotFoundException, SourceCodeException {
@@ -57,7 +59,7 @@ public Set<Path> compile(
5759

5860
if (!source.isEmpty()) {
5961
FileCommands.writeToFile(outFile, source);
60-
mod.addGeneratedFile(outFile);
62+
mod.generates(outFile, stamper);
6163
outSourceFiles.add(outFile);
6264
}
6365

0 commit comments

Comments
 (0)