Provide secondary source location for error messages in standard json.

This commit is contained in:
chriseth
2019-07-04 10:54:01 +02:00
parent b837705259
commit d3e542d32c
6 changed files with 65 additions and 14 deletions
+9
View File
@@ -314,6 +314,15 @@ Output Description
"start": 0,
"end": 100
],
// Optional: Further locations (e.g. places of conflicting declarations)
"secondarySourceLocations": [
{
"file": "sourceFile.sol",
"start": 64,
"end": 92,
"message": "Other declaration is here:"
}
],
// Mandatory: Error type, such as "TypeError", "InternalCompilerError", "Exception", etc.
// See below for complete list of types.
"type": "TypeError",