mirror of
https://github.com/github/codeql.git
synced 2026-03-05 23:26:51 +01:00
Swift: add qldoc for ArrayContent and Array models
This commit is contained in:
@@ -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" }
|
||||
}
|
||||
|
||||
@@ -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<%") }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user