ImportPath = string_lit . quoted name of the path, but we return it as an identifier, taking an alias from 'pathToAlias' map, it is filled by import statements
()
| 159 | // quoted name of the path, but we return it as an identifier, taking an alias |
| 160 | // from 'pathToAlias' map, it is filled by import statements |
| 161 | func (p *gc_parser) parse_package() *ast.Ident { |
| 162 | path, err := strconv.Unquote(p.expect(scanner.String)) |
| 163 | if err != nil { |
| 164 | panic(err) |
| 165 | } |
| 166 | |
| 167 | return ast.NewIdent(path) |
| 168 | } |
| 169 | |
| 170 | // ExportedName = "@" ImportPath "." dotIdentifier . |
| 171 | func (p *gc_parser) parse_exported_name() *ast.SelectorExpr { |
no test coverage detected