Interface FileIndex

All Known Implementing Classes:
FileIndexImpl

public interface FileIndex
  • Method Summary

    Modifier and Type
    Method
    Description
    getFile(int fileID)
     
    int
    getFileID(SourceFile sourceFile)
    Returns an arbitrary file ID for use this compilation context, or generates one if missing.
    default Span
    getLineSpan(int fileId, int lineNo)
     
  • Method Details

    • getFileID

      int getFileID(SourceFile sourceFile)
      Returns an arbitrary file ID for use this compilation context, or generates one if missing.
      Parameters:
      sourceFile - The file to retrieve the ID for.
      Returns:
      A file ID unique to the given sourceFile.
    • getFile

      SourceFile getFile(int fileID)
    • getLineSpan

      default Span getLineSpan(int fileId, int lineNo)