core.check-reference-visibility
- description
- Whether the parts in the snapshot of the project reference parts they cannot (private ones). environment is the parts of the other projects; the parts in the snapshot take precedence over it. Both the type and the expression of each part are checked. The server runs this on SubmitEvent before type checking, and the editor before taking a snapshot. See docs/visibility.md
- type
Fn( project_name: String, committed: List<@core.visibility-checked-part>, environment: List<@core.visibility-target> ) -> List<@core.visibility-violation>
- expression
fn(project_name$0, committed$1, environment$2) => @core.check-reference-visibility-from( project_name: $0, committed: $1, committed_index: @core.list-hash-index( list: @core.list-reverse(T: @core.visibility-checked-part, list: $1, start: 0, end: @core.list-length(value: $1)), field: "id" ), environment_index: @core.list-hash-index( list: @core.list-reverse(T: @core.visibility-target, list: $2, start: 0, end: @core.list-length(value: $2)), field: "id" ), index: 0 )
- visibility
- public
core.check-reference-visibility (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo) id: h1ZrIuy9fyRhVyrKXKuYcCbo9Ji3CO1NOcJFErxtLBA content hash: hDlJxt5eZ1--IRhL41vvS-9M1x9CSmLBa9DfIEEV-4U