Wilco.SyntaxHighlighting/Engine/Tokenizer/TokenizerBase.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Text;
namespace Wilco.SyntaxHighlighting
{
/// <summary>
/// Represents the abstract base class for a tokenizer.
/// </summary>
public abstract class TokenizerBase
{
private int position;
private string source;
private string[] tokens;
/// <summary>
/// Gets the current position of the iterator.
/// </summary>
public int Position
{
get
{
return this.position;
}
}
/// <summary>
/// Gets or sets the source code which the tokenizer represents.
/// </summary>
public string Source
{
get
{
return this.source;
}
set
{
if (value != this.source)
{
this.source = value;
}
}
}
/// <summary>
/// Gets or sets the tokens.
/// </summary>
protected string[] Tokens
{
get
{
return this.tokens;
}
set
{
if (value != this.tokens)
{
this.tokens = value;
}
}
}
后面还有 82 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
