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
e234691b
Commit
e234691b
authored
Feb 07, 2015
by
csharptest
Committed by
rogerk
Feb 07, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build error for missing class HashSet on some platforms
parent
569212f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
Generator.cs
src/ProtoGen/Generator.cs
+7
-2
No files found.
src/ProtoGen/Generator.cs
View file @
e234691b
...
...
@@ -89,7 +89,12 @@ namespace Google.ProtocolBuffers.ProtoGen
names
.
Add
(
file
,
true
);
}
var
filesToGenerate
=
new
HashSet
<
string
>(
request
.
FileToGenerateList
);
//ROK - Changed to dictionary from HashSet to allow 2.0 compile
var
filesToGenerate
=
new
Dictionary
<
string
,
string
>(
StringComparer
.
OrdinalIgnoreCase
);
foreach
(
var
item
in
request
.
FileToGenerateList
)
{
filesToGenerate
[
item
]
=
null
;
}
foreach
(
FileDescriptor
descriptor
in
descriptors
)
{
// Optionally exclude descriptors in google.protobuf
...
...
@@ -97,7 +102,7 @@ namespace Google.ProtocolBuffers.ProtoGen
{
continue
;
}
if
(
filesToGenerate
.
Contains
(
descriptor
.
Name
))
if
(
filesToGenerate
.
Contains
Key
(
descriptor
.
Name
))
{
Generate
(
descriptor
,
duplicates
,
response
);
}
...
...
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