Fix event and function fragment formatting.
This commit is contained in:
parent
5ba6a616a6
commit
a2d4b29071
@ -353,7 +353,7 @@ export abstract class Fragment {
|
|||||||
result += "(" + this.inputs.map((i) => i.format(expanded)).join(expanded ? ", ": ",") + ") ";
|
result += "(" + this.inputs.map((i) => i.format(expanded)).join(expanded ? ", ": ",") + ") ";
|
||||||
|
|
||||||
// @TODO: Handle returns, modifiers, etc.
|
// @TODO: Handle returns, modifiers, etc.
|
||||||
if (expanded) {
|
if (expanded && this.type !== "event") {
|
||||||
result += "public ";
|
result += "public ";
|
||||||
if ((<any>this).mutabilityState) {
|
if ((<any>this).mutabilityState) {
|
||||||
result += (<any>this).mutabilityState + " ";
|
result += (<any>this).mutabilityState + " ";
|
||||||
@ -362,7 +362,7 @@ export abstract class Fragment {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((<any>this).outputs && (<any>this).outputs.length) {
|
if ((<any>this).outputs && (<any>this).outputs.length) {
|
||||||
result += "(" + (<any>this).outputs.map((i: ParamType) => i.format(expanded)).join(", ") + ") ";
|
result += "returns (" + (<any>this).outputs.map((i: ParamType) => i.format(expanded)).join(", ") + ") ";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user