File: Util\Token.cs
Web Access
Project: src\src\sdk\src\TemplateEngine\Microsoft.TemplateEngine.Core\Microsoft.TemplateEngine.Core.csproj (Microsoft.TemplateEngine.Core)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using Microsoft.TemplateEngine.Core.Matching;

namespace Microsoft.TemplateEngine.Core.Util
{
    public class Token : TerminalBase
    {
        public Token(byte[] token, int index, int start = 0, int end = -1)
            : base(token.Length, start, end)
        {
            Value = token;
            Index = index;
        }

        public byte[] Value { get; }

        public int Index { get; }
    }
}