Python: Flask model now ready to be publicly exposed

With a single call-out for a member-predicate that is only for internal use.
This commit is contained in:
Rasmus Wriedt Larsen
2021-02-18 15:36:30 +01:00
parent 35876f1939
commit bb2613b02b

View File

@@ -15,7 +15,7 @@ private import semmle.python.ApiGraphs
* Provides models for the `flask` PyPI package.
* See https://flask.palletsprojects.com/en/1.1.x/.
*/
private module FlaskModel {
module Flask {
/** Provides models for flask view classes (defined in the `flask.views` module) */
module Views {
/**
@@ -188,7 +188,10 @@ private module FlaskModel {
result.getName() = "dispatch_request"
}
/** Gets a reference to the result of calling the `as_view` classmethod of this class. */
/**
* INTERNAL: Do not use.
* Gets a reference to the result of calling the `as_view` classmethod of this class.
*/
API::Node asViewResult() { result = api_node.getMember("as_view").getReturn() }
}