H A D | js_generator.cc | 119 std::string GetJSFilename(const GeneratorOptions& options, in GetJSFilename() argument 121 return StripProto(filename) + options.GetFileNameExtension(); in GetJSFilename() 166 std::string GetNamespace(const GeneratorOptions& options, in GetNamespace() argument 168 if (!options.namespace_prefix.empty()) { in GetNamespace() 169 return options.namespace_prefix; in GetNamespace() 196 std::string GetPrefix(const GeneratorOptions& options, in GetPrefix() argument 199 std::string prefix = GetNamespace(options, file_descriptor) + in GetPrefix() 209 std::string GetMessagePathPrefix(const GeneratorOptions& options, in GetMessagePathPrefix() argument 211 return GetPrefix(options, descriptor->file(), descriptor->containing_type()); in GetMessagePathPrefix() 216 std::string GetMessagePath(const GeneratorOptions& options, in GetMessagePath() argument 223 GetEnumPathPrefix(const GeneratorOptions& options, const EnumDescriptor* enum_descriptor) GetEnumPathPrefix() argument 231 GetEnumPath(const GeneratorOptions& options, const EnumDescriptor* enum_descriptor) GetEnumPath() argument 236 MaybeCrossFileRef(const GeneratorOptions& options, const FileDescriptor* from_file, const Descriptor* to_message) MaybeCrossFileRef() argument 253 SubmessageTypeRef(const GeneratorOptions& options, const FieldDescriptor* field) SubmessageTypeRef() argument 379 GetExtensionFileName(const GeneratorOptions& options, const FileDescriptor* file, bool with_filename) GetExtensionFileName() argument 393 GetMessagesFileName(const GeneratorOptions& options, const SCC* scc, bool with_package) GetMessagesFileName() argument 434 GetEnumFileName(const GeneratorOptions& options, const EnumDescriptor* desc, bool with_package) GetEnumFileName() argument 479 JSIdent(const GeneratorOptions& options, const FieldDescriptor* field, bool is_upper_camel, bool is_map, bool drop_list) JSIdent() argument 501 JSObjectFieldName(const GeneratorOptions& options, const FieldDescriptor* field) JSObjectFieldName() argument 529 JSGetterName(const GeneratorOptions& options, const FieldDescriptor* field, BytesMode bytes_mode = BYTES_DEFAULT, bool drop_list = false) JSGetterName() argument 876 ProtoTypeName(const GeneratorOptions& options, const FieldDescriptor* field) ProtoTypeName() argument 924 JSStringTypeName(const GeneratorOptions& options, const FieldDescriptor* field, BytesMode bytes_mode) JSStringTypeName() argument 942 JSTypeName(const GeneratorOptions& options, const FieldDescriptor* field, BytesMode bytes_mode) JSTypeName() argument 971 UseBrokenPresenceSemantics(const GeneratorOptions& options, const FieldDescriptor* field) UseBrokenPresenceSemantics() argument 980 ReturnsNullWhenUnset(const GeneratorOptions& options, const FieldDescriptor* field) ReturnsNullWhenUnset() argument 998 DeclaredReturnTypeIsNullable(const GeneratorOptions& options, const FieldDescriptor* field) DeclaredReturnTypeIsNullable() argument 1012 SetterAcceptsUndefined(const GeneratorOptions& options, const FieldDescriptor* field) SetterAcceptsUndefined() argument 1022 SetterAcceptsNull(const GeneratorOptions& options, const FieldDescriptor* field) SetterAcceptsNull() argument 1042 JSFieldTypeAnnotation(const GeneratorOptions& options, const FieldDescriptor* field, bool is_setter_argument, bool force_present, bool singular_if_not_packed, BytesMode bytes_mode = BYTES_DEFAULT, bool force_singular = false) JSFieldTypeAnnotation() argument 1110 JSBinaryReaderMethodName(const GeneratorOptions& options, const FieldDescriptor* field) JSBinaryReaderMethodName() argument 1116 JSBinaryWriterMethodName(const GeneratorOptions& options, const FieldDescriptor* field) JSBinaryWriterMethodName() argument 1162 HasRepeatedFields(const GeneratorOptions& options, const Descriptor* desc) HasRepeatedFields() argument 1174 RepeatedFieldsArrayName(const GeneratorOptions& options, const Descriptor* desc) RepeatedFieldsArrayName() argument 1192 OneofFieldsArrayName(const GeneratorOptions& options, const Descriptor* desc) OneofFieldsArrayName() argument 1199 RepeatedFieldNumberList(const GeneratorOptions& options, const Descriptor* desc) RepeatedFieldNumberList() argument 1231 JSOneofArray(const GeneratorOptions& options, const FieldDescriptor* field) JSOneofArray() argument 1264 JSExtensionsObjectName(const GeneratorOptions& options, const FileDescriptor* from_file, const Descriptor* desc) JSExtensionsObjectName() argument 1288 FieldDefinition(const GeneratorOptions& options, const FieldDescriptor* field) FieldDefinition() argument 1367 HasMap(const GeneratorOptions& options, const Descriptor* desc) HasMap() argument 1381 FileHasMap(const GeneratorOptions& options, const FileDescriptor* desc) FileHasMap() argument 1419 HasFieldPresence(const GeneratorOptions& options, const FieldDescriptor* field) HasFieldPresence() argument 1435 FileDeduplicator(const GeneratorOptions& options) FileDeduplicator() argument 1561 GenerateJspbAllowedMap(const GeneratorOptions& options, const std::vector<const FileDescriptor*>& files, std::map<const void*, std::string>* allowed_set, SCCAnalyzer<DepsGenerator>* analyzer, std::string* error) GenerateJspbAllowedMap() argument 1640 GenerateHeader(const GeneratorOptions& options, const FileDescriptor* file, io::Printer* printer) const GenerateHeader() argument 1660 FindProvidesForFile(const GeneratorOptions& options, io::Printer* printer, const FileDescriptor* file, std::set<std::string>* provided) const FindProvidesForFile() argument 1672 FindProvides(const GeneratorOptions& options, io::Printer* printer, const std::vector<const FileDescriptor*>& files, std::set<std::string>* provided) const FindProvides() argument 1683 FindProvidesForOneOfEnum(const GeneratorOptions& options, const OneofDescriptor* oneof, std::set<std::string>* provided) FindProvidesForOneOfEnum() argument 1691 FindProvidesForOneOfEnums(const GeneratorOptions& options, io::Printer* printer, const Descriptor* desc, std::set<std::string>* provided) FindProvidesForOneOfEnums() argument 1704 FindProvidesForMessage(const GeneratorOptions& options, io::Printer* printer, const Descriptor* desc, std::set<std::string>* provided) const FindProvidesForMessage() argument 1725 FindProvidesForEnum(const GeneratorOptions& options, io::Printer* printer, const EnumDescriptor* enumdesc, std::set<std::string>* provided) const FindProvidesForEnum() argument 1733 FindProvidesForFields( const GeneratorOptions& options, io::Printer* printer, const std::vector<const FieldDescriptor*>& fields, std::set<std::string>* provided) const FindProvidesForFields() argument 1750 GenerateProvides(const GeneratorOptions& options, io::Printer* printer, std::set<std::string>* provided) const GenerateProvides() argument 1782 GenerateRequiresForSCC(const GeneratorOptions& options, io::Printer* printer, const SCC* scc, std::set<std::string>* provided) const GenerateRequiresForSCC() argument 1805 GenerateRequiresForLibrary( const GeneratorOptions& options, io::Printer* printer, const std::vector<const FileDescriptor*>& files, std::set<std::string>* provided) const GenerateRequiresForLibrary() argument 1854 GenerateRequiresForExtensions( const GeneratorOptions& options, io::Printer* printer, const std::vector<const FieldDescriptor*>& fields, std::set<std::string>* provided) const GenerateRequiresForExtensions() argument 1874 GenerateRequiresImpl(const GeneratorOptions& options, io::Printer* printer, std::set<std::string>* required, std::set<std::string>* forwards, std::set<std::string>* provided, bool require_jspb, bool require_extension, bool require_map) const GenerateRequiresImpl() argument 1916 FindRequiresForMessage(const GeneratorOptions& options, const Descriptor* desc, std::set<std::string>* required, std::set<std::string>* forwards, bool* have_message) const FindRequiresForMessage() argument 1947 FindRequiresForField(const GeneratorOptions& options, const FieldDescriptor* field, std::set<std::string>* required, std::set<std::string>* forwards) const FindRequiresForField() argument 1967 FindRequiresForExtension( const GeneratorOptions& options, const FieldDescriptor* field, std::set<std::string>* required, std::set<std::string>* forwards) const FindRequiresForExtension() argument 1976 GenerateTestOnly(const GeneratorOptions& options, io::Printer* printer) const GenerateTestOnly() argument 1984 GenerateClassesAndEnums(const GeneratorOptions& options, io::Printer* printer, const FileDescriptor* file) const GenerateClassesAndEnums() argument 1999 GenerateClass(const GeneratorOptions& options, io::Printer* printer, const Descriptor* desc) const GenerateClass() argument 2042 GenerateClassConstructor(const GeneratorOptions& options, io::Printer* printer, const Descriptor* desc) const GenerateClassConstructor() argument 2089 GenerateClassConstructorAndDeclareExtensionFieldInfo( const GeneratorOptions& options, io::Printer* printer, const Descriptor* desc) const GenerateClassConstructorAndDeclareExtensionFieldInfo() argument 2106 GenerateClassFieldInfo(const GeneratorOptions& options, io::Printer* printer, const Descriptor* desc) const GenerateClassFieldInfo() argument 2151 GenerateClassXid(const GeneratorOptions& options, io::Printer* printer, const Descriptor* desc) const GenerateClassXid() argument 2161 GenerateOneofCaseDefinition( const GeneratorOptions& options, io::Printer* printer, const OneofDescriptor* oneof) const GenerateOneofCaseDefinition() argument 2202 GenerateClassToObject(const GeneratorOptions& options, io::Printer* printer, const Descriptor* desc) const GenerateClassToObject() argument 2335 GenerateClassFieldToObject(const GeneratorOptions& options, io::Printer* printer, const FieldDescriptor* field) const GenerateClassFieldToObject() argument 2407 GenerateObjectTypedef(const GeneratorOptions& options, io::Printer* printer, const Descriptor* desc) const GenerateObjectTypedef() argument 2438 GenerateClassFromObject(const GeneratorOptions& options, io::Printer* printer, const Descriptor* desc) const GenerateClassFromObject() argument 2469 GenerateClassFieldFromObject( const GeneratorOptions& options, io::Printer* printer, const FieldDescriptor* field) const GenerateClassFieldFromObject() argument 2524 GenerateClassRegistration(const GeneratorOptions& options, io::Printer* printer, const Descriptor* desc) const GenerateClassRegistration() argument 2537 GenerateClassFields(const GeneratorOptions& options, io::Printer* printer, const Descriptor* desc) const GenerateClassFields() argument 2547 GenerateBytesWrapper(const GeneratorOptions& options, io::Printer* printer, const FieldDescriptor* field, BytesMode bytes_mode) GenerateBytesWrapper() argument 2576 GenerateClassField(const GeneratorOptions& options, io::Printer* printer, const FieldDescriptor* field) const GenerateClassField() argument 2933 GenerateRepeatedPrimitiveHelperMethods( const GeneratorOptions& options, io::Printer* printer, const FieldDescriptor* field, bool untyped) const GenerateRepeatedPrimitiveHelperMethods() argument 2972 GenerateRepeatedMessageHelperMethods( const GeneratorOptions& options, io::Printer* printer, const FieldDescriptor* field) const GenerateRepeatedMessageHelperMethods() argument 3000 GenerateClassExtensionFieldInfo(const GeneratorOptions& options, io::Printer* printer, const Descriptor* desc) const GenerateClassExtensionFieldInfo() argument 3049 GenerateClassDeserializeBinary(const GeneratorOptions& options, io::Printer* printer, const Descriptor* desc) const GenerateClassDeserializeBinary() argument 3117 GenerateClassDeserializeBinaryField( const GeneratorOptions& options, io::Printer* printer, const FieldDescriptor* field) const GenerateClassDeserializeBinaryField() argument 3192 GenerateClassSerializeBinary(const GeneratorOptions& options, io::Printer* printer, const Descriptor* desc) const GenerateClassSerializeBinary() argument 3239 GenerateClassSerializeBinaryField( const GeneratorOptions& options, io::Printer* printer, const FieldDescriptor* field) const GenerateClassSerializeBinaryField() argument 3352 GenerateEnum(const GeneratorOptions& options, io::Printer* printer, const EnumDescriptor* enumdesc) const GenerateEnum() argument 3387 GenerateExtension(const GeneratorOptions& options, io::Printer* printer, const FieldDescriptor* field) const GenerateExtension() argument 3466 ParseFromOptions( const std::vector<std::pair<std::string, std::string> >& options, std::string* error) ParseFromOptions() argument 3570 GenerateFilesInDepOrder( const GeneratorOptions& options, io::Printer* printer, const std::vector<const FileDescriptor*>& files) const GenerateFilesInDepOrder() argument 3583 GenerateFileAndDeps( const GeneratorOptions& options, io::Printer* printer, const FileDescriptor* root, std::set<const FileDescriptor*>* all_files, std::set<const FileDescriptor*>* generated) const GenerateFileAndDeps() argument 3607 GenerateFile(const FileDescriptor* file, const GeneratorOptions& options, GeneratorContext* context, bool use_short_name) const GenerateFile() argument 3637 GenerateFile(const GeneratorOptions& options, io::Printer* printer, const FileDescriptor* file) const GenerateFile() argument 3722 GeneratorOptions options; GenerateAll() local [all...] |