51 references to DirectiveKind
Microsoft.CodeAnalysis.Razor.Compiler (51)
Language\Components\ComponentCodeDirective.cs (1)
14DirectiveKind.CodeBlock,
Language\Components\ComponentConstrainedTypeParamDirective.cs (1)
14DirectiveKind.SingleLine,
Language\Components\ComponentInjectDirective.cs (1)
18DirectiveKind.SingleLine,
Language\Components\ComponentLayoutDirective.cs (1)
14DirectiveKind.SingleLine,
Language\Components\ComponentPageDirective.cs (1)
15DirectiveKind.SingleLine,
Language\Components\ComponentPreserveWhitespaceDirective.cs (1)
14DirectiveKind.SingleLine,
Language\Components\ComponentRenderModeDirective.cs (1)
13DirectiveKind.SingleLine,
Language\Components\ComponentTypeParamDirective.cs (1)
14DirectiveKind.SingleLine,
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (4)
230case DirectiveKind.SingleLine: 241case DirectiveKind.RazorBlock: 242case DirectiveKind.CodeBlock: 255throw new InvalidOperationException(Resources.FormatUnexpectedDirectiveKind(typeof(DirectiveKind).FullName));
Language\DirectiveDescriptor.cs (19)
41public abstract DirectiveKind Kind { get; } 59public static DirectiveDescriptor CreateDirective(string directive, DirectiveKind kind) 76public static DirectiveDescriptor CreateDirective(string directive, DirectiveKind kind, Action<IDirectiveDescriptorBuilder> configure) 89/// Creates a new <see cref="DirectiveDescriptor"/> with <see cref="Kind"/> set to <see cref="DirectiveKind.SingleLine"/> 100return CreateDirective(directive, DirectiveKind.SingleLine, configure: null); 104/// Creates a new <see cref="DirectiveDescriptor"/> with <see cref="Kind"/> set to <see cref="DirectiveKind.SingleLine"/> 116return CreateDirective(directive, DirectiveKind.SingleLine, configure); 120/// Creates a new <see cref="DirectiveDescriptor"/> with <see cref="Kind"/> set to <see cref="DirectiveKind.RazorBlock"/> 131return CreateDirective(directive, DirectiveKind.RazorBlock, configure: null); 135/// Creates a new <see cref="DirectiveDescriptor"/> with <see cref="Kind"/> set to <see cref="DirectiveKind.RazorBlock"/> 147return CreateDirective(directive, DirectiveKind.RazorBlock, configure); 151/// Creates a new <see cref="DirectiveDescriptor"/> with <see cref="Kind"/> set to <see cref="DirectiveKind.CodeBlock"/> 162return CreateDirective(directive, DirectiveKind.CodeBlock, configure: null); 166/// Creates a new <see cref="DirectiveDescriptor"/> with <see cref="Kind"/> set to <see cref="DirectiveKind.CodeBlock"/> 178return CreateDirective(directive, DirectiveKind.CodeBlock, configure); 183public DefaultDirectiveDescriptorBuilder(string name, DirectiveKind kind) 197public DirectiveKind Kind { get; } 238DirectiveKind kind, 258public override DirectiveKind Kind { get; }
Language\DirectiveUsage.cs (1)
20/// <see cref="DirectiveKind.SingleLine"/>, the last occurrence of the directive is imported.
Language\Extensions\AttributeDirective.cs (1)
14DirectiveKind.SingleLine,
Language\Extensions\FunctionsDirective.cs (1)
15DirectiveKind.CodeBlock,
Language\Extensions\ImplementsDirective.cs (1)
14DirectiveKind.SingleLine,
Language\Extensions\InheritsDirective.cs (1)
15DirectiveKind.SingleLine,
Language\Extensions\NamespaceDirective.cs (1)
14DirectiveKind.SingleLine,
Language\Extensions\SectionDirective.cs (1)
15DirectiveKind.RazorBlock,
Language\IDirectiveDescriptorBuilder.cs (1)
33DirectiveKind Kind { get; }
Language\Legacy\CSharpCodeParser.cs (7)
29DirectiveKind.SingleLine, 38DirectiveKind.SingleLine, 46DirectiveKind.SingleLine, 55DirectiveKind.SingleLine, 1813case DirectiveKind.SingleLine: 1841case DirectiveKind.RazorBlock: 1868case DirectiveKind.CodeBlock:
Language\Syntax\RazorDirectiveSyntax.cs (1)
19public bool IsDirectiveKind(DirectiveKind kind)
Mvc.Version2_X\NamespaceDirective.cs (1)
19DirectiveKind.SingleLine,
Mvc\InjectDirective.cs (1)
18DirectiveKind.SingleLine,
Mvc\ModelDirective.cs (1)
17DirectiveKind.SingleLine,
Mvc\PageDirective.cs (1)
19DirectiveKind.SingleLine,