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