Enum types now emit operator| and operator|= for easier bitset manipulation.
Bug: 31702236
Change-Id: I166da2fe0019493c81151914ebabf591b705a713
Test: visual check, mma
diff --git a/Scope.cpp b/Scope.cpp
index 452a41f..c4d07c2 100644
--- a/Scope.cpp
+++ b/Scope.cpp
@@ -141,6 +141,18 @@
return OK;
}
+status_t Scope::emitGlobalTypeDeclarations(Formatter &out) const {
+ for (size_t i = 0; i < mTypes.size(); ++i) {
+ status_t err = mTypes[i]->emitGlobalTypeDeclarations(out);
+
+ if (err != OK) {
+ return err;
+ }
+ }
+
+ return OK;
+}
+
status_t Scope::emitJavaTypeDeclarations(
Formatter &out, bool atTopLevel) const {
for (size_t i = 0; i < mTypes.size(); ++i) {