Wilco.SyntaxHighlighting/Engine/Scanner/ScannerBase.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Xml;
namespace Wilco.SyntaxHighlighting
{
/// <summary>
/// Provides an abstract base class for scanners.
/// </summary>
public abstract class ScannerBase : IScanner
{
private IScanner child;
private ScannerCollection dependencies;
private bool enabled;
private string id;
private TokenizerBase tokenizer;
private OccurrenceCollection scannerResult;
/// <summary>
/// Gets or sets the child scanner.
/// </summary>
/// <remarks>
/// The child scanner is part of the chain of responsibility. In case a scanner did not find occurrences of the node(s) it
/// represents, this scanner may pass the responsibility on to its child.
/// </remarks>
public IScanner Child
{
get
{
return this.child;
}
set
{
if (value != this.child)
{
this.child = value;
}
}
}
/// <summary>
/// Gets a collection of dependant <see cref="Wilco.SyntaxHighlighting.IScanner"/> objects.
/// </summary>
public ScannerCollection Dependencies
{
get
{
return this.dependencies;
}
}
/// <summary>
/// Gets or sets whether the scanner is enabled or not.
/// </summary>
/// <remarks>
/// An <see cref="Wilco.SyntaxHighlighting.IScanner"/> implementation might want to disable dependant scanners to make sure
/// the syntax highlighting will remain valid.
/// </remarks>
public bool Enabled
{
get
后面还有 129 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
