зеркало из https://github.com/github/codeql.git
Apply suggestions from code review
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com>
This commit is contained in:
Родитель
b8931d36ca
Коммит
4a5fa5993d
|
@ -605,7 +605,7 @@ module API {
|
|||
}
|
||||
|
||||
/**
|
||||
* Holds is them module `name` is imported.
|
||||
* Holds if the module `name` is imported.
|
||||
*
|
||||
* This is determined syntactically.
|
||||
*/
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/** Provides classes and predicates for defining flow summaries. */
|
||||
|
||||
import python
|
||||
import semmle.python.dataflow.new.DataFlow
|
||||
private import python
|
||||
private import semmle.python.dataflow.new.DataFlow
|
||||
private import internal.FlowSummaryImpl as Impl
|
||||
private import internal.DataFlowUtil
|
||||
private import internal.DataFlowPrivate
|
||||
|
|
|
@ -465,11 +465,11 @@ abstract class DataFlowCall extends TDataFlowCall {
|
|||
|
||||
/**
|
||||
* Gets the argument to this call that will be sent
|
||||
* to the `n`th parameter of the callable, if such exists.
|
||||
* to the `n`th parameter of the callable, if any.
|
||||
*/
|
||||
abstract Node getArg(int n);
|
||||
|
||||
/** Get the control flow node representing this call, if such exists. */
|
||||
/** Get the control flow node representing this call, if any. */
|
||||
abstract ControlFlowNode getNode();
|
||||
|
||||
/** Gets the location of this dataflow call. */
|
||||
|
@ -655,7 +655,7 @@ class LibraryCall extends NormalCall {
|
|||
* map(lambda x: x + 1, [1, 2, 3])
|
||||
* ```
|
||||
*
|
||||
* there is a call to the lambda argument inside `map`.
|
||||
* there is a synthesized call to the lambda argument inside `map`.
|
||||
*/
|
||||
class SummaryCall extends DataFlowCall, TSummaryCall {
|
||||
private FlowSummaryImpl::Public::SummarizedCallable c;
|
||||
|
|
Загрузка…
Ссылка в новой задаче