Add doc comments for `DirectiveUsage`.

This commit is contained in:
N. Taylor Mullen 2017-06-26 17:08:13 -07:00
parent 09ac126ecf
commit 5f2c00bc80
1 changed files with 11 additions and 0 deletions

View File

@ -3,9 +3,20 @@
namespace Microsoft.AspNetCore.Razor.Language
{
/// <summary>
/// The way a directive can be used. The usage determines how many, and where directives can exist per file.
/// </summary>
public enum DirectiveUsage
{
/// <summary>
/// Directive can exist anywhere in the file.
/// </summary>
Unrestricted,
/// <summary>
/// Directive must exist prior to any HTML or code and have no duplicates. When importing the directive, if it is
/// <see cref="DirectiveKind.SingleLine"/>, the last occurrence of the directive is imported.
/// </summary>
FileScopedSinglyOccurring,
}
}