Converter:

Member comments are preserved (not only doc comments)
This commit is contained in:
Pavel Talanov
2013-12-09 16:12:01 +04:00
committed by Pavel V. Talanov
parent f08861c14a
commit 098a80a2af
15 changed files with 188 additions and 67 deletions
@@ -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
}
+46 -7
View File
@@ -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;
}
+40
View File
@@ -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
}