Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
37a7983a
Commit
37a7983a
authored
Jun 25, 2009
by
Jon Skeet
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git@github.com:jskeet/dotnet-protobufs
parents
2178b93b
51a2f5ea
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
34 deletions
+0
-34
Generator.cs
src/ProtoGen/Generator.cs
+0
-8
ProtoGen.csproj
src/ProtoGen/ProtoGen.csproj
+0
-1
SourceFileGenerator.cs
src/ProtoGen/SourceFileGenerator.cs
+0
-25
No files found.
src/ProtoGen/Generator.cs
View file @
37a7983a
...
@@ -52,17 +52,9 @@ namespace Google.ProtocolBuffers.ProtoGen {
...
@@ -52,17 +52,9 @@ namespace Google.ProtocolBuffers.ProtoGen {
using
(
TextWriter
textWriter
=
File
.
CreateText
(
Path
.
Combine
(
options
.
OutputDirectory
,
descriptor
.
CSharpOptions
.
UmbrellaClassname
+
".cs"
)))
{
using
(
TextWriter
textWriter
=
File
.
CreateText
(
Path
.
Combine
(
options
.
OutputDirectory
,
descriptor
.
CSharpOptions
.
UmbrellaClassname
+
".cs"
)))
{
TextGenerator
writer
=
new
TextGenerator
(
textWriter
);
TextGenerator
writer
=
new
TextGenerator
(
textWriter
);
ucg
.
Generate
(
writer
);
ucg
.
Generate
(
writer
);
/*
GenerateSiblings(umbrellaSource, descriptor, descriptor.MessageTypes);
GenerateSiblings(umbrellaSource, descriptor, descriptor.EnumTypes);
GenerateSiblings(umbrellaSource, descriptor, descriptor.Services);*/
}
}
}
}
private
static
void
GenerateSiblings
<
T
>(
SourceFileGenerator
parentSourceGenerator
,
FileDescriptor
file
,
IEnumerable
<
T
>
siblings
)
where
T
:
IDescriptor
{
}
/// <summary>
/// <summary>
/// Resolves any dependencies and converts FileDescriptorProtos into FileDescriptors.
/// Resolves any dependencies and converts FileDescriptorProtos into FileDescriptors.
/// The list returned is in the same order as the protos are listed in the descriptor set.
/// The list returned is in the same order as the protos are listed in the descriptor set.
...
...
src/ProtoGen/ProtoGen.csproj
View file @
37a7983a
...
@@ -54,7 +54,6 @@
...
@@ -54,7 +54,6 @@
<Compile
Include=
"RepeatedMessageFieldGenerator.cs"
/>
<Compile
Include=
"RepeatedMessageFieldGenerator.cs"
/>
<Compile
Include=
"RepeatedPrimitiveFieldGenerator.cs"
/>
<Compile
Include=
"RepeatedPrimitiveFieldGenerator.cs"
/>
<Compile
Include=
"ServiceGenerator.cs"
/>
<Compile
Include=
"ServiceGenerator.cs"
/>
<Compile
Include=
"SourceFileGenerator.cs"
/>
<Compile
Include=
"DependencyResolutionException.cs"
/>
<Compile
Include=
"DependencyResolutionException.cs"
/>
<Compile
Include=
"Generator.cs"
/>
<Compile
Include=
"Generator.cs"
/>
<Compile
Include=
"GeneratorOptions.cs"
/>
<Compile
Include=
"GeneratorOptions.cs"
/>
...
...
src/ProtoGen/SourceFileGenerator.cs
deleted
100644 → 0
View file @
2178b93b
using
System.IO
;
namespace
Google.ProtocolBuffers.ProtoGen
{
/// <summary>
/// Generator to hold a TextGenerator, generate namespace aliases etc.
/// Each source file created uses one of these, and it can be used to create
/// multiple classes within the same file.
/// </summary>
internal
class
SourceFileGenerator
{
private
readonly
TextGenerator
output
;
private
SourceFileGenerator
(
TextWriter
writer
)
{
output
=
new
TextGenerator
(
writer
);
}
/// <summary>
/// Creates a ClassFileGenerator for the given writer, which will be closed
/// when the instance is disposed. The specified namespace is created, if it's non-null.
/// </summary>
internal
static
SourceFileGenerator
ForWriter
(
TextWriter
writer
)
{
return
new
SourceFileGenerator
(
writer
);
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment