mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
enumchecks not working
This commit is contained in:
@@ -236,6 +236,13 @@ private:
|
||||
mutable std::unique_ptr<std::string const> sourceMapping;
|
||||
mutable std::unique_ptr<std::string const> runtimeSourceMapping;
|
||||
};
|
||||
enum State {
|
||||
Empty,
|
||||
SourcesSet,
|
||||
ParsingSuccessful,
|
||||
AnalysisSuccessful,
|
||||
CompilationSuccessful
|
||||
};
|
||||
|
||||
/// Loads the missing sources from @a _ast (named @a _path) using the callback
|
||||
/// @a m_readFile and stores the absolute paths of all imports in the AST annotations.
|
||||
@@ -276,7 +283,6 @@ private:
|
||||
/// list of path prefix remappings, e.g. mylibrary: github.com/ethereum = /usr/local/ethereum
|
||||
/// "context:prefix=target"
|
||||
std::vector<Remapping> m_remappings;
|
||||
bool m_success;
|
||||
std::map<std::string const, Source> m_sources;
|
||||
std::shared_ptr<GlobalContext> m_globalContext;
|
||||
std::map<ASTNode const*, std::shared_ptr<DeclarationContainer>> m_scopes;
|
||||
@@ -285,6 +291,7 @@ private:
|
||||
std::string m_formalTranslation;
|
||||
ErrorList m_errors;
|
||||
bool m_metadataLiteralSources = false;
|
||||
State m_stackState = Empty;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user