Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
2d034f2a
Unverified
Commit
2d034f2a
authored
Oct 14, 2016
by
Clayton Coleman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bump(k8s.io/gengo):6a1c24d7f08e671c244023ca9367d2dfbfaf57fc
parent
d7f1484e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
11 deletions
+20
-11
Godeps.json
Godeps/Godeps.json
+10
-10
parse.go
vendor/k8s.io/gengo/parser/parse.go
+10
-1
No files found.
Godeps/Godeps.json
View file @
2d034f2a
...
@@ -2586,43 +2586,43 @@
...
@@ -2586,43 +2586,43 @@
},
},
{
{
"ImportPath"
:
"k8s.io/gengo/args"
,
"ImportPath"
:
"k8s.io/gengo/args"
,
"Rev"
:
"
4a9ebbace691333e73f9978d798b1bad6c53a50d
"
"Rev"
:
"
6a1c24d7f08e671c244023ca9367d2dfbfaf57fc
"
},
},
{
{
"ImportPath"
:
"k8s.io/gengo/examples/deepcopy-gen/generators"
,
"ImportPath"
:
"k8s.io/gengo/examples/deepcopy-gen/generators"
,
"Rev"
:
"
4a9ebbace691333e73f9978d798b1bad6c53a50d
"
"Rev"
:
"
6a1c24d7f08e671c244023ca9367d2dfbfaf57fc
"
},
},
{
{
"ImportPath"
:
"k8s.io/gengo/examples/defaulter-gen/generators"
,
"ImportPath"
:
"k8s.io/gengo/examples/defaulter-gen/generators"
,
"Rev"
:
"
4a9ebbace691333e73f9978d798b1bad6c53a50d
"
"Rev"
:
"
6a1c24d7f08e671c244023ca9367d2dfbfaf57fc
"
},
},
{
{
"ImportPath"
:
"k8s.io/gengo/examples/import-boss/generators"
,
"ImportPath"
:
"k8s.io/gengo/examples/import-boss/generators"
,
"Rev"
:
"
4a9ebbace691333e73f9978d798b1bad6c53a50d
"
"Rev"
:
"
6a1c24d7f08e671c244023ca9367d2dfbfaf57fc
"
},
},
{
{
"ImportPath"
:
"k8s.io/gengo/examples/set-gen/generators"
,
"ImportPath"
:
"k8s.io/gengo/examples/set-gen/generators"
,
"Rev"
:
"
4a9ebbace691333e73f9978d798b1bad6c53a50d
"
"Rev"
:
"
6a1c24d7f08e671c244023ca9367d2dfbfaf57fc
"
},
},
{
{
"ImportPath"
:
"k8s.io/gengo/examples/set-gen/sets"
,
"ImportPath"
:
"k8s.io/gengo/examples/set-gen/sets"
,
"Rev"
:
"
4a9ebbace691333e73f9978d798b1bad6c53a50d
"
"Rev"
:
"
6a1c24d7f08e671c244023ca9367d2dfbfaf57fc
"
},
},
{
{
"ImportPath"
:
"k8s.io/gengo/generator"
,
"ImportPath"
:
"k8s.io/gengo/generator"
,
"Rev"
:
"
4a9ebbace691333e73f9978d798b1bad6c53a50d
"
"Rev"
:
"
6a1c24d7f08e671c244023ca9367d2dfbfaf57fc
"
},
},
{
{
"ImportPath"
:
"k8s.io/gengo/namer"
,
"ImportPath"
:
"k8s.io/gengo/namer"
,
"Rev"
:
"
4a9ebbace691333e73f9978d798b1bad6c53a50d
"
"Rev"
:
"
6a1c24d7f08e671c244023ca9367d2dfbfaf57fc
"
},
},
{
{
"ImportPath"
:
"k8s.io/gengo/parser"
,
"ImportPath"
:
"k8s.io/gengo/parser"
,
"Rev"
:
"
4a9ebbace691333e73f9978d798b1bad6c53a50d
"
"Rev"
:
"
6a1c24d7f08e671c244023ca9367d2dfbfaf57fc
"
},
},
{
{
"ImportPath"
:
"k8s.io/gengo/types"
,
"ImportPath"
:
"k8s.io/gengo/types"
,
"Rev"
:
"
4a9ebbace691333e73f9978d798b1bad6c53a50d
"
"Rev"
:
"
6a1c24d7f08e671c244023ca9367d2dfbfaf57fc
"
},
},
{
{
"ImportPath"
:
"k8s.io/heapster/metrics/api/v1/types"
,
"ImportPath"
:
"k8s.io/heapster/metrics/api/v1/types"
,
...
...
vendor/k8s.io/gengo/parser/parse.go
View file @
2d034f2a
...
@@ -453,6 +453,7 @@ func (b *Builder) findTypesIn(pkgPath string, u *types.Universe) error {
...
@@ -453,6 +453,7 @@ func (b *Builder) findTypesIn(pkgPath string, u *types.Universe) error {
if
ok
{
if
ok
{
t
:=
b
.
walkType
(
*
u
,
nil
,
tn
.
Type
())
t
:=
b
.
walkType
(
*
u
,
nil
,
tn
.
Type
())
c1
:=
b
.
priorCommentLines
(
obj
.
Pos
(),
1
)
c1
:=
b
.
priorCommentLines
(
obj
.
Pos
(),
1
)
// c1.Text() is safe if c1 is nil
t
.
CommentLines
=
splitLines
(
c1
.
Text
())
t
.
CommentLines
=
splitLines
(
c1
.
Text
())
if
c1
==
nil
{
if
c1
==
nil
{
t
.
SecondClosestCommentLines
=
splitLines
(
b
.
priorCommentLines
(
obj
.
Pos
(),
2
)
.
Text
())
t
.
SecondClosestCommentLines
=
splitLines
(
b
.
priorCommentLines
(
obj
.
Pos
(),
2
)
.
Text
())
...
@@ -463,7 +464,15 @@ func (b *Builder) findTypesIn(pkgPath string, u *types.Universe) error {
...
@@ -463,7 +464,15 @@ func (b *Builder) findTypesIn(pkgPath string, u *types.Universe) error {
tf
,
ok
:=
obj
.
(
*
tc
.
Func
)
tf
,
ok
:=
obj
.
(
*
tc
.
Func
)
// We only care about functions, not concrete/abstract methods.
// We only care about functions, not concrete/abstract methods.
if
ok
&&
tf
.
Type
()
!=
nil
&&
tf
.
Type
()
.
(
*
tc
.
Signature
)
.
Recv
()
==
nil
{
if
ok
&&
tf
.
Type
()
!=
nil
&&
tf
.
Type
()
.
(
*
tc
.
Signature
)
.
Recv
()
==
nil
{
b
.
addFunction
(
*
u
,
nil
,
tf
)
t
:=
b
.
addFunction
(
*
u
,
nil
,
tf
)
c1
:=
b
.
priorCommentLines
(
obj
.
Pos
(),
1
)
// c1.Text() is safe if c1 is nil
t
.
CommentLines
=
splitLines
(
c1
.
Text
())
if
c1
==
nil
{
t
.
SecondClosestCommentLines
=
splitLines
(
b
.
priorCommentLines
(
obj
.
Pos
(),
2
)
.
Text
())
}
else
{
t
.
SecondClosestCommentLines
=
splitLines
(
b
.
priorCommentLines
(
c1
.
List
[
0
]
.
Slash
,
2
)
.
Text
())
}
}
}
tv
,
ok
:=
obj
.
(
*
tc
.
Var
)
tv
,
ok
:=
obj
.
(
*
tc
.
Var
)
if
ok
&&
!
tv
.
IsField
()
{
if
ok
&&
!
tv
.
IsField
()
{
...
...
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