sourceElementTypeAsString function
Converts the enun type SourceElementType to a human readable string.
Implementation
String sourceElementTypeAsString(SourceElementType type) {
switch (type) {
case SourceElementType.classType:
return 'class';
case SourceElementType.fieldType:
return 'field';
case SourceElementType.methodType:
return 'method';
case SourceElementType.constructorType:
return 'constructor';
case SourceElementType.typedefType:
return 'typedef';
case SourceElementType.topLevelVariableType:
return 'variable';
case SourceElementType.functionType:
return 'function';
case SourceElementType.unknownType:
return 'unknown';
}
}