1 write to Options
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\Legacy\ParserContext.cs (1)
34
Options
= options;
16 references to Options
Microsoft.CodeAnalysis.Razor.Compiler (16)
Language\Legacy\CSharpCodeParser.cs (11)
126
: base(context.
Options
.ParseLeadingDirectives
128
: context.
Options
.UseRoslynTokenizer
129
? new RoslynCSharpLanguageCharacteristics(context.
Options
.CSharpParseOptions)
610
else if (At(SyntaxKind.Not) && Context.
Options
.AllowNullableForgivenessOperator)
1001
if ((!Context.
Options
.AllowRazorInAllCodeBlocks && At(SyntaxKind.LeftBrace)) ||
1011
else if (Context.
Options
.AllowRazorInAllCodeBlocks && At(SyntaxKind.LeftBrace))
1117
if (!TryBalanceBlock(builder, parseNestedBlocksAsMarkup: Context.
Options
.AllowRazorInAllCodeBlocks))
1208
if (Context.
Options
.LanguageVersion < RazorLanguageVersion.Version_12_0 &&
1917
if (Context.
Options
.AllowRazorInAllCodeBlocks)
2093
var end = HtmlMarkupParser.ParseXmlBody(sourceDocument, start, Context.
Options
, CancellationToken);
2661
if (!Context.
Options
.AllowUsingVariableDeclarations)
Language\Legacy\HtmlMarkupParser.cs (4)
37
: base(!parseAsXml && context.
Options
.ParseLeadingDirectives ? FirstDirectiveHtmlLanguageCharacteristics.Instance : HtmlLanguageCharacteristics.Instance, context)
1229
if (Context.
Options
.AllowCSharpInMarkupAttributeArea)
1261
(token.Kind != SyntaxKind.Transition || !self.Context.
Options
.AllowCSharpInMarkupAttributeArea) &&
2145
if (Context.
Options
.AllowConditionalDataDashAttributes)
Language\Legacy\TokenizerBackedParser.cs (1)
55
editHandlerBuilder = context.
Options
.EnableSpanEditHandlers ? new SpanEditHandlerBuilder(LanguageTokenizeString) : null;