mirror of
https://github.com/golang/go
synced 2024-11-21 22:34:48 -07:00
Eliminate duplication of MethodDecl nonterminal by renaming
the one associated with interface types. R=gri DELTA=3 (0 added, 0 deleted, 3 changed) OCL=15092 CL=15096
This commit is contained in:
parent
667ef6c163
commit
203b55e319
@ -1090,9 +1090,9 @@ Interface types
|
||||
|
||||
An interface type denotes a set of methods.
|
||||
|
||||
InterfaceType = "interface" "{" [ MethodDeclList [ ";" ] ] "}" .
|
||||
MethodDeclList = MethodDecl { ";" MethodDecl } .
|
||||
MethodDecl = identifier FunctionType .
|
||||
InterfaceType = "interface" "{" [ MethodList [ ";" ] ] "}" .
|
||||
MethodList = Method { ";" Method } .
|
||||
Method = identifier FunctionType .
|
||||
|
||||
// A basic file interface.
|
||||
type File interface {
|
||||
|
Loading…
Reference in New Issue
Block a user