1
0
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:
Ian Lance Taylor 2008-09-10 13:24:47 -07:00
parent 667ef6c163
commit 203b55e319

View File

@ -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 {