Skip to content

Commit 7b181a2

Browse files
committed
Swift: change doc of Immediate property getters
1 parent 6830c2f commit 7b181a2

File tree

114 files changed

+336
-168
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+336
-168
lines changed

swift/codegen/templates/ql_class.mustache

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ module Generated {
6060
{{#type_is_class}}
6161
/**
6262
* {{>ql_property_doc}} *
63-
* This includes nodes from the "hidden" AST.
63+
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
64+
* behaviour of both the `Immediate` and non-`Immediate` versions.
6465
*/
6566
{{type}} getImmediate{{singular}}({{#is_repeated}}int index{{/is_repeated}}) {
6667
{{^ipa}}

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ module Generated {
1010
/**
1111
* Gets the self parameter of this callable, if it exists.
1212
*
13-
* This includes nodes from the "hidden" AST.
13+
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
14+
* behaviour of both the `Immediate` and non-`Immediate` versions.
1415
*/
1516
ParamDecl getImmediateSelfParam() {
1617
result =
@@ -32,7 +33,8 @@ module Generated {
3233
/**
3334
* Gets the `index`th parameter of this callable (0-based).
3435
*
35-
* This includes nodes from the "hidden" AST.
36+
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
37+
* behaviour of both the `Immediate` and non-`Immediate` versions.
3638
*/
3739
ParamDecl getImmediateParam(int index) {
3840
result =
@@ -59,7 +61,8 @@ module Generated {
5961
/**
6062
* Gets the body of this callable, if it exists.
6163
*
62-
* This includes nodes from the "hidden" AST.
64+
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
65+
* behaviour of both the `Immediate` and non-`Immediate` versions.
6366
*/
6467
BraceStmt getImmediateBody() {
6568
result =

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ module Generated {
99
/**
1010
* Gets the location associated with this element in the code, if it exists.
1111
*
12-
* This includes nodes from the "hidden" AST.
12+
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
13+
* behaviour of both the `Immediate` and non-`Immediate` versions.
1314
*/
1415
Location getImmediateLocation() {
1516
result =

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ module Generated {
99
/**
1010
* Gets the file of this location.
1111
*
12-
* This includes nodes from the "hidden" AST.
12+
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
13+
* behaviour of both the `Immediate` and non-`Immediate` versions.
1314
*/
1415
File getImmediateFile() {
1516
result =

swift/ql/lib/codeql/swift/generated/decl/AbstractStorageDecl.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ module Generated {
99
/**
1010
* Gets the `index`th accessor declaration of this abstract storage declaration (0-based).
1111
*
12-
* This includes nodes from the "hidden" AST.
12+
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
13+
* behaviour of both the `Immediate` and non-`Immediate` versions.
1314
*/
1415
AccessorDecl getImmediateAccessorDecl(int index) {
1516
result =

swift/ql/lib/codeql/swift/generated/decl/Decl.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ module Generated {
99
/**
1010
* Gets the module of this declaration.
1111
*
12-
* This includes nodes from the "hidden" AST.
12+
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
13+
* behaviour of both the `Immediate` and non-`Immediate` versions.
1314
*/
1415
ModuleDecl getImmediateModule() {
1516
result =

swift/ql/lib/codeql/swift/generated/decl/EnumCaseDecl.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ module Generated {
1111
/**
1212
* Gets the `index`th element of this enum case declaration (0-based).
1313
*
14-
* This includes nodes from the "hidden" AST.
14+
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
15+
* behaviour of both the `Immediate` and non-`Immediate` versions.
1516
*/
1617
EnumElementDecl getImmediateElement(int index) {
1718
result =

swift/ql/lib/codeql/swift/generated/decl/EnumElementDecl.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ module Generated {
1818
/**
1919
* Gets the `index`th parameter of this enum element declaration (0-based).
2020
*
21-
* This includes nodes from the "hidden" AST.
21+
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
22+
* behaviour of both the `Immediate` and non-`Immediate` versions.
2223
*/
2324
ParamDecl getImmediateParam(int index) {
2425
result =

swift/ql/lib/codeql/swift/generated/decl/ExtensionDecl.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ module Generated {
1313
/**
1414
* Gets the extended type declaration of this extension declaration.
1515
*
16-
* This includes nodes from the "hidden" AST.
16+
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
17+
* behaviour of both the `Immediate` and non-`Immediate` versions.
1718
*/
1819
NominalTypeDecl getImmediateExtendedTypeDecl() {
1920
result =

swift/ql/lib/codeql/swift/generated/decl/GenericContext.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ module Generated {
99
/**
1010
* Gets the `index`th generic type parameter of this generic context (0-based).
1111
*
12-
* This includes nodes from the "hidden" AST.
12+
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
13+
* behaviour of both the `Immediate` and non-`Immediate` versions.
1314
*/
1415
GenericTypeParamDecl getImmediateGenericTypeParam(int index) {
1516
result =

0 commit comments

Comments
 (0)