Beispiel #1
0
func goInterface(f *parser.Function) string {
	if f.Virtual == "impure" && f.SignalMode == "callback" {
		if isDerivedFromPure(f) {
			return fmt.Sprintf("%v(%v)", converter.GoHeaderName(f), converter.GoHeaderInput(f))
		} else {
			if f.Meta == "slot" || isDerivedFromSlot(f) {
				return fmt.Sprintf("%v(%v)%v", converter.GoHeaderName(f), converter.GoHeaderInput(f), "bool")
			} else {
				return fmt.Sprintf("%v(%v)", converter.GoHeaderName(f), converter.GoHeaderInput(f))
			}
		}
	}
	return fmt.Sprintf("%v(%v)%v", converter.GoHeaderName(f), converter.GoHeaderInput(f), converter.GoHeaderOutput(f))
}
Beispiel #2
0
func goInterface(f *parser.Function) string {
	return fmt.Sprintf("%v(%v)%v", converter.GoHeaderName(f), converter.GoHeaderInput(f), converter.GoHeaderOutput(f))
}