mirror of
https://github.com/actions/runner.git
synced 2025-12-17 07:54:19 +00:00
Compare updated template evaluator (#4092)
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace GitHub.Actions.WorkflowParser.ObjectTemplating.Tokens
|
||||
{
|
||||
[DataContract]
|
||||
public sealed class InsertExpressionToken : ExpressionToken
|
||||
{
|
||||
public InsertExpressionToken(
|
||||
Int32? fileId,
|
||||
Int32? line,
|
||||
Int32? column)
|
||||
: base(TokenType.InsertExpression, fileId, line, column, TemplateConstants.InsertDirective)
|
||||
{
|
||||
}
|
||||
|
||||
public override TemplateToken Clone(Boolean omitSource)
|
||||
{
|
||||
return omitSource ? new InsertExpressionToken(null, null, null) : new InsertExpressionToken(FileId, Line, Column);
|
||||
}
|
||||
|
||||
public override String ToString()
|
||||
{
|
||||
return $"{TemplateConstants.OpenExpression} insert {TemplateConstants.CloseExpression}";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user