|
|
@ -135,9 +135,9 @@ class PROTOC_EXPORT CodeGenerator { |
|
|
|
|
|
|
|
|
|
|
|
protected: |
|
|
|
protected: |
|
|
|
// Retrieves the resolved source features for a given descriptor. All the
|
|
|
|
// Retrieves the resolved source features for a given descriptor. All the
|
|
|
|
// features that are imported (from the proto file) and linked in (from the
|
|
|
|
// global features and language features returned by GetFeatureExtensions will
|
|
|
|
// callers binary) will be fully resolved. These should be used to make any
|
|
|
|
// be fully resolved. These should be used to make any feature-based decisions
|
|
|
|
// feature-based decisions during code generation.
|
|
|
|
// during code generation.
|
|
|
|
template <typename DescriptorT> |
|
|
|
template <typename DescriptorT> |
|
|
|
static const FeatureSet& GetResolvedSourceFeatures(const DescriptorT& desc) { |
|
|
|
static const FeatureSet& GetResolvedSourceFeatures(const DescriptorT& desc) { |
|
|
|
return ::google::protobuf::internal::InternalFeatureHelper::GetFeatures(desc); |
|
|
|
return ::google::protobuf::internal::InternalFeatureHelper::GetFeatures(desc); |
|
|
|