bind: keep package function comments in java file
previously package level function comments are ignored. this change keeps the comment in generated java files Change-Id: I86dcd93b1026c4455d2c4782cbc9f30b514b3107 Reviewed-on: https://go-review.googlesource.com/c/mobile/+/181038 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
This commit is contained in:
parent
32b2708ab1
commit
6fa95d984e
@ -1655,6 +1655,7 @@ func (g *JavaGen) GenJava() error {
|
||||
g.Printf("// skipped function %s with unsupported parameter or return types\n\n", f.Name())
|
||||
continue
|
||||
}
|
||||
g.javadoc(g.docs[f.Name()].Doc())
|
||||
g.Printf("public static native ")
|
||||
g.genFuncSignature(f, nil, false)
|
||||
}
|
||||
|
6
bind/testdata/doc.java.golden
vendored
6
bind/testdata/doc.java.golden
vendored
@ -308,6 +308,12 @@ public abstract class Doc {
|
||||
*/
|
||||
public static native String getV();
|
||||
|
||||
/**
|
||||
* F is a function.
|
||||
*/
|
||||
public static native void f();
|
||||
/**
|
||||
* NewS is a constructor.
|
||||
*/
|
||||
public static native S newS();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user