Swift: add qldoc for ArrayContent and Array models

This commit is contained in:
Robert Marsh
2023-07-18 14:08:33 +00:00
parent dfa5e18988
commit 1fac08ef6c
2 changed files with 8 additions and 0 deletions

View File

@@ -207,6 +207,7 @@ module Content {
}
}
/** An element of an array at an unknown index */
class ArrayContent extends Content, TArrayContent {
override string toString() { result = "Array element" }
}

View File

@@ -1,6 +1,13 @@
/**
* Provides models for `Array` and related Swift classes.
*/
import swift
private import codeql.swift.dataflow.ExternalFlow
/**
* An instance of the `Array` type.
*/
class ArrayType extends BoundGenericType {
ArrayType() { this.getName().matches("Array<%") }
}