Explorer

core.check-reference-visibility-from

description
core.check-reference-visibility for the parts in the snapshot from index
type
Fn(
  project_name: String,
  committed: List<@core.visibility-checked-part>,
  committed_index: List<List<@core.visibility-checked-part>>,
  environment_index: List<List<@core.visibility-target>>,
  index: Number
) -> List<@core.visibility-violation>
expression
fn(project_name$0, committed$1, committed_index$9500, environment_index$2, index$3) =>
  match @core.list-get(list: $1, index: $3) {
    #none(_) =>
      [],
    #some(item$1008) =>
      let part$4 = $1008;
      @core.list-concat(
        left: @core.part-reference-violations(
          project_name: $0,
          committed_index: $9500,
          environment_index: $2,
          part: $4,
          ids: let type_ids$5 = match $4.part_type {
              #none(_) =>
                [],
              #some(part_type$7) =>
                @core.expression-part-references(expr: $7, ids: [])
            };
          match $4.expression {
            #none(_) =>
              $5,
            #some(expression$6) =>
              @core.expression-part-references(expr: $6, ids: $5)
          },
          index: 0
        ),
        right: @core.check-reference-visibility-from(
          project_name: $0,
          committed: $1,
          committed_index: $9500,
          environment_index: $2,
          index: @core.plus(left: $3, right: 1)
        )
      )
  }
visibility
public
core.check-reference-visibility-from (project definy, branch main, snapshot CfIAXM725tR74SWd4aoTUz4-JJQfqnllblZbQ2Sv204)
id: o_W3YcQcBn0jkQ5nRTzVW7WiUIde3VpDqHaH39A9ccM
content hash: L41FYhzbJe36ETpJgnFdugqqtJfj4Nl0q0oyuVXNWBc