diff options
author | LianaHus <liana@ethdev.com> | 2015-10-15 22:13:52 +0800 |
---|---|---|
committer | LianaHus <liana@ethdev.com> | 2015-10-15 22:13:52 +0800 |
commit | 3871e77946866cdef36147ddd2e6d322f63cea37 (patch) | |
tree | 6e10f0616e2d4f953adcb70d70a75a6ac1039814 | |
parent | 68e126dc7d85854aa1458934122a725e99eb36e0 (diff) | |
download | dexon-solidity-3871e77946866cdef36147ddd2e6d322f63cea37.tar.gz dexon-solidity-3871e77946866cdef36147ddd2e6d322f63cea37.tar.zst dexon-solidity-3871e77946866cdef36147ddd2e6d322f63cea37.zip |
style fixes
-rw-r--r-- | libsolidity/NameAndTypeResolver.cpp | 22 | ||||
-rw-r--r-- | libsolidity/NameAndTypeResolver.h | 10 |
2 files changed, 16 insertions, 16 deletions
diff --git a/libsolidity/NameAndTypeResolver.cpp b/libsolidity/NameAndTypeResolver.cpp index fc83403f..88cd1e2e 100644 --- a/libsolidity/NameAndTypeResolver.cpp +++ b/libsolidity/NameAndTypeResolver.cpp @@ -311,20 +311,20 @@ void NameAndTypeResolver::reportDeclarationError( m_errors.push_back(err); } -void NameAndTypeResolver::reportDeclarationError(SourceLocation _sourceLoction, string const& _description) +void NameAndTypeResolver::reportDeclarationError(SourceLocation _sourceLocation, string const& _description) { auto err = make_shared<Error>(Error::Type::DeclarationError); // todo remove Error? - *err << errinfo_sourceLocation(_sourceLoction) << errinfo_comment(_description); + *err << errinfo_sourceLocation(_sourceLocation) << errinfo_comment(_description); m_errors.push_back(err); } void NameAndTypeResolver::reportFatalDeclarationError( - SourceLocation _sourceLoction, - string _description + SourceLocation _sourceLocation, + string const& _description ) { - reportDeclarationError(_sourceLoction, _description); + reportDeclarationError(_sourceLocation, _description); BOOST_THROW_EXCEPTION(FatalError()); } @@ -511,7 +511,7 @@ string DeclarationRegistrationHelper::currentCanonicalName() const } void DeclarationRegistrationHelper::declarationError( - SourceLocation _sourceLoction, + SourceLocation _sourceLocation, string const& _description, SourceLocation _secondarySourceLocation, string const& _secondaryDescription @@ -519,7 +519,7 @@ void DeclarationRegistrationHelper::declarationError( { auto err = make_shared<Error>(Error::Type::DeclarationError); *err << - errinfo_sourceLocation(_sourceLoction) << + errinfo_sourceLocation(_sourceLocation) << errinfo_comment(_description) << errinfo_secondarySourceLocation( SecondarySourceLocation().append(_secondaryDescription, _secondarySourceLocation) @@ -528,20 +528,20 @@ void DeclarationRegistrationHelper::declarationError( m_errors.push_back(err); } -void DeclarationRegistrationHelper::declarationError(SourceLocation _sourceLoction, string const& _description) +void DeclarationRegistrationHelper::declarationError(SourceLocation _sourceLocation, string const& _description) { auto err = make_shared<Error>(Error::Type::DeclarationError); - *err << errinfo_sourceLocation(_sourceLoction) << errinfo_comment(_description); + *err << errinfo_sourceLocation(_sourceLocation) << errinfo_comment(_description); m_errors.push_back(err); } void DeclarationRegistrationHelper::fatalDeclarationError( - SourceLocation _sourceLoction, + SourceLocation _sourceLocation, string const& _description ) { - declarationError(_sourceLoction, _description); + declarationError(_sourceLocation, _description); BOOST_THROW_EXCEPTION(FatalError()); } diff --git a/libsolidity/NameAndTypeResolver.h b/libsolidity/NameAndTypeResolver.h index 6a196b47..fd939de8 100644 --- a/libsolidity/NameAndTypeResolver.h +++ b/libsolidity/NameAndTypeResolver.h @@ -101,9 +101,9 @@ private: std::string const& _secondaryDescription ); // creates the Declaration error and adds it in the errors list - void reportDeclarationError(SourceLocation _sourceLoction, std::string const& _description); + void reportDeclarationError(SourceLocation _sourceLocation, std::string const& _description); // creates the Declaration error and adds it in the errors list and throws FatalError - void reportFatalDeclarationError(SourceLocation _sourceLoction, std::string _description); + void reportFatalDeclarationError(SourceLocation _sourceLocation, std::string const& _description); // creates the Declaration error and adds it in the errors list void reportTypeError(Error _e); @@ -148,16 +148,16 @@ private: std::string currentCanonicalName() const; // creates the Declaration error and adds it in the errors list void declarationError( - SourceLocation _sourceLoction, + SourceLocation _sourceLocation, std::string const& _description, SourceLocation _secondarySourceLocation, std::string const& _secondaryDescription ); // creates the Declaration error and adds it in the errors list - void declarationError(SourceLocation _sourceLoction, std::string const& _description); + void declarationError(SourceLocation _sourceLocation, std::string const& _description); // creates the Declaration error and adds it in the errors list and throws FatalError - void fatalDeclarationError(SourceLocation _sourceLoction, std::string const& _description); + void fatalDeclarationError(SourceLocation _sourceLocation, std::string const& _description); std::map<ASTNode const*, DeclarationContainer>& m_scopes; Declaration const* m_currentScope; |