[Rust] Get type of expression
Đang mở
question
Rust
- Ngôn ngữ chính
- CodeQL
- Star
- 10.1k
- Fork
- 2.1k
- Merge trung bình
- 2 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 141
Mô tả
**Description of the issue**
How do I get the type of an expression in Rust?
For example, I want to constrain this to only accesses on string-like expressions.
```ql
private class IndexExprOnNonConstantString extends IndexExpr {
IndexExprOnNonConstantString() { not this.getBase() instanceof StringLiteralExpr }
}
```
**Actual**: No `getType` predicate on expr.
**Expected**: Predicate to get type of expr.
When will support be added for an - in my understanding - very basic feature?
Or is there a workaround/internal API?
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.