mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
AsmParser: Don't use locationOverride as current location when location from comments is selected
This commit is contained in:
parent
ce4420f857
commit
d23754eafd
@ -97,9 +97,10 @@ public:
|
||||
protected:
|
||||
langutil::SourceLocation currentLocation() const override
|
||||
{
|
||||
if (m_useSourceLocationFrom == UseSourceLocationFrom::Scanner)
|
||||
return ParserBase::currentLocation();
|
||||
return m_locationOverride;
|
||||
if (m_useSourceLocationFrom == UseSourceLocationFrom::LocationOverride)
|
||||
return m_locationOverride;
|
||||
|
||||
return ParserBase::currentLocation();
|
||||
}
|
||||
|
||||
langutil::Token advance() override;
|
||||
|
@ -5,5 +5,5 @@ object "C" {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// ParserError 6913: Call or assignment expected.
|
||||
// ParserError 6913: (65-66): Call or assignment expected.
|
||||
// ParserError 2314: (67-68): Expected end of source but got '}'
|
||||
|
Loading…
Reference in New Issue
Block a user