MCPcopy Create free account
hub / github.com/argotorg/solidity / formatSourceLocation

Function formatSourceLocation

libsolidity/interface/StandardCompiler.cpp:91–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91Json formatSourceLocation(SourceLocation const* location)
92{
93 if (!location || !location->sourceName)
94 return Json();
95
96 Json sourceLocation;
97 sourceLocation["file"] = *location->sourceName;
98 sourceLocation["start"] = location->start;
99 sourceLocation["end"] = location->end;
100 return sourceLocation;
101}
102
103Json formatSecondarySourceLocation(SecondarySourceLocation const* _secondaryLocation)
104{

Callers 4

formatErrorWithExceptionFunction · 0.85
dispenseLocationCommentFunction · 0.85
formatDebugDataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected