bytecode: enhance symbol table with both slab and symbol name

This commit is contained in:
2023-11-21 23:27:21 -08:00
parent 6211ad4ff1
commit 76290a401a
9 changed files with 20 additions and 12 deletions

View File

@ -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)