Explorer

definy.visibility-violation-message

description
The message of a reference that the visibility check rejects (docs/visibility.md)
type
Fn(violation: @core.visibility-violation) -> String
expression
fn(violation$0) =>
  match $0.reason {
    #private_part(_) =>
      @core.string-concat(
        left: @core.string-concat(
          left: @core.string-concat(
            left: @core.string-concat(left: "part '", right: $0.part_name),
            right: "': cannot reference the private part '"
          ),
          right: $0.target_name
        ),
        right: "'"
      ),
    #private_module(_) =>
      @core.string-concat(
        left: @core.string-concat(
          left: @core.string-concat(left: @core.string-concat(left: "part '", right: $0.part_name), right: "': cannot reference '"),
          right: $0.target_name
        ),
        right: "' of a private module in another project"
      )
  }
visibility
public
definy.visibility-violation-message (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo)
id: VebDBWgpT0Q7nUhJEnr74SUXlbAav8ZDQneO8uTS-bU
content hash: -xJ19bK01BV2_N-3GZP9OkfcBZuRa_GS3VEAPxwleDU