SourceCodeInfo_Location constructor

SourceCodeInfo_Location({
  1. Iterable<int>? path,
  2. Iterable<int>? span,
  3. String? leadingComments,
  4. String? trailingComments,
  5. Iterable<String>? leadingDetachedComments,
})

Implementation

factory SourceCodeInfo_Location({
  $core.Iterable<$core.int>? path,
  $core.Iterable<$core.int>? span,
  $core.String? leadingComments,
  $core.String? trailingComments,
  $core.Iterable<$core.String>? leadingDetachedComments,
}) {
  final $result = create();
  if (path != null) {
    $result.path.addAll(path);
  }
  if (span != null) {
    $result.span.addAll(span);
  }
  if (leadingComments != null) {
    $result.leadingComments = leadingComments;
  }
  if (trailingComments != null) {
    $result.trailingComments = trailingComments;
  }
  if (leadingDetachedComments != null) {
    $result.leadingDetachedComments.addAll(leadingDetachedComments);
  }
  return $result;
}