mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-08-03 13:11:32 +00:00
bytecode: enhance symbol table with both slab and symbol name
This commit is contained in:
@ -3,7 +3,7 @@ package gay.pizza.pork.frontend
|
||||
import gay.pizza.pork.tokenizer.SourceIndex
|
||||
|
||||
data class SourceLocation(val form: String, val filePath: String, val index: SourceIndex? = null) {
|
||||
val commonFriendlyName: String by lazy { "$form $filePath" }
|
||||
val commonLocationIdentity: String by lazy { "$form $filePath" }
|
||||
|
||||
fun withSourceIndex(index: SourceIndex): SourceLocation =
|
||||
SourceLocation(form, filePath, index)
|
||||
|
Reference in New Issue
Block a user