зеркало из https://github.com/github/codeql.git
QL HB: Expand bindingset example [SD-3863]
This commit is contained in:
Родитель
acca48bd8f
Коммит
4f2c9fa3cb
|
@ -262,6 +262,10 @@ multiple binding set annotations, for example::
|
|||
x + 1 = y
|
||||
}
|
||||
|
||||
from int x, int y
|
||||
where y = 42 and plusOne(x, y)
|
||||
select x, y
|
||||
|
||||
Multiple binding sets specified this way are independent of each other. The above example means:
|
||||
- If ``x`` is bound, then ``x`` and ``y`` are bound.
|
||||
- If ``y`` is bound, then ``x`` and ``y`` are bound.
|
||||
|
|
Загрузка…
Ссылка в новой задаче