fixed import issue for objc

This commit is contained in:
Tony Tam 2013-10-18 14:45:45 -07:00
parent 5a3426dee6
commit 044621b325

View File

@ -115,6 +115,7 @@ class Codegen(config: CodegenConfig) {
case true =>
}
})
allImports --= config.defaultIncludes
allImports --= primitives
allImports --= containers
@ -235,11 +236,11 @@ class Codegen(config: CodegenConfig) {
case n: Int => {
val ComplexTypeMatcher = "(.*)\\[(.*)\\].*".r
val ComplexTypeMatcher(container, basePart) = param.dataType
container + "[" + config.toDeclaredType(basePart) + "]"
config.toDeclaredType(container + "[" + config.toDeclaredType(basePart) + "]")
}
}
params += "dataType" -> config.toDeclaredType(u)
params += "dataType" -> u
param.allowableValues match {
case a: AllowableValues => params += "allowableValues" -> allowableValuesToString(a)
@ -424,7 +425,7 @@ class Codegen(config: CodegenConfig) {
baseType = config.typeMapping.contains(baseType) match {
case true => config.typeMapping(baseType)
case false => {
imports += Map("import" -> config.toDeclaredType(baseType))
// imports += Map("import" -> config.toDeclaredType(baseType))
baseType
}
}