MCPcopy Create free account

hub / github.com/dcSpark/cddl-codegen / functions

Functions1,061 in github.com/dcSpark/cddl-codegen

↓ 2 callersMethodencoding_var_is_copy
(&self, types: &IntermediateTypes)
src/generation.rs:281
↓ 2 callersFunctionenum_variant_constant
(variant: &EnumVariant)
src/intermediate.rs:3370
↓ 2 callersFunctionescapeProse
(s: string)
cddl-matrix/query_q1_gaps.ts:87
↓ 2 callersFunctionexampleOf
(id: string, axis: Axis)
cddl-matrix/query_q1_gaps.ts:109
↓ 2 callersFunctionextractBlock
(doc: string)
cddl-matrix/query_q1_gaps.ts:236
↓ 2 callersFunctionfield_uses_custom_ser
( types: &IntermediateTypes, field: &RustField, visited: &mut std::collections::BTreeSet<RustIdent
src/emit_tests.rs:437
↓ 2 callersMethodfinish
(&self)
static/serialization_preserve.rs:34
↓ 2 callersFunctionfinish_fallible
A fallible wasm ctor returns `Result<_, JsError>`; `JsError: !Debug`, so embed via `.ok().expect`.
src/emit_tests_wasm.rs:477
↓ 2 callersFunctionfirstRuleName
(example: string)
cddl-matrix/verify.ts:599
↓ 2 callersFunctionfit_sz
(len: u64, sz: Option<cbor_event::Sz>)
tests/extern-dep-crate/src/serialization.rs:152
↓ 2 callersFunctionfold_bignums
Canonicalize the one place the two codecs legitimately MODEL the same well-formed bytes differently: RFC 8949 §3.4.3 bignum tags. `ciborium`'s byte-le
src/tests/integration_tests.rs:361
↓ 2 callersFunctiongen_and_check
Generate a crate for `spec` into `out` and `cargo check` its rust crate against `target_dir`. Returns `Ok(())` if generation AND check both succeed, e
src/tests/identifier_hazard_tests.rs:314
↓ 2 callersFunctiongen_err
(spec: &str, tag: &str)
src/api.rs:297
↓ 2 callersMethodgenerate
Generates, i.e. populates the state, based on `types`. this does not create any files, call export() after.
src/generation.rs:526
↓ 2 callersFunctiongenerate_array_struct_deserialization
( gen_scope: &mut GenerationScope, types: &IntermediateTypes, name: &RustIdent, record: &RustR
src/generation.rs:5540
↓ 2 callersFunctiongenerate_array_struct_serialization
generates serialization code for an array-encoded record into ser_func EXCEPT FOR array length
src/generation.rs:5432
↓ 2 callersFunctiongenerate_enum
( gen_scope: &mut GenerationScope, types: &IntermediateTypes, name: &RustIdent, variants: &[En
src/generation.rs:7811
↓ 2 callersFunctiongenerate_wrapper_struct
This is used mostly for when thing are tagged have specific ranges.
src/generation.rs:8575
↓ 2 callersMethodgenerated_files
Single producer for every generated source file (post-rustfmt), keyed by path relative to the crate root (e.g. "rust/src/lib.rs"). Used by BOTH [`Self
src/generation.rs:1491
↓ 2 callersFunctionget_comments_if_type_parent
( parent_visitor: &'a ParentVisitor<'a, 'a>, cddl_type: &CDDLType<'a, 'a>, child: Option<&CDDLType
src/parsing.rs:2475
↓ 2 callersFunctionglobSorted
(pattern: string)
cddl-matrix/lib.ts:59
↓ 2 callersFunctiongroup_entry_map_key_kind
(entry: &GroupEntry)
src/parsing.rs:1895
↓ 2 callersFunctiongroup_entry_to_type
( types: &mut IntermediateTypes, parent_visitor: &ParentVisitor, entry: &GroupEntry, cli: &Cli
src/parsing.rs:1851
↓ 2 callersMethodhas_rejections
Whether any parse-walk rejection has been recorded. Lets the reserved-name pre-scan in `api::with_types` abort BEFORE IR construction, since `RustIden
src/intermediate.rs:198
↓ 2 callersFunctionhazards
The full hazard list: `RUST_KEYWORDS` in its authored order, then `EXTRA_HAZARDS`, skipping any already seen (`box`). Deterministic order → stable sna
src/tests/identifier_hazard_tests.rs:56
↓ 2 callersMethodident
(&self)
src/intermediate.rs:2875
↓ 2 callersFunctionidsOf
(m: MatrixJson, key: keyof MatrixJson)
cddl-matrix/query_q6_diff.ts:66
↓ 2 callersFunctionisGap
(status: string)
cddl-matrix/query_q1_gaps.ts:75
↓ 2 callersFunctionisPanicEvidence
(evidence: string)
cddl-matrix/project_robustness.ts:73
↓ 2 callersMethodis_referenced
(&self, ident: &RustIdent)
src/intermediate.rs:769
↓ 2 callersFunctionitem_at
Fetch the item at `path`, if present (used for `SeedOnce`'s existence check). Walks header and inline tables alike.
src/cargo_manifest.rs:171
↓ 2 callersMethodlib_name_code
lib name from code i.e. with underscores
src/cli.rs:129
↓ 2 callersFunctionloadMatrixInputs
()
cddl-matrix/lib.ts:89
↓ 2 callersFunctionmake_bar
()
tests/multifile/tests.rs:74
↓ 2 callersFunctionmake_deser_loop_break_check
(len_var: &str, cli: &Cli)
src/generation.rs:4852
↓ 2 callersFunctionmake_encoding_struct
(encoding_name: &str)
src/generation.rs:8553
↓ 2 callersFunctionmake_enum_variant_return_if_deserialized
( gen_scope: &mut GenerationScope, types: &IntermediateTypes, variant: &EnumVariant, no_enum_t
src/generation.rs:7536
↓ 2 callersFunctionmake_external_foo
()
tests/multifile/tests.rs:35
↓ 2 callersFunctionmake_inline_deser_code
( gen_scope: &mut GenerationScope, types: &IntermediateTypes, name: &RustIdent, tag: Option<us
src/generation.rs:7611
↓ 2 callersFunctionmake_keyed_map_variant_deser_code
Full deserialization body for a collapsed map-rep group-choice arm that carries a fixed key: len-check, key read+verify, value read, final len-check,
src/generation.rs:7753
↓ 2 callersFunctionmarkFeature
(id: string, track = true)
cddl-matrix/project_corpus.ts:265
↓ 2 callersMethodmark_plain_group
see self.plain_groups comments
src/intermediate.rs:782
↓ 2 callersFunctionmint_choice
Mint the first constructible variant of a choice (deterministic: variant order is IR order).
src/emit_tests.rs:1301
↓ 2 callersFunctionmk_everything
(extern_foo: ExternCrateFoo)
tests/extern-deps/tests.rs:13
↓ 2 callersFunctionmk_everything
(extern_foo: ExternCrateFoo)
tests/extern-deps-non-preserve/tests.rs:16
↓ 2 callersFunctionnameOf
(id: string, axis: Axis)
cddl-matrix/query_q1_gaps.ts:104
↓ 2 callersMethodname_as_rust_array
( &self, types: &IntermediateTypes, from_wasm: bool, cli: &Cli, )
src/intermediate.rs:1808
↓ 2 callersFunctionneed
(i: number)
cddl-matrix/project_golden_hex.ts:95
↓ 2 callersFunctionnint_bounds_to_u64
nint bounds are stored as u64 magnitudes; the minted baseline must pass the exact check `new()` emits, so delegate to the generator's transform rather
src/emit_tests.rs:1065
↓ 2 callersFunctionnormalizeAlt
(s: string)
cddl-matrix/verify.ts:363
↓ 2 callersFunctionnormalizeAlt
(s: string)
cddl-matrix/query_q5_completeness.ts:134
↓ 2 callersFunctionops_for_json_gen
The declarative changeset for `wasm/json-gen/Cargo.toml` (no conditional deps of its own).
src/cargo_manifest.rs:603
↓ 2 callersFunctionops_for_wasm
The declarative changeset for `wasm/Cargo.toml`. The `cddl-lib` path-dep key name (and the package name) derive from `--lib-name` via the same substri
src/cargo_manifest.rs:589
↓ 2 callersFunctionoracles
(example: string)
cddl-matrix/verify.ts:672
↓ 2 callersFunctionpad
(s: string, w: number)
cddl-matrix/query_q4_directional.ts:367
↓ 2 callersFunctionparseCatalog
(path: string)
cddl-matrix/verify.ts:746
↓ 2 callersFunctionparse_group_choice
( types: &mut IntermediateTypes, parent_visitor: &ParentVisitor, group_choice: &GroupChoice, n
src/parsing.rs:2145
↓ 2 callersFunctionparse_item
Parse one item starting at `pos`, returning it and the position just past it. The input is a single well-formed definite-length CBOR value, so no inde
static/emit_tests_encoding_fidelity.rs:66
↓ 2 callersFunctionparse_rule
( types: &mut IntermediateTypes, parent_visitor: &ParentVisitor, cddl_rule: &cddl::ast::Rule,
src/parsing.rs:58
↓ 2 callersFunctionpick_generic_name
First name in a deterministic candidate sequence that does NOT collide with a defined type ident: `base` (`"W"`/`"R"`), then `base+suffix` (`"WSer"`/`
src/generation.rs:8492
↓ 2 callersFunctionprobeCodegen
()
cddl-matrix/verify.ts:529
↓ 2 callersFunctionprobeCodegenRust
(extraFlags: string[] = [])
cddl-matrix/verify.ts:520
↓ 2 callersFunctionpush_map_choice_key_ser
Writes the fixed member key of a collapsed map-rep group-choice arm, between the map header and the value. Under `--preserve-encodings` it uses the va
src/generation.rs:7658
↓ 2 callersFunctionrank
(t: Tier)
check.ts:49
↓ 2 callersFunctionrecToCell
(r: RoleRec)
cddl-matrix/corpus_detect.ts:266
↓ 2 callersFunctionreference_codec_differential
Both independent codecs must fully decode `bytes` AND agree on the decoded structure (after bignum-representation canonicalization, see `fold_bignums`
src/tests/integration_tests.rs:397
↓ 2 callersMethodregister_generic_def
(&mut self, def: GenericDef)
src/intermediate.rs:669
↓ 2 callersMethodregister_generic_instance
(&mut self, instance: GenericInstance)
src/intermediate.rs:674
↓ 2 callersFunctionregister_literal_range
( types: &mut IntermediateTypes, parent_visitor: &ParentVisitor, type_name: &RustIdent, mut ra
src/parsing.rs:556
↓ 2 callersMethodrejections_error
Drain the accumulated rejections into a single graceful `Err`. Reused by `finalize` and by the early reserved-name abort so both surface the identical
src/intermediate.rs:204
↓ 2 callersFunctionrenderBlock
()
cddl-matrix/query_q1_gaps.ts:163
↓ 2 callersFunctionrender_derived_template
( raw_log: &str, log_name: &str, template_name: &str, )
src/cargo_manifest.rs:528
↓ 2 callersFunctionrolesIn
(files: string[])
cddl-matrix/corpus_detect.ts:297
↓ 2 callersFunctionrule_is_scope_marker
Some means it is a scope marker, containing the scope
src/parsing.rs:32
↓ 2 callersFunctionrule_metadata
(input: &str)
src/comment_ast.rs:217
↓ 2 callersFunctionrun
()
cddl-matrix/verify.ts:860
↓ 2 callersFunctionrunCodegen
(extraFlags: string[] = [])
cddl-matrix/verify.ts:482
↓ 2 callersFunctionrunTest
(timeoutS = PROBE_TIMEOUT)
cddl-matrix/verify.ts:469
↓ 2 callersFunctionrun_with
( spec: &str, tag: &str, preserve: bool, )
src/tests/robustness_tests.rs:479
↓ 2 callersMethodrust_serialize_lib
Serialization scope for lib.cddl e.g. for core stuff, or things without an explicit scope like WASM arrays
src/generation.rs:1673
↓ 2 callersFunctionscalar_readback
If the getter for `mv` is directly comparable to the emit-time literal, the expected expression; else `None` (composite getters are covered by the byt
src/emit_tests_wasm.rs:841
↓ 2 callersFunctionscan
(text: string)
cddl-matrix/corpus_detect.ts:59
↓ 2 callersMethodscope_references
For each scope, which other scopes are referenced, and which structs are referenced
src/intermediate.rs:279
↓ 2 callersFunctionsemantic_tag_content
A semantically-VALID inner literal for a CBOR tag whose RFC 8949 content requirements the reference `cddl` validator enforces on decode. Returns `None
src/emit_tests.rs:1193
↓ 2 callersMethodserializer_name_overload
(mut self, overload: (&'a str, bool))
src/generation.rs:98
↓ 2 callersFunctionset_leaf
Set the leaf key at `path`. On overwrite, transfer the existing value's decor onto the new value (cargo's pattern) so an inline `# comment` on a bumpe
src/cargo_manifest.rs:149
↓ 2 callersFunctionsign_arm_if_block
The `if <cond> { Err(RangeCheck..) }` for one classified sign arm, or `None` when the arm needs no check. The `Empty` case rejects unconditionally (`i
src/generation.rs:4146
↓ 2 callersFunctionsnapshot_input
Snapshot the generated source for `input` under each profile (grouped under `tests/corpus/snapshots/<label>/`). `full` keeps every generated file; oth
src/tests/snapshot_tests.rs:59
↓ 2 callersFunctionstableJson
(obj: unknown)
cddl-matrix/lib.ts:102
↓ 2 callersFunctionstruct_uses_custom_ser_inner
( types: &IntermediateTypes, rust_struct: &RustStruct, visited: &mut std::collections::BTreeSet<Ru
src/emit_tests.rs:402
↓ 2 callersMethodto_bytes
(&self)
src/intermediate.rs:998
↓ 2 callersMethodto_str_len_sz
(&self, len: u64)
tests/extern-dep-crate/src/serialization.rs:192
↓ 2 callersMethodto_wasm_boundary_optional
FROM rust TO wasm as Option<T>. This is separate as we can have optional fields that act identical to Self::Optional(ty)
src/intermediate.rs:2218
↓ 2 callersFunctiontool_cmd
Spawn cargo for a *generated* crate, insulated from the workspace's `-D warnings` (generated code legitimately over-imports). Local copy of `integrati
src/tests/identifier_hazard_tests.rs:284
↓ 2 callersFunctiontry_val
Parse a TOML value snippet (e.g. `"0.4.3"` or `{ version = "1.0" }`) into an [`Item`], returning a message on failure. Snippets in the change logs are
src/cargo_manifest.rs:365
↓ 2 callersFunctionvalidateSiblingKats
(dir: string, macroName: string, arity: number)
cddl-matrix/project_golden_hex.ts:137
↓ 2 callersMethodverify
(&self)
src/comment_ast.rs:123
↓ 2 callersFunctionwasmEvidence
(minted_wasm?: boolean, wasm_roundtrips?: number, exempt = false)
cddl-matrix/verify.ts:569
↓ 2 callersFunctionwasm_choice_bounds
( types: &IntermediateTypes, name: &str, variants: &[EnumVariant], group_choice: bool, sco
src/emit_tests_wasm.rs:746
↓ 2 callersFunctionwasm_choice_roundtrip
( types: &IntermediateTypes, name: &str, variants: &[EnumVariant], group_choice: bool, sco
src/emit_tests_wasm.rs:527
← previousnext →301–400 of 1,061, ranked by callers