1 write to Options
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\RazorSyntaxTree.cs (1)
34Options = options;
23 references to Options
Microsoft.AspNetCore.Razor.Language.Legacy.UnitTests (1)
Legacy\WhiteSpaceRewriterTest.cs (1)
32var rewrittenTree = new RazorSyntaxTree(rewritten, parsed.Source, parsed.Diagnostics, parsed.Options);
Microsoft.AspNetCore.Razor.Language.UnitTests (5)
DefaultRazorParsingPhaseTest.cs (3)
50var directive = Assert.Single(syntaxTree.Options.Directives); 80t => { Assert.Same(t.Source, importSources[0]); Assert.Equal("test", Assert.Single(t.Options.Directives).Directive); }, 81t => { Assert.Same(t.Source, importSources[1]); Assert.Equal("test", Assert.Single(t.Options.Directives).Directive); });
DefaultRazorTagHelperBinderPhaseTest.cs (1)
482var erroredOriginalTree = new RazorSyntaxTree(originalTree.Root, originalTree.Source, [initialError], originalTree.Options);
Legacy\WhiteSpaceRewriterTest.cs (1)
35var rewrittenTree = new RazorSyntaxTree(rewritten, parsed.Source, parsed.Diagnostics, parsed.Options);
Microsoft.CodeAnalysis.Razor.Compiler (11)
Language\DefaultDirectiveSyntaxTreePass.cs (1)
45return new RazorSyntaxTree(root, _syntaxTree.Source, diagnostics, _syntaxTree.Options);
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (6)
52? ImportDirectives(documentNode, builder, syntaxTree.Options, imports) 61syntaxTree.Options.AllowComponentFileKind) 63visitor = new ComponentImportFileKindVisitor(documentNode, builder, syntaxTree.Options) 71syntaxTree.Options.AllowComponentFileKind) 73visitor = new ComponentFileKindVisitor(documentNode, builder, syntaxTree.Options) 82visitor = new LegacyFileKindVisitor(documentNode, builder, syntaxTree.Options)
Language\DefaultRazorParsingPhase.cs (1)
69=> s_importTrees.TryGetValue(import, out tree) && tree.Options.Equals(options);
Language\HtmlNodeOptimizationPass.cs (1)
21return new RazorSyntaxTree(rewritten, syntaxTree.Source, syntaxTree.Diagnostics, syntaxTree.Options);
Language\Legacy\TagHelperParseTreeRewriter.cs (2)
29syntaxTree.Options, 51return new RazorSyntaxTree(rewritten, syntaxTree.Source, diagnostics, syntaxTree.Options);
Microsoft.CodeAnalysis.Razor.Workspaces (6)
Completion\BlazorDataAttributeCompletionItemProvider.cs (1)
35if (!context.SyntaxTree.Options.FileKind.IsComponent())
Completion\DirectiveAttributeCompletionItemProvider.cs (1)
27if (!context.SyntaxTree.Options.FileKind.IsComponent())
Completion\DirectiveAttributeTransitionCompletionItemProvider.cs (1)
54if (!context.SyntaxTree.Options.FileKind.IsComponent())
Completion\DirectiveCompletionItemProvider.cs (2)
127var defaultDirectives = syntaxTree.Options.FileKind.IsComponent() 131ReadOnlySpan<DirectiveDescriptor> directives = [.. syntaxTree.Options.Directives, .. defaultDirectives];
Diagnostics\RazorTranslateDiagnosticsService.cs (1)
236HtmlErrorCodes.MissingEndTagErrorCode => syntaxTree.Options.FileKind.IsComponent(), // Redundant with RZ9980 in Components