Add missing qldoc and revert accidentilly commited threat model change

This commit is contained in:
Joe Farebrother
2024-12-11 11:54:01 +00:00
parent bcb08bbc7b
commit 5c8ef28d12
2 changed files with 12 additions and 1 deletions

View File

@@ -322,7 +322,17 @@ module Lxml {
/** Gets a reference to the `Element` class. */
API::Node classRef() { result = etreeRef().getMember(["Element", "_Element"]) }
/**
* A source of instances of `lxml.etree.Element` instances, extend this class to model new instances.
*
* This can include instantiations of the class, return values from function
* calls, or a special parameter that will be set when functions are called by an external
* library.
*
* Use the predicate `Element::instance()` to get references to instances of `lxml.etree.ElementTree` instances.
*/
abstract class InstanceSource instanceof API::Node {
/** Gets a textual representation of this element. */
string toString() { result = super.toString() }
}
@@ -410,6 +420,7 @@ module Lxml {
/** Provides models for instances of the `lxml.etree.ElementTree` class. */
module ElementTree {
/** Gets a reference to the `ElementTree` class. */
API::Node classRef() { result = etreeRef().getMember(["ElementTree", "_ElementTree"]) }
/**
@@ -422,6 +433,7 @@ module Lxml {
* Use the predicate `ElementTree::instance()` to get references to instances of `lxml.etree.ElementTree` instances.
*/
abstract class InstanceSource instanceof API::Node {
/** Gets a textual representation of this element. */
string toString() { result = super.toString() }
}