Skip to content

Commit b048268

Browse files
committed
Swift: Add some QLDoc.
1 parent 4f39cb6 commit b048268

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

swift/ql/lib/codeql/swift/elements/decl/TypeAliasDecl.qll

Lines changed: 6 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

swift/ql/lib/codeql/swift/elements/type/NominalType.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ private import codeql.swift.generated.type.NominalType
22
private import codeql.swift.elements.decl.NominalTypeDecl
33
private import codeql.swift.elements.type.Type
44

5+
/**
6+
* A class, struct, enum or protocol.
7+
*/
58
class NominalType extends Generated::NominalType {
69
override Type getABaseType() { result = this.getDeclaration().(NominalTypeDecl).getABaseType() }
710

swift/ql/lib/codeql/swift/elements/type/TypeAliasType.qll

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
private import codeql.swift.elements.type.Type
22
private import codeql.swift.generated.type.TypeAliasType
33

4+
/**
5+
* A type alias to another type. For example:
6+
* ```
7+
* typealias MyInt = Int
8+
* ```
9+
*/
410
class TypeAliasType extends Generated::TypeAliasType {
511
/**
612
* Gets the aliased type of this type alias type.

0 commit comments

Comments
 (0)