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:
Snake
2023-03-18 22:49:22 +08:00
committed by GitHub
parent 7a647ca40c
commit a561048d59
3 changed files with 12 additions and 2 deletions

View File

@@ -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<")
}