mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
10 lines
263 B
Plaintext
10 lines
263 B
Plaintext
import javascript
|
|
|
|
class CommaToken extends PunctuatorToken {
|
|
CommaToken() { this.getValue() = "," }
|
|
}
|
|
|
|
query predicate test_query2(CommaToken comma, string res) {
|
|
comma.getNextToken() instanceof CommaToken and res = "Omitted array elements are bad style."
|
|
}
|