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)
248RazorDiagnosticFactory.CreateDirective_BlockDirectiveCannotBeImported(descriptor.Directive)); 356DirectiveName = descriptor.Directive, 365DirectiveName = descriptor.Directive, 414DirectiveName = CSharpCodeParser.AddTagHelperDirectiveDescriptor.Directive, 423DirectiveName = CSharpCodeParser.AddTagHelperDirectiveDescriptor.Directive, 453DirectiveName = CSharpCodeParser.RemoveTagHelperDirectiveDescriptor.Directive, 462DirectiveName = CSharpCodeParser.RemoveTagHelperDirectiveDescriptor.Directive, 492DirectiveName = CSharpCodeParser.TagHelperPrefixDirectiveDescriptor.Directive, 501DirectiveName = 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); 1524AssertDirective(descriptor.Directive); 1572new SourceSpan(CurrentStart, CurrentToken.Content.Length), descriptor.Directive)); 1626descriptor.Directive, 1639new SourceSpan(CurrentStart, CurrentToken.Content.Length), descriptor.Directive)); 1651new SourceSpan(CurrentStart, identifierLength), descriptor.Directive)); 1668new SourceSpan(CurrentStart, CurrentToken.Content.Length), descriptor.Directive)); 1683new SourceSpan(CurrentStart, CurrentToken.Content.Length), descriptor.Directive)); 1698new SourceSpan(CurrentStart, CurrentToken.Content.Length), descriptor.Directive)); 1716new SourceSpan(CurrentStart, CurrentToken.Content.Length), descriptor.Directive)); 1737new SourceSpan(CurrentStart, CurrentToken.Content.Length), descriptor.Directive, CurrentToken.Content, lastSeenMemberIdentifier ?? string.Empty)); 1790new SourceSpan(CurrentStart, identifierLength), descriptor.Directive)); 1831descriptor.Directive, 1886var block = new Block(descriptor.Directive, directiveStart); 1939if (Context.SeenDirectives.Contains(descriptor.Directive)) 1942var errorLength = /* @ */ 1 + descriptor.Directive.Length; 1945new SourceSpan(directiveStart, errorLength), descriptor.Directive)); 2018new SourceSpan(CurrentStart, contentLength: 1 /* { */), descriptor.Directive, "{")); 2024new SourceSpan(CurrentStart, CurrentToken.Content.Length), descriptor.Directive, "{")); 2054new 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);