File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727
2828namespace cel {
2929
30- namespace ast_internal {
31- class AstImpl ;
32- } // namespace ast_internal
33-
3430// In memory representation of a CEL abstract syntax tree.
3531//
3632// If AST inspection or manipulation is needed, prefer to use an existing tool
@@ -42,13 +38,11 @@ class AstImpl;
4238//
4339// To create a new instance from a protobuf representation, use the conversion
4440// utilities in `common/ast_proto.h`.
45- class Ast {
41+ class Ast final {
4642 public:
4743 using ReferenceMap = absl::flat_hash_map<int64_t , Reference>;
4844 using TypeMap = absl::flat_hash_map<int64_t , TypeSpec>;
4945
50- virtual ~Ast () = default ;
51-
5246 Ast () : is_checked_(false ) {}
5347
5448 Ast (Expr expr, SourceInfo source_info)
@@ -142,8 +136,6 @@ class Ast {
142136 }
143137
144138 private:
145- friend class ast_internal ::AstImpl;
146-
147139 Expr root_expr_;
148140 SourceInfo source_info_;
149141 ReferenceMap reference_map_;
Original file line number Diff line number Diff line change @@ -73,17 +73,6 @@ cc_test(
7373 ],
7474)
7575
76- cc_library (
77- name = "ast_impl" ,
78- hdrs = ["ast_impl.h" ],
79- deps = [
80- ":expr" ,
81- ":metadata" ,
82- "//common:ast" ,
83- "//common:expr" ,
84- ],
85- )
86-
8776cc_library (
8877 name = "expr" ,
8978 hdrs = [
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments