mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Use separate instances of the stateless DocStringTagParser during analysis.
This commit is contained in:
parent
33c12e2195
commit
17eeef6369
@ -475,10 +475,12 @@ bool CompilerStack::analyze()
|
|||||||
|
|
||||||
resolver.warnHomonymDeclarations();
|
resolver.warnHomonymDeclarations();
|
||||||
|
|
||||||
|
{
|
||||||
DocStringTagParser docStringTagParser(m_errorReporter);
|
DocStringTagParser docStringTagParser(m_errorReporter);
|
||||||
for (Source const* source: m_sourceOrder)
|
for (Source const* source: m_sourceOrder)
|
||||||
if (source->ast && !docStringTagParser.parseDocStrings(*source->ast))
|
if (source->ast && !docStringTagParser.parseDocStrings(*source->ast))
|
||||||
noErrors = false;
|
noErrors = false;
|
||||||
|
}
|
||||||
|
|
||||||
// Requires DocStringTagParser
|
// Requires DocStringTagParser
|
||||||
for (Source const* source: m_sourceOrder)
|
for (Source const* source: m_sourceOrder)
|
||||||
@ -490,10 +492,13 @@ bool CompilerStack::analyze()
|
|||||||
if (source->ast && !declarationTypeChecker.check(*source->ast))
|
if (source->ast && !declarationTypeChecker.check(*source->ast))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
{
|
||||||
// Requires DeclarationTypeChecker to have run
|
// Requires DeclarationTypeChecker to have run
|
||||||
|
DocStringTagParser docStringTagParser(m_errorReporter);
|
||||||
for (Source const* source: m_sourceOrder)
|
for (Source const* source: m_sourceOrder)
|
||||||
if (source->ast && !docStringTagParser.validateDocStringsUsingTypes(*source->ast))
|
if (source->ast && !docStringTagParser.validateDocStringsUsingTypes(*source->ast))
|
||||||
noErrors = false;
|
noErrors = false;
|
||||||
|
}
|
||||||
|
|
||||||
// Next, we check inheritance, overrides, function collisions and other things at
|
// Next, we check inheritance, overrides, function collisions and other things at
|
||||||
// contract or function level.
|
// contract or function level.
|
||||||
|
Loading…
Reference in New Issue
Block a user