Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
5cc96d9a
Commit
5cc96d9a
authored
Jan 25, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
abb30701
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
t/neo/protogen.go
t/neo/protogen.go
+2
-2
No files found.
t/neo/protogen.go
View file @
5cc96d9a
...
@@ -868,7 +868,7 @@ func codegenType(path string, typ types.Type, obj types.Object, codegen CodeGene
...
@@ -868,7 +868,7 @@ func codegenType(path string, typ types.Type, obj types.Object, codegen CodeGene
if
typeSizeFixed1
(
u
.
Elem
())
{
if
typeSizeFixed1
(
u
.
Elem
())
{
codegen
.
genArray1
(
path
,
u
)
codegen
.
genArray1
(
path
,
u
)
}
else
{
}
else
{
var
i
int64
// XXX because `u.Len() int64`
var
i
int64
for
i
=
0
;
i
<
u
.
Len
();
i
++
{
for
i
=
0
;
i
<
u
.
Len
();
i
++
{
codegenType
(
fmt
.
Sprintf
(
"%v[%v]"
,
path
,
i
),
u
.
Elem
(),
obj
,
codegen
)
codegenType
(
fmt
.
Sprintf
(
"%v[%v]"
,
path
,
i
),
u
.
Elem
(),
obj
,
codegen
)
}
}
...
@@ -893,7 +893,7 @@ func codegenType(path string, typ types.Type, obj types.Object, codegen CodeGene
...
@@ -893,7 +893,7 @@ func codegenType(path string, typ types.Type, obj types.Object, codegen CodeGene
}
}
// generate
encoder/decode func
s for a type declaration typespec
// generate
size/encode/decode function
s for a type declaration typespec
// XXX name? -> genMethCode ? generateMethodCode ?
// XXX name? -> genMethCode ? generateMethodCode ?
func
generateCodecCode
(
typespec
*
ast
.
TypeSpec
,
codegen
CodeGenerator
)
string
{
func
generateCodecCode
(
typespec
*
ast
.
TypeSpec
,
codegen
CodeGenerator
)
string
{
// type & object which refers to this type
// type & object which refers to this type
...
...
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