Skip to content

Commit

Permalink
fix: fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
denglong committed Dec 12, 2023
1 parent a23ce51 commit 8a4f0ec
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions zetasql/parser/parse_tree_manual.h
Original file line number Diff line number Diff line change
Expand Up @@ -4671,14 +4671,17 @@ class ASTDropUserStatement final : public ASTDdlStatement {
bool is_if_exists_ = false;
};

class ASTCreateUserStatement final : public ASTCreateTableStmtBase {
class ASTCreateUserStatement final : public ASTCreateStatement {
public:
static constexpr ASTNodeKind kConcreteNodeKind =
AST_CREATE_USER_STATEMENT;
explicit ASTCreateUserStatement() : ASTCreateTableStmtBase(kConcreteNodeKind) {}
explicit ASTCreateUserStatement() : ASTCreateStatement(kConcreteNodeKind) {}
void Accept(ParseTreeVisitor* visitor, void* data) const override;
zetasql_base::StatusOr<VisitResult> Accept(
NonRecursiveParseTreeVisitor* visitor) const override;
const ASTPathExpression* name() const { return name_; }
const ASTOptionsList* options_list() const { return options_list_; }
const ASTPathExpression* GetDdlTarget() const override { return name_; }

private:
void InitFields() final {
Expand All @@ -4687,6 +4690,9 @@ class ASTCreateUserStatement final : public ASTCreateTableStmtBase {
fl.AddOptional(&options_list_, AST_OPTIONS_LIST);
}

const ASTPathExpression* name_ = nullptr;
const ASTOptionsList* options_list_ = nullptr;

};

class ASTCreateTableStatement final : public ASTCreateTableStmtBase {
Expand Down

0 comments on commit 8a4f0ec

Please sign in to comment.