< Summary

Information
Class: Elsa.Dsl.ElsaScript.Ast.VariableDeclarationNode
Assembly: Elsa.Dsl.ElsaScript
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Dsl.ElsaScript/Ast/VariableDeclarationNode.cs
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 22
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Kind()100%11100%
get_Name()100%11100%
get_Value()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Dsl.ElsaScript/Ast/VariableDeclarationNode.cs

#LineLine coverage
 1namespace Elsa.Dsl.ElsaScript.Ast;
 2
 3/// <summary>
 4/// Represents a variable declaration.
 5/// </summary>
 6public class VariableDeclarationNode : StatementNode
 7{
 8    /// <summary>
 9    /// The variable kind (var, let, const).
 10    /// </summary>
 1011    public VariableKind Kind { get; set; }
 12
 13    /// <summary>
 14    /// The variable name.
 15    /// </summary>
 2616    public string Name { get; set; } = string.Empty;
 17
 18    /// <summary>
 19    /// The initial value expression.
 20    /// </summary>
 1621    public ExpressionNode? Value { get; set; }
 22}

Methods/Properties

get_Kind()
get_Name()
get_Value()