Converter:
Member comments are preserved (not only doc comments)
This commit is contained in:
committed by
Pavel V. Talanov
parent
f08861c14a
commit
098a80a2af
@@ -16,4 +16,44 @@ class C() {
|
||||
public fun foo() {
|
||||
/* This is a function comment */
|
||||
}
|
||||
|
||||
//simple one line comment for function
|
||||
fun f1() {
|
||||
}
|
||||
|
||||
//simple one line comment for field
|
||||
var j: Int = 0
|
||||
|
||||
//double c style
|
||||
//comment before function
|
||||
fun f2() {
|
||||
}
|
||||
|
||||
//double c style
|
||||
//comment before field
|
||||
var k: Int = 0
|
||||
|
||||
//combination
|
||||
/** of
|
||||
*/
|
||||
//
|
||||
/**
|
||||
* different
|
||||
*/
|
||||
//comments
|
||||
fun f3() {
|
||||
}
|
||||
|
||||
//combination
|
||||
/** of
|
||||
*/
|
||||
//
|
||||
/**
|
||||
* different
|
||||
*/
|
||||
//comments
|
||||
var l: Int = 0
|
||||
|
||||
/*two*/ /*comments*//*line*/
|
||||
var z: Int = 0
|
||||
}
|
||||
@@ -7,17 +7,56 @@ This is a block comment
|
||||
|
||||
|
||||
class C {
|
||||
// This is a class comment
|
||||
// This is a class comment
|
||||
|
||||
/**
|
||||
/**
|
||||
* This is a field doc comment.
|
||||
*/
|
||||
private int i;
|
||||
private int i;
|
||||
|
||||
/**
|
||||
/**
|
||||
* This is a function doc comment.
|
||||
*/
|
||||
public void foo() {
|
||||
/* This is a function comment */
|
||||
}
|
||||
public void foo() {
|
||||
/* This is a function comment */
|
||||
}
|
||||
|
||||
//simple one line comment for function
|
||||
void f1() {
|
||||
}
|
||||
|
||||
//simple one line comment for field
|
||||
int j;
|
||||
|
||||
//double c style
|
||||
//comment before function
|
||||
void f2() {
|
||||
}
|
||||
|
||||
//double c style
|
||||
//comment before field
|
||||
int k;
|
||||
|
||||
//combination
|
||||
/** of
|
||||
*/
|
||||
//
|
||||
/**
|
||||
* different
|
||||
*/
|
||||
//comments
|
||||
void f3() {}
|
||||
|
||||
//combination
|
||||
/** of
|
||||
*/
|
||||
//
|
||||
/**
|
||||
* different
|
||||
*/
|
||||
//comments
|
||||
int l;
|
||||
|
||||
/*two*/ /*comments*//*line*/
|
||||
int z;
|
||||
}
|
||||
|
||||
@@ -16,4 +16,44 @@ open class C() {
|
||||
public open fun foo() {
|
||||
/* This is a function comment */
|
||||
}
|
||||
|
||||
//simple one line comment for function
|
||||
open fun f1() {
|
||||
}
|
||||
|
||||
//simple one line comment for field
|
||||
var j: Int = 0
|
||||
|
||||
//double c style
|
||||
//comment before function
|
||||
open fun f2() {
|
||||
}
|
||||
|
||||
//double c style
|
||||
//comment before field
|
||||
var k: Int = 0
|
||||
|
||||
//combination
|
||||
/** of
|
||||
*/
|
||||
//
|
||||
/**
|
||||
* different
|
||||
*/
|
||||
//comments
|
||||
open fun f3() {
|
||||
}
|
||||
|
||||
//combination
|
||||
/** of
|
||||
*/
|
||||
//
|
||||
/**
|
||||
* different
|
||||
*/
|
||||
//comments
|
||||
var l: Int = 0
|
||||
|
||||
/*two*/ /*comments*//*line*/
|
||||
var z: Int = 0
|
||||
}
|
||||
Reference in New Issue
Block a user