Skip to content

Commit 4dff589

Browse files
committed
Add nomagic pragma to Literal
1 parent 29d1858 commit 4dff589

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

go/ql/lib/semmle/go/Expr.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ class Ellipsis extends @ellipsis, Expr {
236236
* ```
237237
*/
238238
class Literal extends Expr {
239+
pragma[nomagic]
239240
Literal() {
240241
this instanceof @basiclit or this instanceof @funclit or this instanceof @compositelit
241242
}

0 commit comments

Comments
 (0)