Export = PackageClause { Decl } "$$" . PackageClause = "package" identifier [ "safe" ] "\n" .
(callback func(string, ast.Decl))
| 669 | // Export = PackageClause { Decl } "$$" . |
| 670 | // PackageClause = "package" identifier [ "safe" ] "\n" . |
| 671 | func (p *gc_parser) parse_export(callback func(string, ast.Decl)) { |
| 672 | p.expect_keyword("package") |
| 673 | p.pfc.defalias = p.expect(scanner.Ident) |
| 674 | if p.tok != '\n' { |
| 675 | p.expect_keyword("safe") |
| 676 | } |
| 677 | p.expect('\n') |
| 678 | |
| 679 | for p.tok != '$' && p.tok != scanner.EOF { |
| 680 | pkg, decl := p.parse_decl() |
| 681 | if decl != nil { |
| 682 | callback(pkg, decl) |
| 683 | } |
| 684 | } |
| 685 | } |
nothing calls this directly
no test coverage detected