mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-06-19 21:38:16 +08:00
Added initial support for rendering composites
This is far from complete, but it's a start and it will enable us to create things like tables and other complex objects in the long run.
This commit is contained in:

committed by
Patrik Svensson

parent
e596e6eb4f
commit
8e4f33bba4
18
src/Spectre.Console/Internal/Text/Markup/MarkupToken.cs
Normal file
18
src/Spectre.Console/Internal/Text/Markup/MarkupToken.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using System;
|
||||
|
||||
namespace Spectre.Console.Internal
|
||||
{
|
||||
internal sealed class MarkupToken
|
||||
{
|
||||
public MarkupTokenKind Kind { get; }
|
||||
public string Value { get; }
|
||||
public int Position { get; set; }
|
||||
|
||||
public MarkupToken(MarkupTokenKind kind, string value, int position)
|
||||
{
|
||||
Kind = kind;
|
||||
Value = value ?? throw new ArgumentNullException(nameof(value));
|
||||
Position = position;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user