(p *PrettyCfg)
| 2409 | } |
| 2410 | |
| 2411 | func (node *AnnotateTypeExpr) doc(p *PrettyCfg) pretty.Doc { |
| 2412 | if node.SyntaxMode == AnnotateShort { |
| 2413 | if typ, ok := GetStaticallyKnownType(node.Type); ok { |
| 2414 | switch typ.Family() { |
| 2415 | case types.JsonFamily: |
| 2416 | if sv, ok := node.Expr.(*StrVal); ok && p.JSONFmt { |
| 2417 | return p.jsonCast(sv, ":::", typ) |
| 2418 | } |
| 2419 | } |
| 2420 | } |
| 2421 | } |
| 2422 | return p.docAsString(node) |
| 2423 | } |
| 2424 | |
| 2425 | func (node *DeclareCursor) docTable(p *PrettyCfg) []pretty.TableRow { |
| 2426 | optionsRow := pretty.Nil |
nothing calls this directly
no test coverage detected