Class ProgramJsonSchemas
The JSON Schemas of what a host gives and receives when it invokes a procedure of a composed program (JsonSchemasAsync(string, CancellationToken)): each parameter's, and the returned value's, by JsonSchemaSet.
public sealed class ProgramJsonSchemas
- Inheritance
-
ProgramJsonSchemas
- Inherited Members
Constructors
ProgramJsonSchemas(Func<string, string, VBTypeMemberSymbol?>, Func<VBClassType, VBClassModuleSymbol?>, string)
The JSON Schemas of what a host gives and receives when it invokes a procedure of a composed program (JsonSchemasAsync(string, CancellationToken)): each parameter's, and the returned value's, by JsonSchemaSet.
public ProgramJsonSchemas(Func<string, string, VBTypeMemberSymbol?> procedureOf, Func<VBClassType, VBClassModuleSymbol?> classModuleOf, string referencePrefix)
Parameters
procedureOfFunc<string, string, VBTypeMemberSymbol>The procedure of the program that a module and a procedure name, as an invocation names them (ProgramInvocation), with its parameters and its type as the binding has them; null for a name that names none.
classModuleOfFunc<VBClassType, VBClassModuleSymbol>The class module of the program that declares a class type (JsonSchemaSet).
referencePrefixstringWhat a reference to a definition is, before its name (JsonSchemaSet).
Properties
Definitions
The definition of each class of the workspace that a signature refers to, by name, in the order the signatures reached them (Definitions).
public IReadOnlyDictionary<string, JsonObject> Definitions { get; }
Property Value
Methods
SignatureOf(string, string)
The JSON Schemas of a procedure's parameters and of its value; a class they reach is added to Definitions.
public ProcedureJsonSchema? SignatureOf(string module, string procedure)
Parameters
modulestringThe name of the module, as an invocation names it.
procedurestringThe name of the procedure, as an invocation names it.
Returns
- ProcedureJsonSchema
The procedure's signature; null when the names name no
Sub,FunctionorProperty Getof the program.