Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
acquamarin committed Feb 14, 2025
1 parent 9e23ffe commit 1317106
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/binder/visitor/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
add_library(
kuzu_binder_visitor
OBJECT
confidential_statement_visitor.cpp
confidential_statement_analyzer.cpp
default_type_solver.cpp
property_collector.cpp)

Expand Down
15 changes: 15 additions & 0 deletions src/binder/visitor/confidential_statement_analyzer.cpp
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 src/include/binder/visitor/confidential_statement_analyzer.h
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

0 comments on commit 1317106

Please sign in to comment.