aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libsolidity/NameAndTypeResolver.cpp22
-rw-r--r--libsolidity/NameAndTypeResolver.h10
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;