Compare updated template evaluator (#4092)

This commit is contained in:
eric sciple
2025-11-07 14:18:52 -06:00
committed by GitHub
parent 53d69ff441
commit b5b7986cd6
188 changed files with 27222 additions and 4 deletions

View File

@@ -0,0 +1,24 @@
#nullable enable
using System;
namespace GitHub.Actions.Expressions
{
public interface IExpressionNode
{
/// <summary>
/// Evaluates the expression and returns the result, wrapped in a helper
/// for converting, comparing, and traversing objects.
/// </summary>
/// <param name="trace">Optional trace writer</param>
/// <param name="secretMasker">Optional secret masker</param>
/// <param name="state">State object for custom evaluation function nodes and custom named-value nodes</param>
/// <param name="options">Evaluation options</param>
EvaluationResult Evaluate(
ITraceWriter trace,
ISecretMasker? secretMasker,
Object state,
EvaluationOptions options);
}
}