Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit 52d253a

Browse files
author
Sauyon Lee
committed
Add isRaw to StringLit
1 parent 33f4362 commit 52d253a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ql/src/semmle/go/Expr.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,8 @@ class RuneLit = CharLit;
343343
*/
344344
class StringLit extends @stringlit, BasicLit {
345345
override string getAPrimaryQlClass() { result = "StringLit" }
346+
347+
predicate isRaw() { this.getText().matches("`%`") }
346348
}
347349

348350
/**

0 commit comments

Comments
 (0)