Made panic messages in expression-multiplex.go more informative

This commit is contained in:
Sasha Koshka 2024-01-27 09:15:39 +00:00
parent 43130fd0da
commit 8bf3938842
2 changed files with 5 additions and 8 deletions

View File

@ -176,4 +176,3 @@ func (this *generator) generateBlockLoc (block *entity.Block) (llvm.Value, error
return this.generateStatementLoc(block.Steps[lastIndex]) return this.generateStatementLoc(block.Steps[lastIndex])
} }

View File

@ -24,8 +24,7 @@ func (this *generator) generateExpression (expression entity.Expression) (regist
// TODO: some of these could stand to know that they have a choice in // TODO: some of these could stand to know that they have a choice in
// the matter. // the matter.
switch expression := expression.(type) { switch expression := expression.(type) {// these give us an address
// these give us an address
case *entity.Dereference, case *entity.Dereference,
*entity.MemberAccess, *entity.MemberAccess,
*entity.Slice, *entity.Slice,