(expr compiledExpr)
| 858 | } |
| 859 | |
| 860 | func (c *compiler) checkConstantString(expr compiledExpr) (unistring.String, bool) { |
| 861 | if expr.constant() { |
| 862 | if val, ex := c.evalConst(expr); ex == nil { |
| 863 | if s, ok := val.(String); ok { |
| 864 | return s.string(), true |
| 865 | } |
| 866 | } |
| 867 | } |
| 868 | return "", false |
| 869 | } |
| 870 | |
| 871 | func (c *compiler) compileBracketExpression(v *ast.BracketExpression) compiledExpr { |
| 872 | if sup, ok := v.Left.(*ast.SuperExpression); ok { |
no test coverage detected