bytecode: enhance symbol table with both slab and symbol name

This commit is contained in:
alex committed 2023-11-21 23:27:21 -08:00
1 parent 6211ad4ff1
commit 76290a401a
9 files changed
+20 -12

No files matched your search

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