core
Core built-in module for definy · Public
Status: Done · Every branch of the project (change the status there)
core.expression-probe-hole: Fn(expr: @core.expression, index: Number) -> Record{expression: @core.expression, index: Number} // Make the hole at index (counted in order from 0) a probe hole ({probe: true}). index in the result is index minus the number of holes core.expression-contains-hole: Fn(expr: @core.expression) -> Boolean // Whether the expression (including types and quoted expressions) has an unfilled hole core.part-reference-violations: Fn( project_name: String, committed_index: List<List<@core.visibility-checked-part>>, environment_index: List<List<@core.visibility-target>>, part: @core.visibility-checked-part, ids: List<String>, index: Number ) -> List<@core.visibility-violation> // (en) The references of part to the part IDs from index that cannot be referenced (core.check-reference-visibility). Parts in the snapshot are found before environment; unknown parts are left to the type checker (ja) part から ids の index からのパーツへの参照のうち参照できないもの (core.check-reference-visibility). スナップショットのパーツを environment より先に探す. 見つからないパーツは型チェッカーに任せる core.check-reference-visibility-from: 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> // (en) core.check-reference-visibility for the parts in the snapshot from index (ja) スナップショットの index からのパーツについての core.check-reference-visibility core.check-reference-visibility: Fn( project_name: String, committed: List<@core.visibility-checked-part>, environment: List<@core.visibility-target> ) -> List<@core.visibility-violation> // (en) 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 (ja) プロジェクトにスナップショットを作るパーツが参照できない (非公開の) パーツを参照していないか. environment は他のプロジェクトのパーツで, スナップショットのパーツを優先する. パーツの型と式の両方を見る. サーバーの SubmitEvent が型検査の前に, エディタがスナップショットの前に実行する. docs/visibility.md を参照 core.module-id-bytes: Fn(module_name: String) -> List<Number> // The 32 bytes of the module ID: SHA-256 applied twice to the UTF-8 of 'definy:module:' followed by the module name. A module is determined by its name regardless of the account (docs/branch.md) core.module-id: Fn(module_name: String) -> String // The module ID (Base64URL without padding of core.module-id-bytes) core.part-id: Fn(module_id_bytes: List<Number>, part_name: String) -> String // The part ID: Base64URL without padding of SHA-256 applied twice to the module ID bytes followed by the UTF-8 of ':part:' and the part name core.part-ids-from: Fn(module_id_bytes: List<Number>, part_names: List<String>, ids: List<String>) -> List<String> // ids followed by the part IDs (core.part-id) of the part names after the first (length of ids) names core.module-part-ids: Fn(module_name: String, part_names: List<String>) -> Record{module_id: String, part_ids: List<String>} // The module ID and the part IDs (in the order of part_names) of a module. The server uses this to know the IDs of the parts of a snapshot (docs/service.md) core.uint32: Fn(value: Number) -> Number // The lower 32 bits of a number as a number from 0 to 2^32 - 1 core.rotate-right-32: Fn(value: Number, amount: Number) -> Number // Rotates a 32-bit number (0 to 2^32 - 1) right by amount (0 to 31) bits core.uint32-to-bytes: Fn(value: Number) -> List<Number> // The 4 bytes of a 32-bit number in big-endian order core.uint64-to-bytes: Fn(value: Number) -> List<Number> // The 8 bytes of a 64-bit number in big-endian order core.zero-bytes: Fn(count: Number) -> List<Number> // A list of count zeros core.sha256-round-constants: List<Number> // The 64 round constants K of SHA-256 (FIPS 180-4) core.sha256-initial-hash: List<Number> // The initial hash value H(0) of SHA-256 (FIPS 180-4) core.sha256-padded: Fn(bytes: List<Number>) -> List<Number> // The message padded to a multiple of 64 bytes (0x80, zeros, and the bit length in 8 bytes) core.sha256-message-schedule: Fn(bytes: List<Number>, offset: Number, words: List<Number>) -> List<Number> // The 64 words W of the message schedule of the block at offset (words is the words computed so far) core.sha256-rounds: Fn(words: List<Number>, state: List<Number>, round: Number) -> List<Number> // The working variables a to h after the rounds from round to 63 of the SHA-256 compression function core.sha256-blocks: Fn(bytes: List<Number>, offset: Number, state: List<Number>) -> List<Number> // The hash value H after processing the padded message from the block at offset core.sha256: Fn(bytes: List<Number>) -> List<Number> // The SHA-256 hash (32 bytes) of bytes (FIPS 180-4) core.base64url-digit: Fn(value: Number) -> String // The character of a Base64URL digit (0 to 63) core.bytes-to-base64url-from: Fn(bytes: List<Number>, index: Number) -> String // Encodes bytes from index as Base64URL without padding core.bytes-to-base64url-group: Fn(bytes: List<Number>, index: Number) -> String // The base64url (no padding) of the 3 bytes (fewer at the end) from index core.bytes-to-base64url-groups: Fn(bytes: List<Number>, index: Number, count: Number) -> String // The base64url (no padding) of count groups of 3 bytes from index. Splits the range in half so that the recursion stays shallow for long byte lists core.bytes-to-base64url: Fn(bytes: List<Number>) -> String // Encodes bytes as Base64URL without padding (RFC 4648 section 5) core.number-at-or-zero: Fn(list: List<Number>, index: Number) -> Number // The number at index of the list, or 0 if out of range core.value-decoded: Fn(T: Type, decoded: Union{#none, #some(Param("T"))}) -> Union{#none, #some(Param("T"))} // Return decoded as it is. Gives the type option<T> to #some / #none where no type is expected, such as the target of match (generated by scripts/generate_value_decoders.ts) core.value-to-list: Fn( T: Type, items: List<@core.value>, decode: Fn(value: @core.value) -> Union{#none, #some(Param("T"))}, index: Number, acc: List<Param("T")> ) -> Union{#none, #some(List<Param("T")>)} // (en) Read each item of a list of core.value with decode, appending to acc from index. none if an item cannot be read (generated by scripts/generate_value_decoders.ts) (ja) core.value のリストの index 番目からの各要素を decode で読んで acc に足す。読めない要素があれば none (scripts/generate_value_decoders.ts が作る) core.value-to-part-content: Fn(value: @core.value) -> Union{#none, #some(@core.part-content)} // Read a value of the evaluator (core.value) as core.part-content. none if the shape differs (generated by scripts/generate_value_decoders.ts) core.value-to-localized-text: Fn(value: @core.value) -> Union{#none, #some(@core.localized-text)} // Read a value of the evaluator (core.value) as core.localized-text. none if the shape differs (generated by scripts/generate_value_decoders.ts) core.value-to-visibility: Fn(value: @core.value) -> Union{#none, #some(@core.visibility)} // Read a value of the evaluator (core.value) as core.visibility. none if the shape differs (generated by scripts/generate_value_decoders.ts) core.value-to-expression: Fn(value: @core.value) -> Union{#none, #some(@core.expression)} // Read a value of the evaluator (core.value) as core.expression. none if the shape differs (generated by scripts/generate_value_decoders.ts) core.value-to-callee: Fn(value: @core.value) -> Union{#none, #some(@core.callee)} // Read a value of the evaluator (core.value) as core.callee. none if the shape differs (generated by scripts/generate_value_decoders.ts) core.value-to-match-arm: Fn(value: @core.value) -> Union{#none, #some(@core.match-arm)} // Read a value of the evaluator (core.value) as core.match-arm. none if the shape differs (generated by scripts/generate_value_decoders.ts) core.value-to-pattern: Fn(value: @core.value) -> Union{#none, #some(@core.pattern)} // Read a value of the evaluator (core.value) as core.pattern. none if the shape differs (generated by scripts/generate_value_decoders.ts) core.value-to-event-content: Fn(value: @core.value) -> Union{#none, #some(@core.event-content)} // Read a value of the evaluator (core.value) as core.event-content. none if the shape differs (generated by scripts/generate_value_decoders.ts) core.list-intersects-string: Fn(a: List<String>, b: List<String>, index: Number) -> Boolean // Whether any string in the first list also appears in the second list core.module-entries-changed-signatures: Fn( previous: List<List<Record{ part_id: String, module_id: String, part_type: Union{#none, #some(@core.expression)}, type_declaration: Union{#none, #some(@core.expression)}, expression_key: Union{#none, #some(String)}, has_expression: Boolean, references: List<String> }>>, committed: List<Record{ part_id: String, module_id: String, part_type: Union{#none, #some(@core.expression)}, type_declaration: Union{#none, #some(@core.expression)}, expression_key: Union{#none, #some(String)}, has_expression: Boolean, references: List<String> }>, index: Number, changed: List<String> ) -> List<String> // (en) Part ids whose type-relevant signature changed between the previous module entries and those of the snapshot (declared type, or the declaration of a type part) (ja) 前回と今回のモジュールエントリを比べて、型に関わる署名 (宣言型、または型パーツの宣言) が変わったパーツの ID の一覧 core.module-entries-affected-pass: Fn( entries: List<Record{ part_id: String, module_id: String, part_type: Union{#none, #some(@core.expression)}, type_declaration: Union{#none, #some(@core.expression)}, expression_key: Union{#none, #some(String)}, has_expression: Boolean, references: List<String> }>, marked: List<String>, index: Number, progress: Boolean ) -> Record{marked: List<String>, progress: Boolean} // (en) One pass of affected-part propagation: mark every entry that references an already marked part (ja) 影響の伝播の 1 周分: 印の付いたパーツを参照するエントリに印を付ける core.module-entries-affected: Fn( entries: List<Record{ part_id: String, module_id: String, part_type: Union{#none, #some(@core.expression)}, type_declaration: Union{#none, #some(@core.expression)}, expression_key: Union{#none, #some(String)}, has_expression: Boolean, references: List<String> }>, marked: List<String> ) -> List<String> // (en) Part ids affected by the given changed parts: everything that directly or transitively references a changed part (ja) 変わったパーツの影響を受けるパーツの ID の一覧 (変わったパーツを直接・間接に参照するもの) core.module-entries-removed: Fn( previous: List<Record{ part_id: String, module_id: String, part_type: Union{#none, #some(@core.expression)}, type_declaration: Union{#none, #some(@core.expression)}, expression_key: Union{#none, #some(String)}, has_expression: Boolean, references: List<String> }>, committed: List<List<Record{ part_id: String, module_id: String, part_type: Union{#none, #some(@core.expression)}, type_declaration: Union{#none, #some(@core.expression)}, expression_key: Union{#none, #some(String)}, has_expression: Boolean, references: List<String> }>>, index: Number, removed: List<String> ) -> List<String> // (en) Part ids that were in the previous module entries but are not in the ones of the snapshot, added to the given list (ja) 前回のモジュールエントリにあって今回のものに無いパーツの ID を、渡された一覧に足したもの core.part-content-to-value: Fn(value: @core.part-content) -> @core.value // Turn core.part-content into a value of the evaluator (core.value). The inverse of core.value-to-part-content (generated by scripts/generate_value_decoders.ts) core.localized-text-to-value: Fn(value: @core.localized-text) -> @core.value // Turn core.localized-text into a value of the evaluator (core.value). The inverse of core.value-to-localized-text (generated by scripts/generate_value_decoders.ts) core.visibility-to-value: Fn(value: @core.visibility) -> @core.value // Turn core.visibility into a value of the evaluator (core.value). The inverse of core.value-to-visibility (generated by scripts/generate_value_decoders.ts) core.expression-to-value: Fn(value: @core.expression) -> @core.value // Turn core.expression into a value of the evaluator (core.value). The inverse of core.value-to-expression (generated by scripts/generate_value_decoders.ts) core.callee-to-value: Fn(value: @core.callee) -> @core.value // Turn core.callee into a value of the evaluator (core.value). The inverse of core.value-to-callee (generated by scripts/generate_value_decoders.ts) core.match-arm-to-value: Fn(value: @core.match-arm) -> @core.value // Turn core.match-arm into a value of the evaluator (core.value). The inverse of core.value-to-match-arm (generated by scripts/generate_value_decoders.ts) core.pattern-to-value: Fn(value: @core.pattern) -> @core.value // Turn core.pattern into a value of the evaluator (core.value). The inverse of core.value-to-pattern (generated by scripts/generate_value_decoders.ts) core.event-content-to-value: Fn(value: @core.event-content) -> @core.value // Turn core.event-content into a value of the evaluator (core.value). The inverse of core.value-to-event-content (generated by scripts/generate_value_decoders.ts) core.wasm-runtime-list-find-last-by-field: List<Number> // Runtime function 32 of the definy compiler: list_find_last_by_field(list, field, value) -> value: an option, some(the last record in the list whose field equals the value), none if there is none. Searches from the end and reads the field with record_get (runtime function 6). When the value is a string it compares with string_eq (4), otherwise with values_equal (5). Local variable declarations and instructions, without the byte length (wasm.code-entry adds it) core.list-find-last-by-field: (no type) // Compiler built-in: the last record in `list` whose field `field` (a string literal) equals `value`, as an option (some(record) / none). Searches inside the runtime, much faster than a recursive search written in definy (docs/builtin-parts.md) core.eval-find-last-by-field: Fn(items: List<@core.value>, field: String, value: @core.value, index: Number) -> @core.value // The evaluator's list_find_last_by_field (core.eval-builtin-call): the last record value in items, from index down to 0, whose field equals value, as an option value core.wasm-runtime-string-hash: List<Number> // Runtime function 33 of the definy compiler: string_hash(value) -> i32: the 32-bit hash h = h * 33 + byte (from h = 0, wrapping) of the UTF-8 bytes of a string, 0 for a value that is not a string. Used by list_hash_index and list_hash_index_find (core.eval-value-hash computes the same in the evaluator). Local variable declarations and instructions, without the byte length (wasm.code-entry adds it) core.wasm-runtime-list-hash-index: List<Number> // Runtime function 34 of the definy compiler: list_hash_index(list, field) -> value: a list of buckets (lists). The number of buckets is the smallest power of two not less than the length (at least 1), and each record goes, in order, to the bucket string_hash(its field) AND (count - 1). Local variable declarations and instructions, without the byte length (wasm.code-entry adds it) core.wasm-runtime-list-hash-index-find: List<Number> // Runtime function 35 of the definy compiler: list_hash_index_find(index, field, value) -> value: list_find_last_by_field (32) on the bucket string_hash(value) AND (count - 1) of the index. none for an empty index. Local variable declarations and instructions, without the byte length (wasm.code-entry adds it) core.list-hash-index: (no type) // Compiler built-in: a hash index of `list` by the field `field` (a string literal) for list_hash_index_find. The index is a list of buckets: the bucket count is the smallest power of two not less than the length (at least 1), and each record goes, keeping the order, to the bucket (hash of its field) AND (count - 1) (docs/builtin-parts.md) core.list-hash-index-find: (no type) // Compiler built-in: the last record whose field `field` (a string literal) equals `value` in an index made by list_hash_index, as an option. Searches only one bucket (docs/builtin-parts.md) core.eval-value-hash: Fn(value: @core.value) -> Number // The hash of list_hash_index in the evaluator (the same as the runtime's string_hash): h = h * 33 + byte modulo 2^32 over the UTF-8 bytes of a string value, 0 for other values core.eval-bytes-hash: Fn(bytes: List<Number>, index: Number, hash: Number) -> Number // h = h * 33 + byte modulo 2^32 over bytes from index (core.eval-value-hash) core.eval-hash-index-size: Fn(count: Number, size: Number) -> Number // The smallest power of two, from size, not less than count (the bucket count of list_hash_index in the evaluator) core.eval-hash-index-buckets: Fn(items: List<@core.value>, field: String, size: Number, bucket: Number, accum: List<@core.value>) -> List<@core.value> // The buckets from bucket to size - 1 of list_hash_index in the evaluator core.eval-hash-index-bucket: Fn( items: List<@core.value>, field: String, size: Number, bucket: Number, index: Number, accum: List<@core.value> ) -> List<@core.value> // (en) The items (in order) that go to the bucket in list_hash_index in the evaluator core.list-reverse: Fn(T: Type, list: List<Param("T")>, start: Number, end: Number) -> List<Param("T")> // The items of list from start (inclusive) to end (exclusive) in reverse order. Splits the range in halves, so it takes O(n log n). Used before core.list-hash-index when the first of the same keys must win (core.list-hash-index-find returns the last one in its bucket) core.string-set: Fn(items: List<String>) -> List<List<Record{key: String}>> // A set of strings to look up with core.string-set-has (a hash index of the records {key}, made by the built-in list_hash_index) core.string-set-has: Fn(set: List<List<Record{key: String}>>, value: String) -> Boolean // Whether the set made by core.string-set has the string core.count-functions-acc: Fn(expr: @core.expression, count: Number) -> Number // count plus the number of the function expressions in expr (the same children as core.expression-children) core.count-functions-in-expressions: Fn(items: List<@core.expression>, index: Number, count: Number) -> Number // count plus the functions in the expressions from index (core.count-functions-acc) core.count-functions-in-record-items: Fn(items: List<Record{key: String, value: @core.expression}>, index: Number, count: Number) -> Number // count plus the functions in the values of the record items from index core.count-functions-in-arms: Fn(items: List<@core.match-arm>, index: Number, count: Number) -> Number // count plus the functions in the bodies of the match arms from index core.count-functions-in-call-arguments: Fn(items: List<Record{name: String, value: @core.expression}>, index: Number, count: Number) -> Number // count plus the functions in the values of the call arguments from index core.count-functions-in-type-parameters: Fn(items: List<Record{name: String, type: @core.expression}>, index: Number, count: Number) -> Number // count plus the functions in the types of the function type parameters from index core.count-functions-in-union-variants: Fn( items: List<Record{tag: String, payload_type: Union{#none, #some(@core.expression)}}>, index: Number, count: Number ) -> Number // (en) count plus the functions in the payload types of the union variants from index core.list-slice: Fn(T: Type, list: List<Param("T")>, start: Number, end: Number) -> List<Param("T")> // The items of list from start (inclusive) to end (exclusive). Splits the range in halves, so it copies O(n log n) items (the same as std.list-range, which core cannot use) core.compile-unbox-number: Fn(code: List<Number>) -> List<Number> // Instructions that leave the i64 number of the value that code leaves: code followed by call 15, except that when code ends with call 2 (it has just boxed the i64 number), that call is dropped instead of boxing and unboxing at once. The last instruction of the code from core.compile-expr-instructions is never a part of another instruction ending with these two bytes core.compile-unbox-bool: Fn(code: List<Number>) -> List<Number> // Instructions that leave the i32 boolean of the value that code leaves: code followed by call 17, except that when code ends with call 3 (it has just boxed the i32 boolean), that call is dropped instead of boxing and unboxing at once. The last instruction of the code from core.compile-expr-instructions is never a part of another instruction ending with these two bytes core.compile-direct-callee: Fn( function: @core.callee, ctx: Record{ parts: List<Record{id: String, expression: @core.expression, base: Number}>, inlining: List<String>, part_index: List<List<Record{id: String, expression: @core.expression, base: Number}>>, strings: List<Record{value: String, address: Number}> } ) -> Union{#none, #some(Number)} // (en) The Wasm function index of the callee when it is a part whose expression is a function: the functions of the expression and the parts follow the runtime functions (core.wasm-runtime-function-types), and the part's function is the first of its functions (base). none for other callees core.compile-boolean-match-arm-body: Fn( expr: @core.expression, env: List<Record{variable_id: Number, local: Number}>, depth: Number, fn_base: Number, ctx: Record{ parts: List<Record{id: String, expression: @core.expression, base: Number}>, inlining: List<String>, part_index: List<List<Record{id: String, expression: @core.expression, base: Number}>>, strings: List<Record{value: String, address: Number}> }, tail: Boolean ) -> List<Number> // (en) An arm body of core.compile-boolean-match, in the tail position or not core.compile-boolean-match: Fn( target: @core.expression, arms: List<@core.match-arm>, env: List<Record{variable_id: Number, local: Number}>, depth: Number, fn_base: Number, ctx: Record{ parts: List<Record{id: String, expression: @core.expression, base: Number}>, inlining: List<String>, part_index: List<List<Record{id: String, expression: @core.expression, base: Number}>>, strings: List<Record{value: String, address: Number}> }, tail: Boolean ) -> Union{#none, #some(List<Number>)} // (en) The instructions of a match on a boolean with the arms true and false (or a boolean and _), as an if on the unboxed boolean, without keeping the target in a local and comparing it with each pattern. none for other matches. The function indices follow the order of the arms as written, as in core.compile-match-arms core.record-literal-find: Fn(fields: List<Record{key: String, value: @core.expression}>, key: String, index: Number) -> Union{#none, #some(@core.expression)} // (en) The value of the field key in a record literal core.record-type-field-arguments: Fn( fields: List<Record{key: String, value: @core.expression}>, env: @core.type-env, expected_fields: List<Record{key: String, field_type: @core.type-ast}> ) -> List<Record{name: String, type: @core.type-ast}> // (en) (en) For a record literal checked against a record type: the fields of type Type and the types written in the literal for them, so that Param("<field name>") in the types of the other fields means that type (a record that carries a type, used for the existential type of definy.io's all and race. docs/structured-concurrency.md). A field whose value is not a type expression (such as payload.Child) is left out, and the Param stays an opaque type (ja) レコードのリテラルをレコードの型で検査するとき, 型が Type のフィールドとリテラルに書いた型. 他のフィールドの型の Param("フィールド名") をその型にする (型を持つレコード. definy.io の all と race の存在型に使う. docs/structured-concurrency.md). 値が型の式でないフィールド (payload.Child など) は入れず, Param は中身の分からない型のまま core.type-expand-alias: Fn(type: @core.type-ast, env: @core.type-env) -> @core.type-ast // (en) If type is a reference to a type alias (a type part whose definition is a call of a part that returns a type, such as definy.service-io = definy.io(A: ...)), the call; otherwise type itself. Used to compare an alias with the call it stands for core.branch-snapshot-count: Fn( commits: List<@core.snapshot-summary>, project_name: String, branch: String, index: Number, count: Number ) -> Number // (en) count plus the number of snapshots of the branch of the project from index (ja) count にプロジェクトのブランチの index からのスナップショットの数を足したもの core.branch-first-snapshot: Fn( commits: List<@core.snapshot-summary>, project_name: String, branch: String, index: Number, found: Union{#none, #some(@core.snapshot-summary)} ) -> Union{#none, #some(@core.snapshot-summary)} // (en) The first (earliest) snapshot of the branch of the project from index. found is the earliest before index; for the same time the earlier in the list stays (ja) プロジェクトのブランチの最初 (時刻が最小) のスナップショットを index から探す. found は index より前で最初のもの. 同じ時刻ならリストで先のものが残る core.branch-latest-snapshot: Fn( commits: List<@core.snapshot-summary>, project_name: String, branch: String, index: Number, found: Union{#none, #some(@core.snapshot-summary)} ) -> Union{#none, #some(@core.snapshot-summary)} // (en) The latest snapshot of the branch of the project from index. found is the latest before index; for the same time the earlier in the list stays (ja) プロジェクトのブランチの最新 (時刻が最大) のスナップショットを index から探す. found は index より前で最新のもの. 同じ時刻ならリストで先のものが残る core.snapshot-module-names: Fn(modules: List<@core.project-snapshot-module>, index: Number) -> List<String> // The names of the modules from index core.snapshot-summary: Type // A project snapshot the server has accepted, as core.event-check-state-of needs it: the event hash, the account, the project, the branch, the time (milliseconds) and the module names core.module-snapshot-classify: Fn( previous: List<List<Record{ part_id: String, module_id: String, part_type: Union{#none, #some(@core.expression)}, type_declaration: Union{#none, #some(@core.expression)}, expression_key: Union{#none, #some(String)}, has_expression: Boolean, references: List<String> }>>, committed: List<Record{ part_id: String, module_id: String, part_type: Union{#none, #some(@core.expression)}, type_declaration: Union{#none, #some(@core.expression)}, expression_key: Union{#none, #some(String)}, has_expression: Boolean, references: List<String> }>, affected: List<List<Record{key: String}>>, index: Number, to_check: List<String>, without_expression: List<String> ) -> Record{to_check: List<String>, without_expression: List<String>} // (en) Decide which parts in the snapshot to check: unchanged parts are skipped unless they are affected by a type change, and parts without an expression or a type are listed separately (ja) スナップショットに入ったパーツのうち検査するものを決める。変わっていないパーツは、型の変更の影響を受けている場合だけ検査し、式や型の無いパーツは分けて並べる core.module-snapshot-part-to-value: Fn(value: @core.module-snapshot-part) -> @core.value // Turn core.module-snapshot-part into a value of the evaluator (core.value). The inverse of core.value-to-module-snapshot-part (generated by scripts/generate_value_decoders.ts) core.module-snapshot-part: Type // A part in a module of a project snapshot: its name and the content hash of its content (core.part-content) stored in the content-addressed storage core.project-snapshot-module-to-value: Fn(value: @core.project-snapshot-module) -> @core.value // Turn core.project-snapshot-module into a value of the evaluator (core.value). The inverse of core.value-to-project-snapshot-module (generated by scripts/generate_value_decoders.ts) core.project-snapshot-module: Type // A module in a project snapshot: its name, description and the whole list of its parts core.project-snapshot-to-value: Fn(value: @core.project-snapshot) -> @core.value // Turn core.project-snapshot into a value of the evaluator (core.value). The inverse of core.value-to-project-snapshot (generated by scripts/generate_value_decoders.ts) core.project-snapshot: Type // A snapshot of a project on a branch: the whole list of its modules and their parts at that point. merged_commit_hash is the snapshot of another branch merged by this snapshot. See docs/project.md and docs/branch.md core.project-has-snapshot: Fn( commits: List<@core.snapshot-summary>, project_name: String, hash: Union{#none, #some(String)}, index: Number ) -> Boolean // (en) Whether the project has a snapshot, from index. With hash (some), whether the snapshot is one of the project (ja) プロジェクトにスナップショットがあるかを index から調べる. hash が some なら, そのスナップショットがプロジェクトのものか core.value-to-module-snapshot-part: Fn(value: @core.value) -> Union{#none, #some(@core.module-snapshot-part)} // Read a value of the evaluator (core.value) as core.module-snapshot-part. none if the shape differs (generated by scripts/generate_value_decoders.ts) core.value-to-project-snapshot-module: Fn(value: @core.value) -> Union{#none, #some(@core.project-snapshot-module)} // Read a value of the evaluator (core.value) as core.project-snapshot-module. none if the shape differs (generated by scripts/generate_value_decoders.ts) core.value-to-project-snapshot: Fn(value: @core.value) -> Union{#none, #some(@core.project-snapshot)} // Read a value of the evaluator (core.value) as core.project-snapshot. none if the shape differs (generated by scripts/generate_value_decoders.ts)
401–499 (of 499) Previous 100