1 override of Directive
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\DirectiveDescriptor.cs (1)
254public override string Directive { get; }
37 references to Directive
Microsoft.CodeAnalysis.Razor.Compiler (37)
Language\DefaultDirectiveSyntaxTreePass.cs (1)
84var errorLength = /* @ */ 1 + SectionDirective.Directive.Directive.Length;
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (9)
246RazorDiagnosticFactory.CreateDirective_BlockDirectiveCannotBeImported(descriptor.Directive)); 352DirectiveName = descriptor.Directive, 361DirectiveName = descriptor.Directive, 410DirectiveName = CSharpCodeParser.AddTagHelperDirectiveDescriptor.Directive, 419DirectiveName = CSharpCodeParser.AddTagHelperDirectiveDescriptor.Directive, 449DirectiveName = CSharpCodeParser.RemoveTagHelperDirectiveDescriptor.Directive, 458DirectiveName = CSharpCodeParser.RemoveTagHelperDirectiveDescriptor.Directive, 488DirectiveName = CSharpCodeParser.TagHelperPrefixDirectiveDescriptor.Directive, 497DirectiveName = CSharpCodeParser.TagHelperPrefixDirectiveDescriptor.Directive,
Language\DirectiveDescriptorComparer.cs (3)
29string.Equals(descriptorX.Directive, descriptorY.Directive, StringComparison.Ordinal) && 45hash.Add(descriptor.Directive, StringComparer.Ordinal);
Language\Legacy\CSharpCodeParser.cs (21)
204currentKeywordsSet.Add(directiveDescriptor.Directive); 205MapDirective((builder, transition) => ParseExtensibleDirective(builder, transition, directiveDescriptor), directiveParserMap, keywordsSet, context, directiveDescriptor.Directive); 1540AssertDirective(descriptor.Directive); 1588new SourceSpan(CurrentStart, CurrentToken.Content.Length), descriptor.Directive)); 1642descriptor.Directive, 1655new SourceSpan(CurrentStart, CurrentToken.Content.Length), descriptor.Directive)); 1667new SourceSpan(CurrentStart, identifierLength), descriptor.Directive)); 1684new SourceSpan(CurrentStart, CurrentToken.Content.Length), descriptor.Directive)); 1699new SourceSpan(CurrentStart, CurrentToken.Content.Length), descriptor.Directive)); 1714new SourceSpan(CurrentStart, CurrentToken.Content.Length), descriptor.Directive)); 1732new SourceSpan(CurrentStart, CurrentToken.Content.Length), descriptor.Directive)); 1753new SourceSpan(CurrentStart, CurrentToken.Content.Length), descriptor.Directive, CurrentToken.Content, lastSeenMemberIdentifier ?? string.Empty)); 1806new SourceSpan(CurrentStart, identifierLength), descriptor.Directive)); 1847descriptor.Directive, 1902var block = new Block(descriptor.Directive, directiveStart); 1955if (Context.SeenDirectives.Contains(descriptor.Directive)) 1958var errorLength = /* @ */ 1 + descriptor.Directive.Length; 1961new SourceSpan(directiveStart, errorLength), descriptor.Directive)); 2034new SourceSpan(CurrentStart, contentLength: 1 /* { */), descriptor.Directive, "{")); 2040new SourceSpan(CurrentStart, CurrentToken.Content.Length), descriptor.Directive, "{")); 2070new SourceSpan(startingBraceLocation, contentLength: 1 /* } */), descriptor.Directive, "}", "{"));
Language\Syntax\SyntaxSerializer.cs (1)
119WriteValue($"Directive:{{{descriptor.Directive};{descriptor.Kind};{descriptor.Usage}}}");
Mvc\RazorExtensionsDiagnosticFactory.cs (2)
87return RazorDiagnostic.Create(PageDirective_CannotBeImported, source, PageDirective.Directive.Directive, fileName); 96=> RazorDiagnostic.Create(PageDirective_MustExistAtTheTopOfFile, source, PageDirective.Directive.Directive);