Added missing const directive.
This commit is contained in:
parent
d7e0beabdf
commit
dd51f2b4fd
@ -23,7 +23,7 @@ class VariableStack
|
|||||||
void push(Layer layer);
|
void push(Layer layer);
|
||||||
void pop();
|
void pop();
|
||||||
|
|
||||||
std::experimental::optional<ast::VariableDeclaration *> findVariableDeclaration(const std::string &variableName);
|
std::experimental::optional<ast::VariableDeclaration *> findVariableDeclaration(const std::string &variableName) const;
|
||||||
bool contains(const ast::VariableDeclaration &variableDeclaration) const;
|
bool contains(const ast::VariableDeclaration &variableDeclaration) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -29,7 +29,7 @@ void VariableStack::pop()
|
|||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
std::experimental::optional<ast::VariableDeclaration *> VariableStack::findVariableDeclaration(const std::string &variableName)
|
std::experimental::optional<ast::VariableDeclaration *> VariableStack::findVariableDeclaration(const std::string &variableName) const
|
||||||
{
|
{
|
||||||
const auto variableDeclarationMatches =
|
const auto variableDeclarationMatches =
|
||||||
[&variableName](const auto &variableDeclaration)
|
[&variableName](const auto &variableDeclaration)
|
||||||
|
Reference in New Issue
Block a user