< Summary

Information
Class: Elsa.Dsl.ElsaScript.Ast.UseNode
Assembly: Elsa.Dsl.ElsaScript
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Dsl.ElsaScript/Ast/UseNode.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 33
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_Type()100%11100%
get_Value()100%11100%

File(s)

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

#LineLine coverage
 1namespace Elsa.Dsl.ElsaScript.Ast;
 2
 3/// <summary>
 4/// Represents a use statement (import or expression language configuration).
 5/// </summary>
 6public class UseNode : AstNode
 7{
 8    /// <summary>
 9    /// The type of use statement (e.g., "expressions", namespace import).
 10    /// </summary>
 3011    public UseType Type { get; set; }
 12
 13    /// <summary>
 14    /// The value (e.g., "js", "cs", or a namespace).
 15    /// </summary>
 4716    public string Value { get; set; } = string.Empty;
 17}
 18
 19/// <summary>
 20/// The type of use statement.
 21/// </summary>
 22public enum UseType
 23{
 24    /// <summary>
 25    /// Expression language configuration (e.g., "use expressions js;").
 26    /// </summary>
 27    Expressions,
 28
 29    /// <summary>
 30    /// Namespace import (e.g., "use Elsa.Activities.Console;").
 31    /// </summary>
 32    Namespace
 33}

Methods/Properties

get_Type()
get_Value()