Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions common/ast.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@

namespace cel {

namespace ast_internal {
class AstImpl;
} // namespace ast_internal

// In memory representation of a CEL abstract syntax tree.
//
// If AST inspection or manipulation is needed, prefer to use an existing tool
Expand All @@ -42,13 +38,11 @@ class AstImpl;
//
// To create a new instance from a protobuf representation, use the conversion
// utilities in `common/ast_proto.h`.
class Ast {
class Ast final {
public:
using ReferenceMap = absl::flat_hash_map<int64_t, Reference>;
using TypeMap = absl::flat_hash_map<int64_t, TypeSpec>;

virtual ~Ast() = default;

Ast() : is_checked_(false) {}

Ast(Expr expr, SourceInfo source_info)
Expand Down Expand Up @@ -142,8 +136,6 @@ class Ast {
}

private:
friend class ast_internal::AstImpl;

Expr root_expr_;
SourceInfo source_info_;
ReferenceMap reference_map_;
Expand Down
11 changes: 0 additions & 11 deletions common/ast/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,6 @@ cc_test(
],
)

cc_library(
name = "ast_impl",
hdrs = ["ast_impl.h"],
deps = [
":expr",
":metadata",
"//common:ast",
"//common:expr",
],
)

cc_library(
name = "expr",
hdrs = [
Expand Down
55 changes: 0 additions & 55 deletions common/ast/ast_impl.h

This file was deleted.