fix message order in namespace codegen
This commit is contained in:
@@ -77,7 +77,7 @@ public class NamespaceCodegen {
|
||||
|
||||
}
|
||||
|
||||
public void generate(CompilationErrorHandler errorHandler, Progress progress) {
|
||||
public void generate(CompilationErrorHandler errorHandler, final Progress progress) {
|
||||
ArrayList<Pair<JetFile, Collection<JetDeclaration>>> byFile = new ArrayList<Pair<JetFile, Collection<JetDeclaration>>>();
|
||||
|
||||
for (JetFile file : files) {
|
||||
@@ -96,8 +96,15 @@ public class NamespaceCodegen {
|
||||
for (JetFile file : files) {
|
||||
VirtualFile vFile = file.getVirtualFile();
|
||||
try {
|
||||
String path = vFile != null ? vFile.getPath() : "no_virtual_file/" + file.getName();
|
||||
if(progress != null) progress.log("For source: " + path);
|
||||
final String path = vFile != null ? vFile.getPath() : "no_virtual_file/" + file.getName();
|
||||
if (progress != null) {
|
||||
v.addOptionalDeclaration(new ClassBuilderOnDemand.ClassBuilderCallback() {
|
||||
@Override
|
||||
public void doSomething(@NotNull ClassBuilder classBuilder) {
|
||||
progress.log("For source: " + path);
|
||||
}
|
||||
});
|
||||
}
|
||||
generate(file, multiFile);
|
||||
}
|
||||
catch (ProcessCanceledException e) {
|
||||
|
||||
@@ -2,8 +2,8 @@ OUT Buildfile: build.xml
|
||||
OUT
|
||||
OUT build:
|
||||
OUT [kotlinc] Compiling [[TestData]/hello.kt] => [[Temp]/hello.jar]
|
||||
OUT [kotlinc] LOGGING: For source: [TestData]/hello.kt
|
||||
OUT [kotlinc] LOGGING: Emitting: Hello/namespace.class
|
||||
OUT [kotlinc] LOGGING: For source: [TestData]/hello.kt
|
||||
OUT
|
||||
OUT BUILD SUCCESSFUL
|
||||
OUT Total time: [time]
|
||||
|
||||
Reference in New Issue
Block a user