MCPcopy Create free account
hub / github.com/golang/mobile / parseJavaValue

Method parseJavaValue

internal/importers/java/java.go:1105–1118  ·  view source on GitHub ↗
(v string)

Source from the content-addressed store, hash-verified

1103}
1104
1105func (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
1120func (j *Importer) parseJavaType(desc string) (*Type, int, error) {
1121 t := new(Type)

Callers 1

scanVarMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected