getObjectProcessed method

ProcessedObjectDescriptor getObjectProcessed (
  1. Object object,
  2. int level
)

Implementation

ProcessedObjectDescriptor getObjectProcessed(Object object, int level) {
  ProcessedObjectDescriptor result;

  if (object.runtimeType.toString() == 'Null' ||
      object.runtimeType.toString() == 'bool') {
    return result;
  }

  final key = getObjectKey(object);
  if (processedObjects.containsKey(key)) {
    result = processedObjects[key];
    result.logUsage(level);
  } else {
    result = processedObjects[key] = ProcessedObjectDescriptor(object);
  }
  return result;
}