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
51a2f5ea
Commit
51a2f5ea
authored
Jun 22, 2009
by
Jon Skeet
Committed by
Jon Skeet
Jun 22, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused class (was going to be used for multi-file support)
parent
36721730
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
36 deletions
+1
-36
Generator.cs
src/ProtoGen/Generator.cs
+0
-8
ProtoGen.csproj
src/ProtoGen/ProtoGen.csproj
+1
-3
SourceFileGenerator.cs
src/ProtoGen/SourceFileGenerator.cs
+0
-25
No files found.
src/ProtoGen/Generator.cs
View file @
51a2f5ea
...
...
@@ -52,17 +52,9 @@ namespace Google.ProtocolBuffers.ProtoGen {
using
(
TextWriter
textWriter
=
File
.
CreateText
(
Path
.
Combine
(
options
.
OutputDirectory
,
descriptor
.
CSharpOptions
.
UmbrellaClassname
+
".cs"
)))
{
TextGenerator
writer
=
new
TextGenerator
(
textWriter
);
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>
/// 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.
...
...
src/ProtoGen/ProtoGen.csproj
View file @
51a2f5ea
...
...
@@ -54,7 +54,6 @@
<Compile
Include=
"RepeatedMessageFieldGenerator.cs"
/>
<Compile
Include=
"RepeatedPrimitiveFieldGenerator.cs"
/>
<Compile
Include=
"ServiceGenerator.cs"
/>
<Compile
Include=
"SourceFileGenerator.cs"
/>
<Compile
Include=
"DependencyResolutionException.cs"
/>
<Compile
Include=
"Generator.cs"
/>
<Compile
Include=
"GeneratorOptions.cs"
/>
...
...
@@ -84,4 +83,4 @@
<Target Name="AfterBuild">
</Target>
-->
</Project>
\ No newline at end of file
</Project>
src/ProtoGen/SourceFileGenerator.cs
deleted
100644 → 0
View file @
36721730
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