The location of byte byte of the value of literal (a string literal node from
compiler_get_nodes); byte == value.count is the end of the value. ok is false when the
literal's source cannot be read again, or does not decode to the node's value (a string the
compiler built rather than read): the location is then where the literal starts.
location_of_byte :: (
literal: *Code_Literal,
byte: int
) -> (Source_Code_Location, ok: bool)
The location of byte byte of the value of literal (a string literal node from
compiler_get_nodes); byte == value.count is the end of the value. ok is false when the
literal's source cannot be read again, or does not decode to the node's value (a string the
compiler built rather than read): the location is then where the literal starts.
Parameters
- literal: *Code_Literal
- byte: int
Returns
- Source_Code_Location
- ok: bool