Home | History | Annotate | Download | only in src

Lines Matching refs:enum_def

71       auto &enum_def = **it;
72 GenEnum(enum_def, enum_code_ptr, exports_code_ptr);
171 void GenEnum(EnumDef &enum_def, std::string *code_ptr,
173 if (enum_def.generated) return;
176 GenDocComment(enum_def.doc_comment, code_ptr, "@enum");
177 if (enum_def.defined_namespace->components.empty()) {
180 exports += "goog.exportSymbol('" + enum_def.name + "', " + enum_def.name +
183 exports += "this." + enum_def.name + " = " + enum_def.name + ";\n";
186 code += WrapInNameSpace(enum_def) + " = {\n";
187 for (auto it = enum_def.vals.vec.begin();
188 it != enum_def.vals.vec.end(); ++it) {
191 if (it != enum_def.vals.vec.begin()) {
197 code += (it + 1) != enum_def.vals.vec.end() ? ",\n" : "\n";
234 if (type.enum_def) {
235 getter = "/** @type {" + WrapInNameSpace(*type.enum_def) + "} */ (" +
244 if (value.type.enum_def) {
245 if (auto val = value.type.enum_def->ReverseLookup(
247 return WrapInNameSpace(*value.type.enum_def) + "." + val->name;
249 return "/** @type {" + WrapInNameSpace(*value.type.enum_def) + "} */ ("
289 if (type.enum_def) {
290 return WrapInNameSpace(*type.enum_def);
546 if (field.value.type.enum_def) {
548 WrapInNameSpace(*field.value.type.enum_def) + "} */ (" +