GH-163: Use ID name (including module name) to create EventExpr when possible

The change to the capture-loss test is actually a fix for a bug exposed by the
code change. Previously it wasn't firing the scheduled event because of a failed
name lookup. Now that the lookup has been fixed, the event happens twice.
This commit is contained in:
Tim Wojtulewicz 2022-08-09 13:03:57 -07:00
parent a0a2a18337
commit 687dd05ddb
3 changed files with 8 additions and 2 deletions

View file

@ -1936,9 +1936,13 @@ event:
if ( id->IsDeprecated() )
reporter->Warning("%s", id->GetDeprecationWarning().c_str());
}
$$ = new EventExpr($1, {AdoptRef{}, $3});
$$ = new EventExpr(id->Name(), {AdoptRef{}, $3});
}
else
{
$$ = new EventExpr($1, {AdoptRef{}, $3});
}
}
;