(v string)
| 1103 | } |
| 1104 | |
| 1105 | func (j *Importer) parseJavaValue(v string) (string, bool) { |
| 1106 | v = strings.TrimRight(v, "ldf") |
| 1107 | switch v { |
| 1108 | case "", "NaN", "Infinity", "-Infinity": |
| 1109 | return "", false |
| 1110 | default: |
| 1111 | if v[0] == '\'' { |
| 1112 | // Skip character constants, since they can contain invalid code points |
| 1113 | // that are unacceptable to Go. |
| 1114 | return "", false |
| 1115 | } |
| 1116 | return v, true |
| 1117 | } |
| 1118 | } |
| 1119 | |
| 1120 | func (j *Importer) parseJavaType(desc string) (*Type, int, error) { |
| 1121 | t := new(Type) |