Andreas Huber | 1aec397 | 2016-08-26 09:26:32 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2016 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
Andreas Huber | c9410c7 | 2016-07-28 12:18:40 -0700 | [diff] [blame] | 17 | #ifndef AST_H_ |
| 18 | |
| 19 | #define AST_H_ |
| 20 | |
| 21 | #include <android-base/macros.h> |
Steven Moreland | d537ab0 | 2016-09-12 10:32:01 -0700 | [diff] [blame] | 22 | #include <map> |
Andreas Huber | 737080b | 2016-08-02 15:38:04 -0700 | [diff] [blame] | 23 | #include <set> |
Andreas Huber | eb1081f | 2016-07-28 13:13:24 -0700 | [diff] [blame] | 24 | #include <string> |
Andreas Huber | 70a59e1 | 2016-08-16 12:57:01 -0700 | [diff] [blame] | 25 | #include <vector> |
Andreas Huber | c9410c7 | 2016-07-28 12:18:40 -0700 | [diff] [blame] | 26 | |
Andreas Huber | da51b8e | 2016-07-28 16:00:57 -0700 | [diff] [blame] | 27 | #include "FQName.h" |
Andreas Huber | 881227d | 2016-08-02 14:20:21 -0700 | [diff] [blame] | 28 | #include "Type.h" |
Andreas Huber | da51b8e | 2016-07-28 16:00:57 -0700 | [diff] [blame] | 29 | |
Andreas Huber | c9410c7 | 2016-07-28 12:18:40 -0700 | [diff] [blame] | 30 | namespace android { |
| 31 | |
Andreas Huber | 5345ec2 | 2016-07-29 13:33:27 -0700 | [diff] [blame] | 32 | struct Coordinator; |
Andreas Huber | c9410c7 | 2016-07-28 12:18:40 -0700 | [diff] [blame] | 33 | struct Formatter; |
Andreas Huber | 6cb08cf | 2016-08-03 15:44:51 -0700 | [diff] [blame] | 34 | struct Interface; |
Yifan Hong | a4b53d0 | 2016-10-31 17:29:10 -0700 | [diff] [blame] | 35 | struct Location; |
Andreas Huber | 881227d | 2016-08-02 14:20:21 -0700 | [diff] [blame] | 36 | struct Method; |
Andreas Huber | 31629bc | 2016-08-03 09:06:40 -0700 | [diff] [blame] | 37 | struct NamedType; |
Andreas Huber | 881227d | 2016-08-02 14:20:21 -0700 | [diff] [blame] | 38 | struct TypedVar; |
Andreas Huber | c9410c7 | 2016-07-28 12:18:40 -0700 | [diff] [blame] | 39 | struct Scope; |
Yifan Hong | f24fa85 | 2016-09-23 11:03:15 -0700 | [diff] [blame] | 40 | struct EnumValue; |
Andreas Huber | c9410c7 | 2016-07-28 12:18:40 -0700 | [diff] [blame] | 41 | |
| 42 | struct AST { |
Andreas Huber | 0d0f9a2 | 2016-08-17 10:26:11 -0700 | [diff] [blame] | 43 | AST(Coordinator *coordinator, const std::string &path); |
Andreas Huber | c9410c7 | 2016-07-28 12:18:40 -0700 | [diff] [blame] | 44 | ~AST(); |
| 45 | |
Andreas Huber | 84f89de | 2016-07-28 15:39:51 -0700 | [diff] [blame] | 46 | bool setPackage(const char *package); |
| 47 | bool addImport(const char *import); |
Andreas Huber | eb1081f | 2016-07-28 13:13:24 -0700 | [diff] [blame] | 48 | |
Andreas Huber | a2723d2 | 2016-07-29 15:36:07 -0700 | [diff] [blame] | 49 | // package and version really. |
| 50 | FQName package() const; |
| 51 | bool isInterface(std::string *ifaceName) const; |
Andreas Huber | 7c5ddfb | 2016-09-29 13:45:22 -0700 | [diff] [blame] | 52 | bool containsInterfaces() const; |
Andreas Huber | a2723d2 | 2016-07-29 15:36:07 -0700 | [diff] [blame] | 53 | |
Andreas Huber | c9410c7 | 2016-07-28 12:18:40 -0700 | [diff] [blame] | 54 | void enterScope(Scope *container); |
| 55 | void leaveScope(); |
| 56 | Scope *scope(); |
Andreas Huber | 5a54544 | 2016-08-03 10:44:56 -0700 | [diff] [blame] | 57 | |
| 58 | // Returns true iff successful. |
Yifan Hong | a4b53d0 | 2016-10-31 17:29:10 -0700 | [diff] [blame] | 59 | bool addTypeDef(const char *localName, Type *type, const Location &location, |
| 60 | std::string *errorMsg); |
Andreas Huber | 39fa718 | 2016-08-19 14:27:33 -0700 | [diff] [blame] | 61 | |
| 62 | // Returns true iff successful. |
Andreas Huber | 9ed827c | 2016-08-22 12:31:13 -0700 | [diff] [blame] | 63 | bool addScopedType(NamedType *type, std::string *errorMsg); |
Andreas Huber | c9410c7 | 2016-07-28 12:18:40 -0700 | [diff] [blame] | 64 | |
| 65 | void *scanner(); |
| 66 | void setScanner(void *scanner); |
| 67 | |
Andreas Huber | 0d0f9a2 | 2016-08-17 10:26:11 -0700 | [diff] [blame] | 68 | const std::string &getFilename() const; |
| 69 | |
Yifan Hong | f24fa85 | 2016-09-23 11:03:15 -0700 | [diff] [blame] | 70 | // Look up an enum value by "FQName:valueName". |
| 71 | EnumValue *lookupEnumValue(const FQName &fqName, std::string *errorMsg); |
| 72 | |
Andreas Huber | 5345ec2 | 2016-07-29 13:33:27 -0700 | [diff] [blame] | 73 | // Look up a type by FQName, "pure" names, i.e. those without package |
| 74 | // or version are first looked up in the current scope chain. |
| 75 | // After that lookup proceeds to imports. |
Yifan Hong | ae16eed | 2016-09-23 13:25:25 -0700 | [diff] [blame] | 76 | Type *lookupType(const FQName &fqName); |
Andreas Huber | 5345ec2 | 2016-07-29 13:33:27 -0700 | [diff] [blame] | 77 | |
Andreas Huber | 39fa718 | 2016-08-19 14:27:33 -0700 | [diff] [blame] | 78 | void addImportedAST(AST *ast); |
Andreas Huber | c9410c7 | 2016-07-28 12:18:40 -0700 | [diff] [blame] | 79 | |
Andreas Huber | b82318c | 2016-08-02 14:45:54 -0700 | [diff] [blame] | 80 | status_t generateCpp(const std::string &outputPath) const; |
Steven Moreland | 9c38761 | 2016-09-07 09:54:26 -0700 | [diff] [blame] | 81 | status_t generateCppImpl(const std::string &outputPath) const; |
Andreas Huber | 85eabdb | 2016-08-25 11:24:49 -0700 | [diff] [blame] | 82 | |
Andreas Huber | 0fa9e39 | 2016-08-31 09:05:44 -0700 | [diff] [blame] | 83 | status_t generateJava( |
Andreas Huber | d29724f | 2016-09-14 09:33:13 -0700 | [diff] [blame] | 84 | const std::string &outputPath, |
| 85 | const std::string &limitToType) const; |
Andreas Huber | 0fa9e39 | 2016-08-31 09:05:44 -0700 | [diff] [blame] | 86 | |
| 87 | status_t generateJavaTypes( |
Andreas Huber | d29724f | 2016-09-14 09:33:13 -0700 | [diff] [blame] | 88 | const std::string &outputPath, |
| 89 | const std::string &limitToType) const; |
Andreas Huber | 881227d | 2016-08-02 14:20:21 -0700 | [diff] [blame] | 90 | |
Iliyan Malchev | 5bb1402 | 2016-08-09 15:04:39 -0700 | [diff] [blame] | 91 | void getImportedPackages(std::set<FQName> *importSet) const; |
Andreas Huber | d2943e1 | 2016-08-05 11:59:31 -0700 | [diff] [blame] | 92 | |
Yifan Hong | 40a373d | 2016-11-30 15:16:47 -0800 | [diff] [blame] | 93 | // Run getImportedPackages on this, then run getImportedPackages on |
| 94 | // each AST in each package referenced in importSet. |
| 95 | void getImportedPackagesHierarchy(std::set<FQName> *importSet) const; |
| 96 | |
Zhuoyao Zhang | 5158db4 | 2016-08-10 10:25:20 -0700 | [diff] [blame] | 97 | status_t generateVts(const std::string &outputPath) const; |
| 98 | |
Andreas Huber | 0fa9e39 | 2016-08-31 09:05:44 -0700 | [diff] [blame] | 99 | bool isJavaCompatible() const; |
| 100 | |
Iliyan Malchev | ed0509b | 2016-09-07 12:37:11 -0700 | [diff] [blame] | 101 | // Return the set of FQNames for those interfaces and types that are |
| 102 | // actually referenced in the AST, not merely imported. |
| 103 | |
| 104 | const std::set<FQName>& getImportedNames() const { |
| 105 | return mImportedNames; |
| 106 | } |
| 107 | |
Andreas Huber | 019d21d | 2016-10-03 12:59:47 -0700 | [diff] [blame] | 108 | void appendToExportedTypesVector( |
| 109 | std::vector<const Type *> *exportedTypes) const; |
| 110 | |
Yifan Hong | be627b3 | 2016-10-28 18:38:56 -0700 | [diff] [blame] | 111 | // used by the parser. |
| 112 | void addSyntaxError(); |
| 113 | size_t syntaxErrors() const; |
| 114 | |
Yifan Hong | c893404 | 2016-11-17 17:10:52 -0800 | [diff] [blame^] | 115 | bool isIBase() const; |
| 116 | |
Andreas Huber | c9410c7 | 2016-07-28 12:18:40 -0700 | [diff] [blame] | 117 | private: |
Andreas Huber | 5345ec2 | 2016-07-29 13:33:27 -0700 | [diff] [blame] | 118 | Coordinator *mCoordinator; |
Andreas Huber | 0d0f9a2 | 2016-08-17 10:26:11 -0700 | [diff] [blame] | 119 | std::string mPath; |
Steven Moreland | d537ab0 | 2016-09-12 10:32:01 -0700 | [diff] [blame] | 120 | std::vector<Scope *> mScopePath; |
Andreas Huber | c9410c7 | 2016-07-28 12:18:40 -0700 | [diff] [blame] | 121 | |
| 122 | void *mScanner; |
| 123 | Scope *mRootScope; |
| 124 | |
Andreas Huber | da51b8e | 2016-07-28 16:00:57 -0700 | [diff] [blame] | 125 | FQName mPackage; |
Andreas Huber | 84f89de | 2016-07-28 15:39:51 -0700 | [diff] [blame] | 126 | |
Andreas Huber | 39fa718 | 2016-08-19 14:27:33 -0700 | [diff] [blame] | 127 | // A set of all external interfaces/types that are _actually_ referenced |
| 128 | // in this AST, this is a subset of those specified in import statements. |
Andreas Huber | 737080b | 2016-08-02 15:38:04 -0700 | [diff] [blame] | 129 | std::set<FQName> mImportedNames; |
| 130 | |
Andreas Huber | 39fa718 | 2016-08-19 14:27:33 -0700 | [diff] [blame] | 131 | // A set of all ASTs we explicitly or implicitly (types.hal) import. |
| 132 | std::set<AST *> mImportedASTs; |
| 133 | |
Yifan Hong | 1977ea3 | 2016-10-05 12:49:08 -0700 | [diff] [blame] | 134 | // If a single type (instead of the whole AST) is imported, the AST will be |
| 135 | // present as a key to this map, with the value being a list of types |
| 136 | // imported from this AST. If an AST appears in mImportedASTs but not in |
| 137 | // mImportedTypes, then the whole AST is imported. |
| 138 | std::map<AST *, std::set<Type *>> mImportedTypes; |
| 139 | |
Andreas Huber | 39fa718 | 2016-08-19 14:27:33 -0700 | [diff] [blame] | 140 | // Types keyed by full names defined in this AST. |
Steven Moreland | d537ab0 | 2016-09-12 10:32:01 -0700 | [diff] [blame] | 141 | std::map<FQName, Type *> mDefinedTypesByFullName; |
Andreas Huber | 39fa718 | 2016-08-19 14:27:33 -0700 | [diff] [blame] | 142 | |
Yifan Hong | be627b3 | 2016-10-28 18:38:56 -0700 | [diff] [blame] | 143 | // used by the parser. |
| 144 | size_t mSyntaxErrors = 0; |
| 145 | |
Andreas Huber | 39fa718 | 2016-08-19 14:27:33 -0700 | [diff] [blame] | 146 | bool addScopedTypeInternal( |
Steven Moreland | d537ab0 | 2016-09-12 10:32:01 -0700 | [diff] [blame] | 147 | NamedType *type, |
| 148 | std::string *errorMsg); |
Andreas Huber | 39fa718 | 2016-08-19 14:27:33 -0700 | [diff] [blame] | 149 | |
| 150 | // Find a type matching fqName (which may be partial) and if found |
| 151 | // return the associated type and fill in the full "matchingName". |
| 152 | // Only types defined in this very AST are considered. |
| 153 | Type *findDefinedType(const FQName &fqName, FQName *matchingName) const; |
| 154 | |
Andreas Huber | 881227d | 2016-08-02 14:20:21 -0700 | [diff] [blame] | 155 | void getPackageComponents(std::vector<std::string> *components) const; |
| 156 | |
| 157 | void getPackageAndVersionComponents( |
| 158 | std::vector<std::string> *components, bool cpp_compatible) const; |
| 159 | |
Steven Moreland | ee88eed | 2016-10-31 17:49:00 -0700 | [diff] [blame] | 160 | static void generateCppPackageInclude( |
| 161 | Formatter &out, |
| 162 | const FQName &package, |
| 163 | const std::string &klass); |
| 164 | |
Steven Moreland | 5708edf | 2016-11-04 15:33:31 +0000 | [diff] [blame] | 165 | std::string makeHeaderGuard(const std::string &baseName, |
| 166 | bool indicateGenerated = true) const; |
Andreas Huber | 881227d | 2016-08-02 14:20:21 -0700 | [diff] [blame] | 167 | void enterLeaveNamespace(Formatter &out, bool enter) const; |
| 168 | |
Steven Moreland | 67f67b4 | 2016-09-29 08:59:02 -0700 | [diff] [blame] | 169 | static void generateCheckNonNull(Formatter &out, const std::string &nonNull); |
| 170 | |
Andreas Huber | b82318c | 2016-08-02 14:45:54 -0700 | [diff] [blame] | 171 | status_t generateInterfaceHeader(const std::string &outputPath) const; |
Steven Moreland | 4078631 | 2016-08-16 10:29:40 -0700 | [diff] [blame] | 172 | status_t generateHwBinderHeader(const std::string &outputPath) const; |
Andreas Huber | b82318c | 2016-08-02 14:45:54 -0700 | [diff] [blame] | 173 | status_t generateStubHeader(const std::string &outputPath) const; |
| 174 | status_t generateProxyHeader(const std::string &outputPath) const; |
| 175 | status_t generateAllSource(const std::string &outputPath) const; |
Steven Moreland | 69e7c70 | 2016-09-09 11:16:32 -0700 | [diff] [blame] | 176 | status_t generatePassthroughHeader(const std::string &outputPath) const; |
Andreas Huber | 881227d | 2016-08-02 14:20:21 -0700 | [diff] [blame] | 177 | |
| 178 | status_t generateTypeSource( |
| 179 | Formatter &out, const std::string &ifaceName) const; |
| 180 | |
Yifan Hong | 068c552 | 2016-10-31 14:07:25 -0700 | [diff] [blame] | 181 | // a method, and in which interface is it originally defined. |
| 182 | // be careful of the case where method.isHidlReserved(), where interface |
| 183 | // is effectively useless. |
| 184 | using MethodGenerator = std::function<status_t(const Method *, const Interface *)>; |
Steven Moreland | a7a421a | 2016-09-07 08:35:18 -0700 | [diff] [blame] | 185 | |
Steven Moreland | 9c38761 | 2016-09-07 09:54:26 -0700 | [diff] [blame] | 186 | status_t generateStubImplHeader(const std::string &outputPath) const; |
| 187 | status_t generateStubImplSource(const std::string &outputPath) const; |
| 188 | |
Yifan Hong | 068c552 | 2016-10-31 14:07:25 -0700 | [diff] [blame] | 189 | status_t generateMethods(Formatter &out, MethodGenerator gen) const; |
Steven Moreland | a7a421a | 2016-09-07 08:35:18 -0700 | [diff] [blame] | 190 | status_t generateStubMethod(Formatter &out, |
Yifan Hong | 068c552 | 2016-10-31 14:07:25 -0700 | [diff] [blame] | 191 | const Method *method) const; |
Steven Moreland | 9c38761 | 2016-09-07 09:54:26 -0700 | [diff] [blame] | 192 | status_t generateStubImplMethod(Formatter &out, |
| 193 | const std::string &className, |
Yifan Hong | 068c552 | 2016-10-31 14:07:25 -0700 | [diff] [blame] | 194 | const Method *method) const; |
Steven Moreland | 69e7c70 | 2016-09-09 11:16:32 -0700 | [diff] [blame] | 195 | status_t generatePassthroughMethod(Formatter &out, |
Yifan Hong | 068c552 | 2016-10-31 14:07:25 -0700 | [diff] [blame] | 196 | const Method *method) const; |
| 197 | status_t generateProxyMethodSource(Formatter &out, |
Steven Moreland | 69e7c70 | 2016-09-09 11:16:32 -0700 | [diff] [blame] | 198 | const std::string &className, |
| 199 | const Method *method, |
Yifan Hong | 068c552 | 2016-10-31 14:07:25 -0700 | [diff] [blame] | 200 | const Interface *superInterface) const; |
Steven Moreland | 9c38761 | 2016-09-07 09:54:26 -0700 | [diff] [blame] | 201 | |
| 202 | void generateFetchSymbol(Formatter &out, const std::string &ifaceName) const; |
Iliyan Malchev | 62c3d18 | 2016-08-16 20:33:39 -0700 | [diff] [blame] | 203 | |
Andreas Huber | 881227d | 2016-08-02 14:20:21 -0700 | [diff] [blame] | 204 | status_t generateProxySource( |
| 205 | Formatter &out, const std::string &baseName) const; |
| 206 | |
| 207 | status_t generateStubSource( |
| 208 | Formatter &out, const std::string &baseName) const; |
| 209 | |
| 210 | status_t generateStubSourceForMethod( |
Andreas Huber | 6cb08cf | 2016-08-03 15:44:51 -0700 | [diff] [blame] | 211 | Formatter &out, const Interface *iface, const Method *method) const; |
Andreas Huber | 881227d | 2016-08-02 14:20:21 -0700 | [diff] [blame] | 212 | |
Steven Moreland | 69e7c70 | 2016-09-09 11:16:32 -0700 | [diff] [blame] | 213 | status_t generatePassthroughSource(Formatter &out) const; |
| 214 | |
Yifan Hong | fe95aa2 | 2016-10-19 17:26:45 -0700 | [diff] [blame] | 215 | status_t generateInterfaceSource(Formatter &out) const; |
Zhuoyao Zhang | 8f49294 | 2016-09-28 14:27:56 -0700 | [diff] [blame] | 216 | |
| 217 | enum InstrumentationEvent { |
| 218 | SERVER_API_ENTRY = 0, |
| 219 | SERVER_API_EXIT, |
| 220 | CLIENT_API_ENTRY, |
| 221 | CLIENT_API_EXIT, |
| 222 | SYNC_CALLBACK_ENTRY, |
| 223 | SYNC_CALLBACK_EXIT, |
| 224 | ASYNC_CALLBACK_ENTRY, |
| 225 | ASYNC_CALLBACK_EXIT, |
Steven Moreland | 9b1cbdf | 2016-11-01 12:23:27 -0700 | [diff] [blame] | 226 | PASSTHROUGH_ENTRY, |
| 227 | PASSTHROUGH_EXIT, |
Zhuoyao Zhang | 8f49294 | 2016-09-28 14:27:56 -0700 | [diff] [blame] | 228 | }; |
| 229 | |
Martijn Coenen | 7b29524 | 2016-11-04 16:52:56 +0100 | [diff] [blame] | 230 | status_t generateCppAtraceCall( |
| 231 | Formatter &out, |
| 232 | InstrumentationEvent event, |
| 233 | const Method *method) const; |
| 234 | |
Zhuoyao Zhang | 8f49294 | 2016-09-28 14:27:56 -0700 | [diff] [blame] | 235 | status_t generateCppInstrumentationCall( |
| 236 | Formatter &out, |
| 237 | InstrumentationEvent event, |
Zhuoyao Zhang | 8f49294 | 2016-09-28 14:27:56 -0700 | [diff] [blame] | 238 | const Method *method) const; |
| 239 | |
Andreas Huber | e7ff228 | 2016-08-16 13:50:03 -0700 | [diff] [blame] | 240 | void declareCppReaderLocals( |
Andreas Huber | 5e44a29 | 2016-09-27 14:52:39 -0700 | [diff] [blame] | 241 | Formatter &out, |
| 242 | const std::vector<TypedVar *> &arg, |
| 243 | bool forResults) const; |
Andreas Huber | e7ff228 | 2016-08-16 13:50:03 -0700 | [diff] [blame] | 244 | |
Andreas Huber | 881227d | 2016-08-02 14:20:21 -0700 | [diff] [blame] | 245 | void emitCppReaderWriter( |
| 246 | Formatter &out, |
| 247 | const std::string &parcelObj, |
| 248 | bool parcelObjIsPointer, |
| 249 | const TypedVar *arg, |
| 250 | bool isReader, |
Andreas Huber | 5e44a29 | 2016-09-27 14:52:39 -0700 | [diff] [blame] | 251 | Type::ErrorMode mode, |
| 252 | bool addPrefixToName) const; |
Andreas Huber | 881227d | 2016-08-02 14:20:21 -0700 | [diff] [blame] | 253 | |
Yifan Hong | bf459bc | 2016-08-23 16:50:37 -0700 | [diff] [blame] | 254 | void emitCppResolveReferences( |
| 255 | Formatter &out, |
| 256 | const std::string &parcelObj, |
| 257 | bool parcelObjIsPointer, |
| 258 | const TypedVar *arg, |
| 259 | bool isReader, |
| 260 | Type::ErrorMode mode, |
| 261 | bool addPrefixToName) const; |
| 262 | |
Andreas Huber | 2831d51 | 2016-08-15 09:33:47 -0700 | [diff] [blame] | 263 | void emitJavaReaderWriter( |
| 264 | Formatter &out, |
| 265 | const std::string &parcelObj, |
| 266 | const TypedVar *arg, |
| 267 | bool isReader) const; |
| 268 | |
Andreas Huber | 881227d | 2016-08-02 14:20:21 -0700 | [diff] [blame] | 269 | status_t emitTypeDeclarations(Formatter &out) const; |
Andreas Huber | 2831d51 | 2016-08-15 09:33:47 -0700 | [diff] [blame] | 270 | status_t emitJavaTypeDeclarations(Formatter &out) const; |
Zhuoyao Zhang | 864c771 | 2016-08-16 15:35:28 -0700 | [diff] [blame] | 271 | status_t emitVtsTypeDeclarations(Formatter &out) const; |
Andreas Huber | 70a59e1 | 2016-08-16 12:57:01 -0700 | [diff] [blame] | 272 | |
Zhuoyao Zhang | 864c771 | 2016-08-16 15:35:28 -0700 | [diff] [blame] | 273 | // Helper function that generates vts type declaration from the current |
| 274 | // AST and the transitive closure of imported ASTs. |
| 275 | status_t emitVtsTypeDeclarationsHelper( |
| 276 | Formatter &out, |
| 277 | std::set<AST*> *allImportSet) const; |
Andreas Huber | 881227d | 2016-08-02 14:20:21 -0700 | [diff] [blame] | 278 | |
Andreas Huber | c9410c7 | 2016-07-28 12:18:40 -0700 | [diff] [blame] | 279 | DISALLOW_COPY_AND_ASSIGN(AST); |
| 280 | }; |
| 281 | |
| 282 | } // namespace android |
| 283 | |
| 284 | #endif // AST_H_ |