1 override of Directive
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\DirectiveDescriptor.cs (1)
254public override string Directive { get; }
38 references to Directive
Microsoft.CodeAnalysis.Razor.Compiler (38)
Language\DefaultDirectiveSyntaxTreePass.cs (1)
84var errorLength = /* @ */ 1 + SectionDirective.Directive.Directive.Length;
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (9)
246RazorDiagnosticFactory.CreateDirective_BlockDirectiveCannotBeImported(descriptor.Directive)); 357DirectiveName = descriptor.Directive, 366DirectiveName = descriptor.Directive, 428DirectiveName = CSharpCodeParser.AddTagHelperDirectiveDescriptor.Directive, 437DirectiveName = CSharpCodeParser.AddTagHelperDirectiveDescriptor.Directive, 467DirectiveName = CSharpCodeParser.RemoveTagHelperDirectiveDescriptor.Directive, 476DirectiveName = CSharpCodeParser.RemoveTagHelperDirectiveDescriptor.Directive, 506DirectiveName = CSharpCodeParser.TagHelperPrefixDirectiveDescriptor.Directive, 515DirectiveName = 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 (22)
206currentKeywordsSet.Add(directiveDescriptor.Directive); 207MapDirective((builder, transition) => ParseExtensibleDirective(builder, transition, directiveDescriptor), directiveParserMap, keywordsSet, context, directiveDescriptor.Directive); 1209directive == DocumentationDirective.Directive.Directive) 1551AssertDirective(descriptor.Directive); 1599new SourceSpan(CurrentStart, CurrentToken.Content.Length), descriptor.Directive)); 1653descriptor.Directive, 1666new SourceSpan(CurrentStart, CurrentToken.Content.Length), descriptor.Directive)); 1678new SourceSpan(CurrentStart, identifierLength), descriptor.Directive)); 1695new SourceSpan(CurrentStart, CurrentToken.Content.Length), descriptor.Directive)); 1710new SourceSpan(CurrentStart, CurrentToken.Content.Length), descriptor.Directive)); 1725new SourceSpan(CurrentStart, CurrentToken.Content.Length), descriptor.Directive)); 1743new SourceSpan(CurrentStart, CurrentToken.Content.Length), descriptor.Directive)); 1764new SourceSpan(CurrentStart, CurrentToken.Content.Length), descriptor.Directive, CurrentToken.Content, lastSeenMemberIdentifier ?? string.Empty)); 1817new SourceSpan(CurrentStart, identifierLength), descriptor.Directive)); 1858descriptor.Directive, 1919var block = new Block(descriptor.Directive, directiveStart); 1974if (Context.SeenDirectives.Contains(descriptor.Directive)) 1977var errorLength = /* @ */ 1 + descriptor.Directive.Length; 1980new SourceSpan(directiveStart, errorLength), descriptor.Directive)); 2189new SourceSpan(CurrentStart, contentLength: 1 /* { */), descriptor.Directive, "{")); 2195new SourceSpan(CurrentStart, CurrentToken.Content.Length), descriptor.Directive, "{")); 2225new SourceSpan(startingBraceLocation, contentLength: 1 /* } */), descriptor.Directive, "}", "{"));
Language\Syntax\SyntaxSerializer.cs (1)
123WriteValue($"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);