Skip to content

Commit dd6c5ba

Browse files
committed
Swift: update docs
1 parent 7b74478 commit dd6c5ba

File tree

5 files changed

+14
-5
lines changed

5 files changed

+14
-5
lines changed

swift/ql/.generated.list

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

swift/ql/lib/codeql/swift/elements/MacroRole.qll

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@
44

55
private import codeql.swift.generated.MacroRole
66

7+
/**
8+
* The role of a macro, for example #freestanding(declaration) or @attached(member).
9+
*/
710
class MacroRole extends Generated::MacroRole {
11+
/**
12+
* String representation of the role kind.
13+
*/
814
string getKindName() {
915
this.getKind() = 1 and result = "expression"
1016
or
@@ -25,6 +31,9 @@ class MacroRole extends Generated::MacroRole {
2531
this.getKind() = 256 and result = "extension"
2632
}
2733

34+
/**
35+
* String representation of the syntax kind.
36+
*/
2837
string getMacroSyntaxName() {
2938
this.getMacroSyntax() = 0 and result = "#freestanding"
3039
or

swift/ql/lib/codeql/swift/generated/MacroRole.qll

Lines changed: 1 addition & 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/generated/Raw.qll

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

swift/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1365,7 +1365,7 @@ class BorrowExpr(IdentityExpr):
13651365
@qltest.test_with('MacroDecl')
13661366
class MacroRole(AstNode):
13671367
"""
1368-
The role of a macro.
1368+
The role of a macro, for example #freestanding(declaration) or @attached(member).
13691369
"""
13701370
kind: int | doc("kind of this macro role (declaration, expression, member, etc.)")
13711371
macro_syntax: int | doc("#freestanding or @attached")

0 commit comments

Comments
 (0)