mirror of
https://github.com/actions/runner.git
synced 2026-03-15 09:20:44 -04:00
32 lines
966 B
C#
32 lines
966 B
C#
using System;
|
|
using System.ComponentModel;
|
|
using System.Runtime.Serialization;
|
|
using GitHub.Services.WebApi.Internal;
|
|
|
|
namespace GitHub.DistributedTask.ObjectTemplating.Tokens
|
|
{
|
|
[DataContract]
|
|
[ClientIgnore]
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
public sealed class InsertExpressionToken : ExpressionToken
|
|
{
|
|
internal 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}";
|
|
}
|
|
}
|
|
}
|