(ctx antlrgen.IQualifiedNameContext)
| 140 | } |
| 141 | |
| 142 | func (v *ASTBuilder) getQualifiedName(ctx antlrgen.IQualifiedNameContext) *tree.QualifiedName { |
| 143 | var result *tree.QualifiedName |
| 144 | if ctxQualifiedName, ok := ctx.(*antlrgen.QualifiedNameContext); ok { |
| 145 | ctxArr := ctxQualifiedName.AllIdentifier() |
| 146 | parts := make([]string, len(ctxArr)) |
| 147 | for i, c := range ctxArr { |
| 148 | if value, ok := v.Visit(c).(*tree.Identifier); ok { |
| 149 | parts[i] = value.Value |
| 150 | } |
| 151 | } |
| 152 | result = tree.NewQualifiedName(parts, nil) |
| 153 | } |
| 154 | return result |
| 155 | } |
| 156 | |
| 157 | // VisitTerminal visits the node |
| 158 | func (v *ASTBuilder) VisitTerminal(node antlr.TerminalNode) interface{} { return nil } |
no test coverage detected