Backup/Wilco.SyntaxHighlighting/Engine/Scanner/IScanner.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;

namespace Wilco.SyntaxHighlighting
{
	/// <summary>
	/// Represents an interface to enable scanners to scan source code.
	/// </summary>
	public interface IScanner
	{
		/// <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>
		IScanner Child
		{
			get;
			set;
		}

		/// <summary>
		/// Gets a collection of dependant <see cref="Wilco.SyntaxHighlighting.IScanner"/> objects.
		/// </summary>
		ScannerCollection Dependencies
		{
			get;
		}

		/// <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>
		bool Enabled
		{
			get;
			set;
		}

		/// <summary>
		/// Gets the identification of a scanner.
		/// </summary>
		string ID
		{
			get;
		}

		/// <summary>
		/// Initializes a new instance of a <see cref="Wilco.SyntaxHighlighting.IScanner"/> implementation class.
		/// </summary>
		/// <param name="tokenizer">The <see cref="Wilco.SyntaxHighlighting.TokenizerBase"/> which is used to tokenize the source code.</param>
		/// <param name="scannerResult">The <see cref="Wilco.SyntaxHighlighting.OccurrenceCollection"/> which will contain the scanner result.</param>
		/// <returns>A new instance of a <see cref="Wilco.SyntaxHighlighting.IScanner"/> implementation class.</returns>
		IScanner Create(TokenizerBase tokenizer, OccurrenceCollection scannerResult);

		/// <summary>
后面还有 28 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。