Marmos
v juptune
v asn1
v lang
v ast
v Classes
v Enums
v ir
v parser
v Enums
v Structs
v core
v crypto
v keyexchange
v memory
v data
v alphabet
v buffer
v json
v builder
v parser
v Enums
v Structs
v serialise
v Structs
v Templates
v pem
v Enums
v Structs

Functions Asn1ModuleIr.getAssignmentByName

1
2
3
4
5
6
7
8
module juptune.asn1.lang.ir;

Result getAssignmentByName(
    AssT : Asn1AssignmentIr = Asn1AssignmentIr
)(
    const char[] name, 
    AssT assignment
);

Documentation

Functions intended for tooling

[For tooling] Attempts to find any top-level assignment for a symbol called name.

Params

Throws

Asn1SemanticError.toolNotFoundif no assignment exists for name.

Asn1SemanticError.toolWrongTypeif AssTis not Asn1AssignmentIr, and the resulting assignment is not castable to AssT. e.g. You try to lookup an Asn1TypeAssignmentIrbut get an Asn1ValueAssignmentIrinstead.

Returns

A Resultdescribing whether the lookup was a success or not.