Warning has a fileURI which may or may not be different to where the CompiledContract is implemented, so the Warning's fileURI should be prioritised. If it is None then use the fileURI in Ast.Contract's SourceIndex. If both are None then find the fileURI where the Ast.Contract's type name is implemented.
Warning
has afileURI
which may or may not be different to where theCompiledContract
is implemented, so theWarning
'sfileURI
should be prioritised. If it isNone
then use thefileURI
inAst.Contract
'sSourceIndex
. If both areNone
then find thefileURI
where theAst.Contract
's type name is implemented.For details see the attached issue 1096.