Function
_mapType
(typeName, typeMap, functionName)
Source from the content-addressed store, hash-verified
| 110 | file.write(')') |
| 111 | |
| 112 | def _mapType(typeName, typeMap, functionName): |
| 113 | if 'mx_constant_filename' == functionName: |
| 114 | return 'string' |
| 115 | elif ('transformpoint' in functionName) or ('transformvector' in functionName) or ('transformnormal' in functionName): |
| 116 | if typeName == 'string': |
| 117 | return 'mx_coordinatespace_type' |
| 118 | if typeName in typeMap: |
| 119 | return typeMap[typeName] |
| 120 | return typeName |
| 121 | |
| 122 | INDENT = '\t' |
| 123 | SPACE = ' ' |
Tested by
no test coverage detected