Skip to content

Commit

Permalink
Rust: AST: add docs with examples for qltest
Browse files Browse the repository at this point in the history
  • Loading branch information
aibaars committed Sep 12, 2024
1 parent 7af259c commit 280b119
Show file tree
Hide file tree
Showing 215 changed files with 2,349 additions and 80 deletions.
5 changes: 4 additions & 1 deletion rust/extractor/src/translate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,10 @@ impl CrateTranslator<'_> {
}
}
fn emit_type_ref(&mut self, _type_ref: &TypeRef) -> trap::Label {
self.emit_unimplemented(None)
self.trap.emit(generated::TypeRef {
id: TrapId::Star,
location: None,
})
}
fn emit_match_arm(
&mut self,
Expand Down
188 changes: 125 additions & 63 deletions rust/ql/.generated.list

Large diffs are not rendered by default.

66 changes: 64 additions & 2 deletions rust/ql/.gitattributes

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions rust/ql/lib/codeql/rust/elements/AsyncBlockExpr.qll

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions rust/ql/lib/codeql/rust/elements/AwaitExpr.qll

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions rust/ql/lib/codeql/rust/elements/BecomeExpr.qll

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions rust/ql/lib/codeql/rust/elements/BinaryOpExpr.qll

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions rust/ql/lib/codeql/rust/elements/BlockExpr.qll

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions rust/ql/lib/codeql/rust/elements/BoxExpr.qll

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions rust/ql/lib/codeql/rust/elements/BreakExpr.qll

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions rust/ql/lib/codeql/rust/elements/CallExpr.qll

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions rust/ql/lib/codeql/rust/elements/CastExpr.qll

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions rust/ql/lib/codeql/rust/elements/ConstExpr.qll

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions rust/ql/lib/codeql/rust/elements/ContinueExpr.qll

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions rust/ql/lib/codeql/rust/elements/FieldExpr.qll

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions rust/ql/lib/codeql/rust/elements/IfExpr.qll

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions rust/ql/lib/codeql/rust/elements/IndexExpr.qll

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions rust/ql/lib/codeql/rust/elements/LetExpr.qll

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions rust/ql/lib/codeql/rust/elements/LoopExpr.qll

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions rust/ql/lib/codeql/rust/elements/MatchArm.qll

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions rust/ql/lib/codeql/rust/elements/MatchExpr.qll

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions rust/ql/lib/codeql/rust/elements/MethodCallExpr.qll

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 280b119

Please sign in to comment.