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;
}