struct
Cradare2::Lines::SourceLocation
- Cradare2::Lines::SourceLocation
- Struct
- Value
- Object
Overview
Represents a source location in a Crystal codebase.
Defined in:
cradare2/lines/source_location.crConstructors
Instance Method Summary
-
#==(other : SourceLocation) : Bool
Equality check based on file, line, and column.
-
#basename : String
Returns the base file name (e.g.
- #column : Int32
- #file : String
- #line : Int32
-
#normalized_file : String
Returns the normalized file path using forward slashes.
-
#normalized_path : String
Alias for normalized_file
- #source_code : String | Nil
-
#to_s(io : IO) : Nil
Formats as
file:lineorfile:line:column.