Fix bug: replace int and float with num type in dart (#3042)
Co-authored-by: zhoumingji <zhoumingji@cmsr.chinamobile.com>
This commit is contained in:
@@ -57,6 +57,15 @@ func isAtomicType(s string) bool {
|
||||
}
|
||||
}
|
||||
|
||||
func isNumberType(s string) bool {
|
||||
switch s {
|
||||
case "int", "double":
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
func isListType(s string) bool {
|
||||
return strings.HasPrefix(s, "List<")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user