Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cc478eb

Browse files
committed
Kotlin: Add comments on enum test
1 parent 0319909 commit cc478eb

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

java/ql/test/kotlin/library-tests/comments/comments.expected

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ comments
55
| comments.kt:19:5:22:7 | /**\n * Adds a [member] to this group.\n * @return the new size of the group.\n */ | /**\n * Adds a [member] to this group.\n * @return the new size of the group.\n */ |
66
| comments.kt:24:9:24:25 | // A line comment | // A line comment |
77
| comments.kt:28:5:30:6 | /*\n A block comment\n */ | /*\n A block comment\n */ |
8+
| comments.kt:35:5:35:34 | /** Medium is in the middle */ | /** Medium is in the middle */ |
9+
| comments.kt:37:5:37:23 | /** This is high */ | /** This is high */ |
810
commentOwners
911
| comments.kt:4:1:11:3 | /**\n * A group of *members*.\n *\n * This class has no useful logic; it's just a documentation example.\n *\n * @property name the name of this group.\n * @constructor Creates an empty group.\n */ | comments.kt:12:1:31:1 | Group |
1012
| comments.kt:4:1:11:3 | /**\n * A group of *members*.\n *\n * This class has no useful logic; it's just a documentation example.\n *\n * @property name the name of this group.\n * @constructor Creates an empty group.\n */ | comments.kt:12:1:31:1 | Group |
@@ -23,12 +25,16 @@ commentSections
2325
| comments.kt:4:1:11:3 | /**\n * A group of *members*.\n *\n * This class has no useful logic; it's just a documentation example.\n *\n * @property name the name of this group.\n * @constructor Creates an empty group.\n */ | the name of this group. |
2426
| comments.kt:14:5:16:7 | /**\n * Members of this group.\n */ | Members of this group. |
2527
| comments.kt:19:5:22:7 | /**\n * Adds a [member] to this group.\n * @return the new size of the group.\n */ | Adds a [member] to this group.\n |
28+
| comments.kt:35:5:35:34 | /** Medium is in the middle */ | Medium is in the middle |
29+
| comments.kt:37:5:37:23 | /** This is high */ | This is high |
2630
commentSectionContents
2731
| A group of *members*.\n\nThis class has no useful logic; it's just a documentation example.\n\n | A group of *members*.\n\nThis class has no useful logic; it's just a documentation example.\n\n |
2832
| Adds a [member] to this group.\n | Adds a [member] to this group.\n |
2933
| Creates an empty group. | Creates an empty group. |
3034
| Kdoc with no owner | Kdoc with no owner |
35+
| Medium is in the middle | Medium is in the middle |
3136
| Members of this group. | Members of this group. |
37+
| This is high | This is high |
3238
| the name of this group. | the name of this group. |
3339
commentSectionNames
3440
| Creates an empty group. | constructor |

java/ql/test/kotlin/library-tests/comments/comments.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,11 @@ class Group(val name: String) {
2929
A block comment
3030
*/
3131
}
32+
33+
enum class Severity(val sev: Int) {
34+
Low(1),
35+
/** Medium is in the middle */
36+
Medium(2),
37+
/** This is high */
38+
High(3)
39+
}

0 commit comments

Comments
 (0)