(node *exprpb.Expr)
| 797 | } |
| 798 | |
| 799 | func isBoolLiteral(node *exprpb.Expr) bool { |
| 800 | _, isConst := node.ExprKind.(*exprpb.Expr_ConstExpr) |
| 801 | if !isConst { |
| 802 | return false |
| 803 | } |
| 804 | _, isBool := node.GetConstExpr().ConstantKind.(*exprpb.Constant_BoolValue) |
| 805 | return isBool |
| 806 | } |
| 807 | |
| 808 | func isStringLiteral(node *exprpb.Expr) bool { |
| 809 | _, isConst := node.ExprKind.(*exprpb.Expr_ConstExpr) |