1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 07:55:12 +03:00

Add interface test cases for method specs without return types

This commit is contained in:
Rick Winfrey 2017-11-30 16:55:38 -08:00
parent 57015bc8bd
commit be3d497f8c
6 changed files with 56 additions and 4 deletions

View File

@ -8,4 +8,8 @@ i1
io.Reader
SomeMethod(s string) error
}
// Option is an optional value or context to a transformation, used at pipeline
type OptionA interface {
public()
}
}

View File

@ -8,4 +8,8 @@ i1
io.Reader
SomeMethod(s string) error
}
// Option is an optional value or context to a transformation, used at pipeline
type OptionB interface {
private()
}
}

View File

@ -33,4 +33,16 @@
(Identifier)
(
(Identifier)
(Identifier)))))))))
(Identifier))))))
(Context
(Comment)
(
(Type
{ (Identifier)
->(Identifier) }
(Interface
(MethodSignature
(Empty)
{ (Identifier)
->(Identifier) }
([])))))))))

View File

@ -33,4 +33,16 @@
(Identifier)
(
(Identifier)
(Identifier)))))))))
(Identifier))))))
(Context
(Comment)
(
(Type
{ (Identifier)
->(Identifier) }
(Interface
(MethodSignature
(Empty)
{ (Identifier)
->(Identifier) }
([])))))))))

View File

@ -30,4 +30,14 @@
(Identifier)
(
(Identifier)
(Identifier)))))))))
(Identifier))))))
(Context
(Comment)
(
(Type
(Identifier)
(Interface
(MethodSignature
(Empty)
(Identifier)
([])))))))))

View File

@ -30,4 +30,14 @@
(Identifier)
(
(Identifier)
(Identifier)))))))))
(Identifier))))))
(Context
(Comment)
(
(Type
(Identifier)
(Interface
(MethodSignature
(Empty)
(Identifier)
([])))))))))