Apply suggestions from code review

Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com>
This commit is contained in:
yoff
2022-08-25 10:47:16 +02:00
committed by GitHub
parent b8931d36ca
commit 4a5fa5993d
3 changed files with 6 additions and 6 deletions

View File

@@ -605,7 +605,7 @@ module API {
}
/**
* Holds is them module `name` is imported.
* Holds if the module `name` is imported.
*
* This is determined syntactically.
*/

View File

@@ -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

View File

@@ -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;