-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9e23ffe
commit 1317106
Showing
3 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#include "binder/bound_standalone_call.h" | ||
#include "binder/visitor/confidential_statement_analyzer.h" | ||
|
||
using namespace kuzu::common; | ||
|
||
namespace kuzu { | ||
namespace binder { | ||
|
||
void ConfidentialStatementAnalyzer::visitStandaloneCall(const BoundStatement& boundStatement) { | ||
auto& standaloneCall = boundStatement.constCast<BoundStandaloneCall>(); | ||
confidentialStatement = standaloneCall.getOption()->isConfidential; | ||
} | ||
|
||
} // namespace binder | ||
} // namespace kuzu |
20 changes: 20 additions & 0 deletions
20
src/include/binder/visitor/confidential_statement_analyzer.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#pragma once | ||
|
||
#include "binder/bound_statement_visitor.h" | ||
|
||
namespace kuzu { | ||
namespace binder { | ||
|
||
class ConfidentialStatementAnalyzer final : public BoundStatementVisitor { | ||
public: | ||
bool isConfidential() { return confidentialStatement; } | ||
|
||
private: | ||
void visitStandaloneCall(const BoundStatement& boundStatement) override; | ||
|
||
private: | ||
bool confidentialStatement = false; | ||
}; | ||
|
||
} // namespace binder | ||
} // namespace kuzu |