mirror of
https://github.com/github/codeql.git
synced 2025-12-18 18:10:39 +01:00
Will need subsequent PRs fixing up test failures (due to deprecated methods moving around), but other than that everything should be straight-forward.
10 lines
302 B
Plaintext
10 lines
302 B
Plaintext
import python
|
|
import Expressions.Formatting.AdvancedFormatting
|
|
|
|
from AdvancedFormatString a, string name, int start, int end
|
|
where
|
|
name = "'" + a.getFieldName(start, end) + "'"
|
|
or
|
|
name = a.getFieldNumber(start, end).toString()
|
|
select a.getLocation().getStartLine(), a.getText(), start, end, name
|