Generator multiunit tests print what is being analyzed
This commit is contained in:
parent
b3ae80e809
commit
802a492be1
|
@ -86,7 +86,7 @@ func (this *generator) method (key entity.Key) (*llvm.Function, error) {
|
|||
|
||||
ty, exists := this.tree.Types[key.StripMethod()]
|
||||
if !exists {
|
||||
return nil, errNotFound("method " + key.String())
|
||||
return nil, errNotFound("owner of method " + key.String())
|
||||
}
|
||||
|
||||
if method, exists := ty.Methods[key.Method]; exists {
|
||||
|
|
|
@ -40,6 +40,7 @@ func testUnits (
|
|||
// dependencies
|
||||
for index := 0; index < len(dependencies) - 1; index += 2 {
|
||||
address := entity.Address(dependencies[index])
|
||||
test.Log("analyzing", address, "UUID", address.UUID())
|
||||
source := dependencies[index + 1]
|
||||
ast, ok := treeOf(test, address, source, true)
|
||||
if !ok { return }
|
||||
|
@ -61,6 +62,7 @@ func testUnits (
|
|||
|
||||
// main
|
||||
address := entity.Address("main.fspl")
|
||||
test.Log("analyzing MAIN", address, "UUID", address.UUID())
|
||||
ast, ok := treeOf(test, address, main, false)
|
||||
if !ok { return }
|
||||
err := tree.Analyze(address.UUID(), nicknames, ast)
|
||||
|
|
Loading…
Reference in New Issue