(e ast.Expr)
| 1067 | } |
| 1068 | |
| 1069 | func idString(e ast.Expr) (string, bool) { |
| 1070 | switch e := e.(type) { |
| 1071 | case *ast.IDExpr: |
| 1072 | return e.Name, true |
| 1073 | case *ast.DoubleQuoteExpr: |
| 1074 | return quoteString(e) |
| 1075 | } |
| 1076 | return "", false |
| 1077 | } |
| 1078 | |
| 1079 | func quoteString(e *ast.DoubleQuoteExpr) (string, bool) { |
| 1080 | v, err := sup.ParsePrimitive("string", e.Text) |
no test coverage detected