Record Class DebugInfo
java.lang.Object
java.lang.Record
org.ek9lang.compiler.ir.support.DebugInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecolumnNumberrecord component.final booleanIndicates whether some other object is "equal to" this one.static DebugInfofrom(CompilableSource compilableSource, IToken token) Create DebugInfo from an ISymbol's source token.final inthashCode()Returns a hash code value for this object.booleanCheck if this debug info represents a valid source location.intReturns the value of thelineNumberrecord component.static DebugInfoCreate DebugInfo with just file and position (no original text).Returns the value of theoriginalTextrecord component.Returns the value of thesourceFilerecord component.Format debug info as IR comment for output.toString()Returns a string representation of this record class.
-
Constructor Details
-
DebugInfo
-
-
Method Details
-
from
Create DebugInfo from an ISymbol's source token. Returns null if the symbol has no source token information. Uses filename only (without path) for portability and consistency with EK9 error reporting. -
of
-
toIRComment
Format debug info as IR comment for output. Example: "// workarea.ek9:12:15" -
isValidLocation
public boolean isValidLocation()Check if this debug info represents a valid source location. -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
sourceFile
Returns the value of thesourceFilerecord component.- Returns:
- the value of the
sourceFilerecord component
-
lineNumber
public int lineNumber()Returns the value of thelineNumberrecord component.- Returns:
- the value of the
lineNumberrecord component
-
columnNumber
public int columnNumber()Returns the value of thecolumnNumberrecord component.- Returns:
- the value of the
columnNumberrecord component
-
originalText
Returns the value of theoriginalTextrecord component.- Returns:
- the value of the
originalTextrecord component
-