Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: third_party/protobuf/objectivec/google/protobuf/SourceContext.pbobjc.m

Issue 2590803003: Revert "third_party/protobuf: Update to HEAD (83d681ee2c)" (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Generated by the protocol buffer compiler. DO NOT EDIT! 1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: google/protobuf/source_context.proto 2 // source: google/protobuf/source_context.proto
3 3
4 // This CPP symbol can be defined to use imports that match up to the framework 4 #import "GPBProtocolBuffers_RuntimeSupport.h"
5 // imports needed when using CocoaPods. 5 #import "google/protobuf/SourceContext.pbobjc.h"
6 #if !defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS)
7 #define GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS 0
8 #endif
9
10 #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
11 #import <Protobuf/GPBProtocolBuffers_RuntimeSupport.h>
12 #else
13 #import "GPBProtocolBuffers_RuntimeSupport.h"
14 #endif
15
16 #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
17 #import <Protobuf/SourceContext.pbobjc.h>
18 #else
19 #import "google/protobuf/SourceContext.pbobjc.h"
20 #endif
21 // @@protoc_insertion_point(imports) 6 // @@protoc_insertion_point(imports)
22 7
23 #pragma clang diagnostic push 8 #pragma clang diagnostic push
24 #pragma clang diagnostic ignored "-Wdeprecated-declarations" 9 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
25 10
26 #pragma mark - GPBSourceContextRoot 11 #pragma mark - GPBSourceContextRoot
27 12
28 @implementation GPBSourceContextRoot 13 @implementation GPBSourceContextRoot
29 14
30 // No extensions in the file and no imports, so no need to generate
31 // +extensionRegistry.
32
33 @end 15 @end
34 16
35 #pragma mark - GPBSourceContextRoot_FileDescriptor 17 #pragma mark - GPBSourceContextRoot_FileDescriptor
36 18
37 static GPBFileDescriptor *GPBSourceContextRoot_FileDescriptor(void) { 19 static GPBFileDescriptor *GPBSourceContextRoot_FileDescriptor(void) {
38 // This is called by +initialize so there is no need to worry 20 // This is called by +initialize so there is no need to worry
39 // about thread safety of the singleton. 21 // about thread safety of the singleton.
40 static GPBFileDescriptor *descriptor = NULL; 22 static GPBFileDescriptor *descriptor = NULL;
41 if (!descriptor) { 23 if (!descriptor) {
42 GPB_DEBUG_CHECK_RUNTIME_VERSIONS(); 24 GPBDebugCheckRuntimeVersion();
43 descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf" 25 descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf"
44 objcPrefix:@"GPB"
45 syntax:GPBFileSyntaxProto3] ; 26 syntax:GPBFileSyntaxProto3] ;
46 } 27 }
47 return descriptor; 28 return descriptor;
48 } 29 }
49 30
50 #pragma mark - GPBSourceContext 31 #pragma mark - GPBSourceContext
51 32
52 @implementation GPBSourceContext 33 @implementation GPBSourceContext
53 34
54 @dynamic fileName; 35 @dynamic fileName;
(...skipping 19 matching lines...) Expand all
74 .dataType = GPBDataTypeString, 55 .dataType = GPBDataTypeString,
75 }, 56 },
76 }; 57 };
77 GPBDescriptor *localDescriptor = 58 GPBDescriptor *localDescriptor =
78 [GPBDescriptor allocDescriptorForClass:[GPBSourceContext class] 59 [GPBDescriptor allocDescriptorForClass:[GPBSourceContext class]
79 rootClass:[GPBSourceContextRoot class] 60 rootClass:[GPBSourceContextRoot class]
80 file:GPBSourceContextRoot_FileDescript or() 61 file:GPBSourceContextRoot_FileDescript or()
81 fields:fields 62 fields:fields
82 fieldCount:(uint32_t)(sizeof(fields) / sizeo f(GPBMessageFieldDescription)) 63 fieldCount:(uint32_t)(sizeof(fields) / sizeo f(GPBMessageFieldDescription))
83 storageSize:sizeof(GPBSourceContext__storage_ ) 64 storageSize:sizeof(GPBSourceContext__storage_ )
84 flags:GPBDescriptorInitializationFlag_N one]; 65 flags:0];
85 NSAssert(descriptor == nil, @"Startup recursed!"); 66 NSAssert(descriptor == nil, @"Startup recursed!");
86 descriptor = localDescriptor; 67 descriptor = localDescriptor;
87 } 68 }
88 return descriptor; 69 return descriptor;
89 } 70 }
90 71
91 @end 72 @end
92 73
93 74
94 #pragma clang diagnostic pop 75 #pragma clang diagnostic pop
95 76
96 // @@protoc_insertion_point(global_scope) 77 // @@protoc_insertion_point(global_scope)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698