(node *exprpb.Expr)
| 806 | } |
| 807 | |
| 808 | func isStringLiteral(node *exprpb.Expr) bool { |
| 809 | _, isConst := node.ExprKind.(*exprpb.Expr_ConstExpr) |
| 810 | if !isConst { |
| 811 | return false |
| 812 | } |
| 813 | _, isString := node.GetConstExpr().ConstantKind.(*exprpb.Constant_StringValue) |
| 814 | return isString |
| 815 | } |
| 816 | |
| 817 | // bytesToOctets converts byte sequences to a string using a three digit octal encoded value |
| 818 | // per byte. |