JsonUtils\JsonManifestUtils.cs (73)
40jKind[FieldNames.Kind] = kind;
45jKind[FieldNames.Components] = jComponents;
63jepKind[FieldNames.Kind] = epKind.Name;
70jField[FieldNames.Name] = fieldInfo.Name;
76jField[FieldNames.Type] = typeEnum.ToString();
79jepKind[FieldNames.Settings] = jepKindFields;
84jResult[FieldNames.TopEntryPoints] = jEntryPoints;
85jResult[FieldNames.TopComponents] = jKinds;
86jResult[FieldNames.TopEntryPointKinds] = jepKinds;
104result[FieldNames.Name] = componentInfo.Name;
105result[FieldNames.Desc] = componentInfo.Description;
106result[FieldNames.FriendlyName] = componentInfo.FriendlyName;
108result[FieldNames.Aliases] = new JArray(componentInfo.Aliases);
110result[FieldNames.Settings] = BuildInputManifest(ectx, componentInfo.ArgumentType, catalog);
121result[FieldNames.Name] = entryPointInfo.Name;
122result[FieldNames.Desc] = entryPointInfo.Description;
123result[FieldNames.FriendlyName] = entryPointInfo.FriendlyName;
124result[FieldNames.ShortName] = entryPointInfo.ShortName;
127result[FieldNames.Inputs] = BuildInputManifest(ectx, entryPointInfo.InputType, catalog);
128result[FieldNames.Outputs] = BuildOutputManifest(ectx, entryPointInfo.OutputType, catalog);
135result[FieldNames.InputKind] = jInputKinds;
143result[FieldNames.OutputKind] = jOutputKinds;
173jo[FieldNames.Name] = name;
174jo[FieldNames.Type] = BuildTypeToken(ectx, fieldInfo, fieldInfo.FieldType, catalog);
175jo[FieldNames.Desc] = inputAttr.HelpText;
177jo[FieldNames.Aliases] = new JArray(inputAttr.Aliases);
179jo[FieldNames.Required] = inputAttr.IsRequired;
180jo[FieldNames.SortOrder] = inputAttr.SortOrder;
181jo[FieldNames.IsNullable] = fieldInfo.FieldType.IsGenericType && (fieldInfo.FieldType.GetGenericTypeDefinition() == typeof(Nullable<>));
186jo[FieldNames.Default] = BuildValueToken(ectx, defaultValue, fieldInfo.FieldType, catalog);
209jRange[FieldNames.Range.Sup] = JToken.FromObject(rangeAttr.Sup);
211jRange[FieldNames.Range.Inf] = JToken.FromObject(rangeAttr.Inf);
213jRange[FieldNames.Range.Max] = JToken.FromObject(rangeAttr.Max);
215jRange[FieldNames.Range.Min] = JToken.FromObject(rangeAttr.Min);
216jo[FieldNames.Range.Type] = jRange;
224[FieldNames.Deprecated.Message] = JToken.FromObject(obsAttr.Message),
226jo[FieldNames.Deprecated.ToString()] = jParam;
233[FieldNames.SweepableLongParam.RangeType] = JToken.FromObject("Long"),
234[FieldNames.SweepableLongParam.Min] = JToken.FromObject(slpAttr.Min),
235[FieldNames.SweepableLongParam.Max] = JToken.FromObject(slpAttr.Max)
238jParam[FieldNames.SweepableLongParam.StepSize] = JToken.FromObject(slpAttr.StepSize);
240jParam[FieldNames.SweepableLongParam.NumSteps] = JToken.FromObject(slpAttr.NumSteps);
242jParam[FieldNames.SweepableLongParam.IsLogScale] = JToken.FromObject(true);
243jo[FieldNames.SweepableLongParam.ToString()] = jParam;
250[FieldNames.SweepableFloatParam.RangeType] = JToken.FromObject("Float"),
251[FieldNames.SweepableFloatParam.Min] = JToken.FromObject(sfpAttr.Min),
252[FieldNames.SweepableFloatParam.Max] = JToken.FromObject(sfpAttr.Max)
255jParam[FieldNames.SweepableFloatParam.StepSize] = JToken.FromObject(sfpAttr.StepSize);
257jParam[FieldNames.SweepableFloatParam.NumSteps] = JToken.FromObject(sfpAttr.NumSteps);
259jParam[FieldNames.SweepableFloatParam.IsLogScale] = JToken.FromObject(true);
260jo[FieldNames.SweepableFloatParam.ToString()] = jParam;
267[FieldNames.SweepableDiscreteParam.RangeType] = JToken.FromObject("Discrete"),
268[FieldNames.SweepableDiscreteParam.Options] = JToken.FromObject(sdpAttr.Options)
270jo[FieldNames.SweepableDiscreteParam.ToString()] = jParam;
298jo[FieldNames.Name] = outputAttr.Name ?? fieldInfo.Name;
299jo[FieldNames.Type] = BuildTypeToken(ectx, fieldInfo, fieldInfo.FieldType, catalog);
300jo[FieldNames.Desc] = outputAttr.Desc;
320jo[FieldNames.Kind] = "EntryPoint";
321jo[FieldNames.ItemType] = typeString;
337jo[FieldNames.Kind] = TlcModule.DataKind.Array.ToString();
338jo[FieldNames.ItemType] = "Node";
348jo[FieldNames.Kind] = "Struct";
349jo[FieldNames.Fields] = fields;
364jo[FieldNames.Kind] = typeEnum.ToString();
366jo[FieldNames.Values] = new JArray(values);
370jo[FieldNames.Kind] = typeEnum.ToString();
371jo[FieldNames.ItemType] = BuildTypeToken(ectx, fieldInfo, type.GetElementType(), catalog);
375jo[FieldNames.Kind] = typeEnum.ToString();
376jo[FieldNames.ItemType] = BuildTypeToken(ectx, fieldInfo, type.GetGenericArguments()[1], catalog);
384jo[FieldNames.Kind] = typeEnum.ToString();
385jo[FieldNames.ComponentKind] = kind;
485jResult[FieldNames.Name] = componentInfo.Name;
514jResult[FieldNames.Settings] = jSettings;