feat(KT-51123): save comments from js-function call inside arguments list.
This commit is contained in:
+33
-5
@@ -9,13 +9,28 @@
|
||||
// CHECK_COMMENT_EXISTS: text="After call single line comment" multiline=false
|
||||
// CHECK_COMMENT_EXISTS: text="After call multi line comment" multiline=true
|
||||
// CHECK_COMMENT_EXISTS: text="The header multiline\ncomment" multiline=true
|
||||
// CHECK_COMMENT_DOESNT_EXIST: text="random position comment 1" multiline=true
|
||||
// CHECK_COMMENT_DOESNT_EXIST: text="random position comment 2" multiline=true
|
||||
// CHECK_COMMENT_DOESNT_EXIST: text="random position comment 3" multiline=true
|
||||
// CHECK_COMMENT_EXISTS: text="1Multi line comment\n" multiline=true
|
||||
// CHECK_COMMENT_EXISTS: text="2Multi line comment\n\n\n" multiline=true
|
||||
// CHECK_COMMENT_EXISTS: text="3Multi line\n\n\n\n\ncomment\n" multiline=true
|
||||
// CHECK_COMMENT_EXISTS: text="" multiline=true
|
||||
// CHECK_COMMENT_EXISTS: text="Multi line comment inside function" multiline=true
|
||||
// CHECK_COMMENT_EXISTS: text="After call single line comment" multiline=false
|
||||
// CHECK_COMMENT_EXISTS: text="After call multi line comment" multiline=true
|
||||
// CHECK_COMMENT_EXISTS: text="Before argument 1" multiline=true
|
||||
// CHECK_COMMENT_EXISTS: text="Before argument 2" multiline=true
|
||||
// CHECK_COMMENT_EXISTS: text="After argument 1" multiline=true
|
||||
// CHECK_COMMENT_EXISTS: text="After argument 2" multiline=true
|
||||
// CHECK_COMMENT_EXISTS: text="object:" multiline=true
|
||||
// CHECK_COMMENT_EXISTS: text="property:" multiline=true
|
||||
// CHECK_COMMENT_EXISTS: text="descriptor:" multiline=true
|
||||
// CHECK_COMMENT_EXISTS: text="Descriptor end" multiline=true
|
||||
|
||||
/*
|
||||
* java.lang.AssertionError(Multi line comment with text 'The header multiline\ncomment' doesn't exist)
|
||||
java.lang.AssertionError(Multi line comment with text '1Multi line comment\n' doesn't exist)
|
||||
java.lang.AssertionError(Multi line comment with text '2Multi line comment\n\n\n' doesn't exist)
|
||||
java.lang.AssertionError(Multi line comment with text '3Multi line\n\n\n\n\ncomment\n' doesn't exist)
|
||||
* */
|
||||
|
||||
package foo
|
||||
|
||||
@@ -42,8 +57,6 @@ fun box(): String {
|
||||
|
||||
foo(); /* After call multi line comment */
|
||||
|
||||
var /*random position comment 1*/ c /*random position comment 2*/ = /*random position comment 3*/ "Random position";
|
||||
|
||||
/* 1Multi line comment
|
||||
*/
|
||||
foo();
|
||||
@@ -63,6 +76,21 @@ fun box(): String {
|
||||
|
||||
/**/
|
||||
foo();
|
||||
|
||||
foo(
|
||||
/* Before argument 1 */
|
||||
/* Before argument 2 */
|
||||
4
|
||||
/* After argument 1 */
|
||||
/* After argument 2 */
|
||||
);
|
||||
|
||||
var test = {
|
||||
test: Object.defineProperty(/* object: */{}, /* property: */'some_property', /* descriptor: */ {
|
||||
value: 42,
|
||||
writable: false
|
||||
} /* Descriptor end */)
|
||||
}
|
||||
""")
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user