Interface FromSourceLocation

    • Method Detail

      • getSourceLocation

        default SourceLocation getSourceLocation()
        Gets the source location of a value.
        Returns:
        Returns the source location of the value.
      • compare

        static int compare​(FromSourceLocation s1,
                           FromSourceLocation s2)
        Compares two FromSourceLocations.
        Parameters:
        s1 - the first FromSourceLocation to compare.
        s2 - the second FromSourceLocation to compare.
        Returns:
        the value 0 if s1 == s2; a value less than 0 if s1 < s2; and a value greater than 0 if s1 > s2.