Interface SourceLineProvider

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface SourceLineProvider
Provides source line content for error display formatting. Used to retrieve the actual source code line when displaying visual error messages in Rust/Elm style.
  • Method Summary

    Modifier and Type
    Method
    Description
    getSourceLine(String fileName, int lineNumber)
    Get the source line content for a given file and line number.
  • Method Details

    • getSourceLine

      String getSourceLine(String fileName, int lineNumber)
      Get the source line content for a given file and line number.
      Parameters:
      fileName - The source file name (may be short name or full path)
      lineNumber - The 1-based line number
      Returns:
      The line content, or empty string if unavailable