Skip to content

Commit b9be002

Browse files
author
Paolo Tranquilli
committed
Rust: improve TupleStructPat.toString
1 parent 7463c51 commit b9be002

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

rust/ql/.generated.list

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/ql/.gitattributes

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/ql/lib/codeql/rust/elements/internal/TupleStructPatImpl.qll

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// generated by codegen, remove this comment if you wish to edit this file
21
/**
32
* This module provides a hand-modifiable wrapper around the generated class `TupleStructPat`.
43
*
@@ -12,6 +11,7 @@ private import codeql.rust.elements.internal.generated.TupleStructPat
1211
* be referenced directly.
1312
*/
1413
module Impl {
14+
// the following QLdoc is generated: if you need to edit it, do it in the schema file
1515
/**
1616
* A tuple struct pattern. For example:
1717
* ```rust
@@ -22,5 +22,7 @@ module Impl {
2222
* };
2323
* ```
2424
*/
25-
class TupleStructPat extends Generated::TupleStructPat { }
25+
class TupleStructPat extends Generated::TupleStructPat {
26+
override string toString() { result = this.getPath().toAbbreviatedString() + "(...)" }
27+
}
2628
}

0 commit comments

Comments
 (0)