getSourceMapping method
Implementation
Mapping getSourceMapping(Type source) {
var mapping = bySourceTypeMappings[source];
if (mapping == null) {
for ( var m in mappings.values) {
if (m.definition.sourceClass == source) {
bySourceTypeMappings[source] = m;
return m;
}
} // for
throw MapperException("no mapping for source type $source");
}
else return mapping;
}