All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dotty.tools.dotc.sbt.interfaces.IncrementalCallback Maven / Gradle / Ivy

There is a newer version: 3.6.4-RC1-bin-20241220-0bfa1af-NIGHTLY
Show newest version
package dotty.tools.dotc.sbt.interfaces;

import dotty.tools.dotc.util.SourceFile;

import java.util.EnumSet;
import java.nio.file.Path;

/* User code should not implement this interface, it is intended to be a wrapper around xsbti.AnalysisCallback. */
public interface IncrementalCallback {
  default void api(SourceFile sourceFile, xsbti.api.ClassLike classApi) {
  }

  default void startSource(SourceFile sourceFile) {
  }

  default void mainClass(SourceFile sourceFile, String className) {
  }

  default boolean enabled() {
    return false;
  }

  default void usedName(String className, String name, EnumSet useScopes) {
  }

  default void binaryDependency(Path onBinaryEntry, String onBinaryClassName, String fromClassName,
      SourceFile fromSourceFile, xsbti.api.DependencyContext context) {
  }

  default void classDependency(String onClassName, String sourceClassName, xsbti.api.DependencyContext context) {
  }

  default void generatedLocalClass(SourceFile source, Path classFile) {
  }

  default void generatedNonLocalClass(SourceFile source, Path classFile, String binaryClassName,
      String srcClassName) {
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy