* Incremental work * Incremental work * Incremental work * Initial support for intellisense * Implement variable type definition provider
39 lines
865 B
C#
39 lines
865 B
C#
namespace Elsa.JavaScript.Models;
|
|
|
|
/// <summary>
|
|
/// A method parameter definition.
|
|
/// </summary>
|
|
public class ParameterDefinition
|
|
{
|
|
/// <summary>
|
|
/// Constructor.
|
|
/// </summary>
|
|
public ParameterDefinition()
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Constructor.
|
|
/// </summary>
|
|
public ParameterDefinition(string name, string? type, bool isOptional = false)
|
|
{
|
|
Name = name;
|
|
Type = type;
|
|
IsOptional = isOptional;
|
|
}
|
|
|
|
/// <summary>
|
|
/// The name of the parameter.
|
|
/// </summary>
|
|
public string Name { get; set; } = default!;
|
|
|
|
/// <summary>
|
|
/// The type name of the parameter.
|
|
/// </summary>
|
|
public string? Type { get; set; }
|
|
|
|
/// <summary>
|
|
/// A value indicating whether the parameter is optional or not.
|
|
/// </summary>
|
|
public bool IsOptional { get; set; }
|
|
} |