VisitUseDecl visits a parse tree produced by MangleParser#useDecl.
(ctx *gen.UseDeclContext)
| 261 | |
| 262 | // VisitUseDecl visits a parse tree produced by MangleParser#useDecl. |
| 263 | func (p Parser) VisitUseDecl(ctx *gen.UseDeclContext) any { |
| 264 | name := ast.NewAtom("name", ast.String(ctx.NAME().GetText())) |
| 265 | atoms := []ast.Atom{name} |
| 266 | if atomsCtx := ctx.Atoms(); atomsCtx != nil { |
| 267 | atoms = append(atoms, p.Visit(atomsCtx).([]ast.Atom)...) |
| 268 | } |
| 269 | return ast.Decl{DeclaredAtom: ast.Atom{Predicate: symbols.Use}, Descr: atoms} |
| 270 | } |
| 271 | |
| 272 | // VisitDecl visits a parse tree produced by MangleParser#decl. |
| 273 | func (p Parser) VisitDecl(ctx *gen.DeclContext) any { |