Commit f96099db authored by Robert Griesemer's avatar Robert Griesemer

Cleanups:

- remove visitor pattern interface (not used)
- added non-exported "branding" methods to enforce
  node hierarchy

R=rsc
DELTA=174  (13 added, 92 deleted, 69 changed)
OCL=33838
CL=33963
parent ea62b344
This diff is collapsed.
......@@ -1793,7 +1793,7 @@ func (p *parser) parseGenDecl(keyword token.Token, f parseSpecFunction, getSemi
// convert vector
specs := make([]ast.Spec, list.Len());
for i := 0; i < list.Len(); i++ {
specs[i] = list.At(i);
specs[i] = list.At(i).(ast.Spec);
}
return &ast.GenDecl{doc, pos, keyword, lparen, specs, rparen}, gotSemi;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment