MCPcopy Create free account

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

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

↓ 2 callersFunctionwasm_named
Build a named generated type through its wasm wrapper API from `mv`.
src/emit_tests_wasm.rs:279
↓ 2 callersFunctionwrapper_measure
The in-range inner measure for a bounded wrapper's `new(inner)`. A bounded `nint` wrapper stores the inner as a `u64` MAGNITUDE and its `new` checks t
src/emit_tests.rs:1049
↓ 1 callersFunctionaltCoverage
(prod: string)
cddl-matrix/query_q5_completeness.ts:143
↓ 1 callersMethodapply_type_aliases
see new_type() for why this is mut returns: (base type, if the alias should be substituted)
src/intermediate.rs:497
↓ 1 callersMethodas_alias
(mut self, alias_ident: AliasIdent)
src/intermediate.rs:1372
↓ 1 callersFunctionassert_cddl_conforms
(spec: &str, root_rule: &str, bytes: &[u8])
tests/deser_test_conformance.rs:47
↓ 1 callersFunctionassert_cddl_rejects
(spec: &str, root_rule: &str, bytes: &[u8])
tests/deser_test_conformance.rs:58
↓ 1 callersFunctionbounds_check_expr
(p: Primitive, e: &str)
src/generation.rs:3981
↓ 1 callersFunctioncarriesConstraint
(id: string)
cddl-matrix/query_q4_directional.ts:180
↓ 1 callersFunctioncbor_event_len_indef
(cli: &Cli)
src/generation.rs:7236
↓ 1 callersFunctioncddl_oracle_load_spec
(rel_from_manifest: &str)
tests/deser_test_conformance.rs:32
↓ 1 callersFunctioncddl_prelude
(name: &str)
src/utils.rs:82
↓ 1 callersFunctioncheckProblems
()
cddl-matrix/query_q6_diff.ts:147
↓ 1 callersFunctionchoice_variant_first_arg
The first arg of a `Choice` mint value (for a single-payload variant read-back).
src/emit_tests_wasm.rs:865
↓ 1 callersFunctionciborium_value_to_tree
(v: ciborium::value::Value)
src/tests/integration_tests.rs:198
↓ 1 callersFunctioncleanOutWasm
()
cddl-matrix/verify.ts:491
↓ 1 callersMethodclone_if_not_copy
(&self, types: &IntermediateTypes, expr: &str)
src/intermediate.rs:2283
↓ 1 callersFunctioncodeOf
(t: string)
cddl-matrix/corpus_detect.ts:92
↓ 1 callersFunctioncodegen_group_choices
( gen_scope: &mut GenerationScope, types: &IntermediateTypes, name: &RustIdent, variants: &[En
src/generation.rs:6958
↓ 1 callersFunctioncodegen_struct
( gen_scope: &mut GenerationScope, types: &IntermediateTypes, name: &RustIdent, tag: Option<us
src/generation.rs:5796
↓ 1 callersFunctioncommentsOf
(t: string)
cddl-matrix/corpus_detect.ts:93
↓ 1 callersFunctioncomposeCatalog
(rows: CatalogRow[])
cddl-matrix/verify.ts:769
↓ 1 callersFunctionconcat_files
(paths: &Vec<P>)
src/generation.rs:248
↓ 1 callersFunctionconformance_rule_name
The source CDDL rule name naming `ident`'s minted bytes for the conformance oracles, or `None` if this type can't be soundly rooted. Only a top-level
src/emit_tests.rs:367
↓ 1 callersFunctioncontent
(ex: string)
cddl-matrix/project_robustness.ts:145
↓ 1 callersFunctionconvert_to_alphanumeric
(input: &str)
src/intermediate.rs:974
↓ 1 callersFunctioncoveringTests
(hexn: string)
cddl-matrix/project_golden_hex.ts:169
↓ 1 callersMethodcreate_and_register_array_type
creates a RustType for the array type - and if needed, registers a type to generate TODO: After the split we should be able to only register it direct
src/intermediate.rs:634
↓ 1 callersFunctiondecoded
(v: Vector)
cddl-matrix/project_golden_hex.ts:239
↓ 1 callersMethoddefined_rust_idents
Every camel-cased Rust type ident this crate will DEFINE (structs, user aliases, plain groups, generic defs/instances). Deterministic (`BTreeSet`, no
src/intermediate.rs:249
↓ 1 callersFunctionderive
(featureId: string, profile: string, rubyExit: number, rustExit: number, cg: CodegenProbe)
cddl-matrix/verify.ts:679
↓ 1 callersFunctionderiveAccept
(status: string, ev: string)
cddl-matrix/query_q4_directional.ts:136
↓ 1 callersFunctionderiveEncode
(roundTrip: string)
cddl-matrix/query_q4_directional.ts:157
↓ 1 callersFunctionderiveEnforce
(id: string, status: string)
cddl-matrix/query_q4_directional.ts:185
↓ 1 callersFunctionderiveNote
(evidence: string)
cddl-matrix/query_q1_gaps.ts:93
↓ 1 callersFunctiondeser_test
(orig: &T)
tests/raw-bytes/tests.rs:8
↓ 1 callersMethoddeserializer_name
(&self)
src/generation.rs:222
↓ 1 callersFunctiondetail
(v: Vector)
cddl-matrix/project_golden_hex.ts:233
↓ 1 callersFunctiondetect
(fix: string)
cddl-matrix/project_corpus.ts:83
↓ 1 callersFunctiondfs_visit
( topo_order: &mut Vec<&'a Rule<'a>>, unvisited: &mut BTreeSet<&'a str>, processing: &mut BTreeSet
src/dep_graph.rs:26
↓ 1 callersFunctiondiagToHex
(diag: string)
cddl-matrix/verify.ts:883
↓ 1 callersFunctionemit_generated_tests
Emit the `#[cfg(test)]` generated-test module (reject + round-trip halves), or `None` if nothing at all could be minted.
src/emit_tests.rs:217
↓ 1 callersFunctionemit_generated_wasm_tests
Emit the `#[cfg(test)]` generated wasm-test module, or `None` if nothing could be minted / the configuration replaces the method surface this renderer
src/emit_tests_wasm.rs:68
↓ 1 callersMethodemit_prelude
(&mut self, cddl_name: String, cli: &Cli)
src/intermediate.rs:937
↓ 1 callersFunctionempty_collection
An empty value expression for a collection `ty` (valid for a 0-lower-bound `*`-occurrence). `Default::default()` covers every collection representatio
src/emit_tests.rs:1331
↓ 1 callersMethodend
( &self, serializer: &'a mut Serializer<W>, )
tests/extern-dep-crate/src/serialization.rs:180
↓ 1 callersFunctionenum_variants_have_same_encoding_var
(variants: &[EnumVariant])
src/intermediate.rs:3379
↓ 1 callersFunctionescape_rust_str
Escape a CDDL fixed text value for safe interpolation into an emitted Rust string literal. CDDL text literals may legally contain `"` or `\`; without
src/intermediate.rs:1038
↓ 1 callersFunctionextractEmissionProfiles
()
cddl-matrix/verify.ts:97
↓ 1 callersFunctionfeatureVerdict
(id: string, track: boolean)
cddl-matrix/project_corpus.ts:241
↓ 1 callersFunctionfind_references
(cddl_rule: &'a Rule<'a>)
src/dep_graph.rs:51
↓ 1 callersMethodfinish
(&self)
tests/extern-dep-crate/src/serialization.rs:54
↓ 1 callersFunctionfixed_value_cbor_type
The CBOR major type a fixed value serializes to — used to dispatch enum variants on their fixed map key. Mirrors `RustType::cbor_types` for `Conceptua
src/intermediate.rs:2604
↓ 1 callersMethodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
static/error.rs:12
↓ 1 callersMethodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/intermediate.rs:58
↓ 1 callersMethodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
tests/extern-dep-crate/src/error.rs:12
↓ 1 callersMethodfmt_indent
(&self, f: &mut std::fmt::Formatter<'_>, indent: u32)
static/error.rs:84
↓ 1 callersMethodfmt_indent
(&self, f: &mut std::fmt::Formatter<'_>, indent: u32)
tests/extern-dep-crate/src/error.rs:73
↓ 1 callersFunctionfolded_int
(neg: bool, b: &[u8])
src/tests/integration_tests.rs:362
↓ 1 callersMethodfor_wasm_param_impl
(&self, types: &IntermediateTypes, force_not_ref: bool)
src/intermediate.rs:1858
↓ 1 callersFunctionformatElapsed
(ms: number)
cddl-matrix/verify.ts:44
↓ 1 callersMethodfrom_wasm_boundary_clone_optional
( &self, types: &IntermediateTypes, expr: &str, can_fail: bool, )
src/intermediate.rs:2077
↓ 1 callersFunctiongen_src
(preserve: bool)
src/tests/robustness_tests.rs:799
↓ 1 callersFunctiongenerate
Generate a standalone crate's source map for `spec` (writes to a unique temp `.cddl`). `--wasm=false` EXPLICITLY (the CLI default is true) — this is t
src/tests/dsl_position_tests.rs:416
↓ 1 callersFunctiongenerate_c_style_enum
Generates an enum where all variants are fixed values (i.e. C-style enum) and return true, or return false and do nothing (i.e. enum too complex)
src/generation.rs:7470
↓ 1 callersFunctiongenerate_int
(gen_scope: &mut GenerationScope, types: &IntermediateTypes, cli: &Cli)
src/generation.rs:9176
↓ 1 callersFunctiongenerate_tag_check
(deser_func: &mut dyn CodeBlock, ident: &RustIdent, tag: Option<usize>)
src/generation.rs:8563
↓ 1 callersMethodgenerate_type_choices_from_variants
TODO: repurpose this for type choices (not group choices) TODO: make this its own function - there's no reason for this to be a method
src/generation.rs:3700
↓ 1 callersMethodgeneric_instance_bases
The base idents (`generic_ident`) of every registered generic instance, e.g. `Foo` for the instance `Foo<Bar>`. For a generic EXTERN base this is the
src/intermediate.rs:271
↓ 1 callersFunctiongroup_entry_optional
(entry: &GroupEntry)
src/parsing.rs:1839
↓ 1 callersFunctiongroup_entry_rule_metadata
(entry: &GroupEntry, optional_comma: &OptionalComma)
src/parsing.rs:1560
↓ 1 callersFunctiongroup_entry_to_field_name
Attempts to use the style-converted type name as a field name, and if we have already generated one, then we simply add numerals starting at 2, 3, 4..
src/parsing.rs:1424
↓ 1 callersFunctiongroup_entry_to_raw_field_name
Only returns Some(String) if there was an explicit field name provided, otherwise None. If you need to try and make one using the type/etc, then try g
src/parsing.rs:1534
↓ 1 callersMethodhas_ident
(&self, ident: &RustIdent)
src/intermediate.rs:209
↓ 1 callersMethodhas_wasm_wrapper
Whether `ident` is exposed to wasm AS a `#[wasm_bindgen]` wrapper struct (vs. directly, like a `Copy` c-style enum, or as a transparent `pub type`). A
src/intermediate.rs:556
↓ 1 callersFunctionheadClass
(b: number)
cddl-matrix/project_golden_hex.ts:48
↓ 1 callersFunctionhex_to_byte_literals
Turn `"820080"` into the `0x82, 0x00, 0x80` a Rust byte-array literal wants (mirrors verify.ts's `replayInDir`, so the two harnesses feed the decoder
src/tests/integration_tests.rs:4531
↓ 1 callersFunctionignoredTestsFromCargo
()
check.ts:95
↓ 1 callersFunctioninline_group_occurrence_flattens
Whether a single-choice inline group carrying this occurrence marker may be spliced into the parent entry list (pure grouping) rather than kept unflat
src/parsing.rs:1134
↓ 1 callersFunctioninvariantProblems
(rs: Directional[])
cddl-matrix/query_q4_directional.ts:217
↓ 1 callersFunctionir_structs_debug
(cli: &Cli)
src/api.rs:262
↓ 1 callersFunctionisFastInvocation
(s: string)
check.ts:141
↓ 1 callersMethodis_basic
Checks whether FROM THIS CONTEXT the type is a basic group. Only relevant to rust structs.
src/intermediate.rs:1473
↓ 1 callersFunctionis_dependency_entry
Is `path` exactly `["dependencies", <name>]` — the one path class whose `Set` merges field-level rather than hard-replacing? Deeper paths (e.g. `depen
src/cargo_manifest.rs:204
↓ 1 callersFunctionis_per_feature_noise
Near-constant generated files skipped by the per-feature corpus (they don't vary by construct).
src/tests/snapshot_tests.rs:52
↓ 1 callersMethodis_toplevel_rule
Whether `ident` names a top-level CDDL rule (as opposed to a struct synthesized during IR build — an embedded record, inline group, etc.). `scopes` is
src/intermediate.rs:879
↓ 1 callersFunctionis_value_literal
(t2: &Type2)
examples/ast_roles.rs:62
↓ 1 callersFunctionkey_derives
the derivative crate doesn't accept Eq="ignore" but omitting it seems to behave correctly
src/generation.rs:9119
↓ 1 callersFunctionloadControlOps
()
cddl-matrix/lib.ts:65
↓ 1 callersFunctionloadToml
(rel: string)
cddl-matrix/lib.ts:32
↓ 1 callersFunctionmain
()
check.ts:325
↓ 1 callersFunctionmap_key_expr
(key: &MapKey)
src/emit_tests_wasm.rs:229
↓ 1 callersFunctionmark
(v: Vector)
cddl-matrix/project_golden_hex.ts:230
↓ 1 callersMethodmark_new_can_fail
(&mut self, name: RustIdent)
src/intermediate.rs:837
↓ 1 callersMethodmark_scope
(&mut self, ident: RustIdent, scope: ModuleScope)
src/intermediate.rs:845
↓ 1 callersMethodmark_source_rule_name
Record the original CDDL source name for a top-level rule's `RustIdent`. Called once per parsed rule (`api::with_types`), before camel-casing has eras
src/intermediate.rs:862
↓ 1 callersFunctionmatch
(s: string)
cddl-matrix/query_q6_diff.ts:118
↓ 1 callersMethodmerge
Returns Some(NewOp) if self + next can be merged into a single step, otherwise None
src/intermediate.rs:2350
↓ 1 callersFunctionmerge_dep_spec
Merge the tool's dep spec (`tool`) field-level onto the user's existing entry (`existing`, the BASE — its shape, field order and decor survive). Both
src/cargo_manifest.rs:282
↓ 1 callersFunctionminicbor_item_from
( tok: minicbor::data::Token<'_>, it: &mut minicbor::decode::Tokenizer<'_, '_>, )
src/tests/integration_tests.rs:253
← previousnext →401–500 of 1,061, ranked by callers