Skip to content

Commit 3b9ec2b

Browse files
committed
Swift: fix ObjectLiteralExpr docs
1 parent 0ccf81e commit 3b9ec2b

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

swift/ql/lib/codeql/swift/generated/expr/ObjectLiteralExpr.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ import codeql.swift.elements.expr.LiteralExpr
66

77
module Generated {
88
/**
9-
* `#fileLiteral`, `#imageLiteral` and `#colorLiteral` expressions, which are used in playgrounds.
9+
* An instance of `#fileLiteral`, `#imageLiteral` or `#colorLiteral` expressions, which are used in playgrounds.
1010
*/
1111
class ObjectLiteralExpr extends Synth::TObjectLiteralExpr, LiteralExpr {
1212
override string getAPrimaryQlClass() { result = "ObjectLiteralExpr" }
1313

1414
/**
15-
* Gets the
16-
* This is 0 for `#fileLiteral`, 1 for `#imageLiteral` and 2 for `#colorLiteral`.
17-
* .
15+
* Gets the kind of this object literal expression.
16+
*
17+
* This is 0 for `#fileLiteral`, 1 for `#imageLiteral` and 2 for `#colorLiteral`.
1818
*/
1919
int getKind() {
2020
result = Synth::convertObjectLiteralExprToRaw(this).(Raw::ObjectLiteralExpr).getKind()

swift/schema.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -578,11 +578,9 @@ class NilLiteralExpr(LiteralExpr):
578578

579579
class ObjectLiteralExpr(LiteralExpr):
580580
"""
581-
`#fileLiteral`, `#imageLiteral` and `#colorLiteral` expressions, which are used in playgrounds.
581+
An instance of `#fileLiteral`, `#imageLiteral` or `#colorLiteral` expressions, which are used in playgrounds.
582582
"""
583-
kind: int | doc("""
584-
This is 0 for `#fileLiteral`, 1 for `#imageLiteral` and 2 for `#colorLiteral`.
585-
""")
583+
kind: int | desc("""This is 0 for `#fileLiteral`, 1 for `#imageLiteral` and 2 for `#colorLiteral`.""")
586584
arguments: list[Argument] | child
587585

588586
class OptionalTryExpr(AnyTryExpr):

0 commit comments

Comments
 (0)