Exemple #1
0
func interfaceList(t astgen.Type) (result string) {
	for _, iface := range _interfaces[t.Common().Name] {
		result += ", public virtual " + iface
	}

	return
}
Exemple #2
0
func goTypeName(t astgen.Type) string {
	switch t.(type) {
	case *astgen.StructType:
		return "*AST" + t.Common().Name
	case *astgen.LexicalType:
		return "string"
	case *astgen.BoolType:
		return "bool"
	default:
		return "AST" + t.Common().Name
	}
}
Exemple #3
0
func zeframTypeName(t astgen.Type) string {
	switch t.(type) {
	case *astgen.StructType:
		return "own *AST" + t.Common().Name
	case *astgen.LexicalType:
		return "string"
	case *astgen.BoolType:
		return "bool"
	case *astgen.EnumType:
		return "AST" + t.Common().Name
	case *astgen.OptionType:
		return "own *AST" + t.Common().Name
	}

	// FIXME
	panic("blaargh")
}